How to block traffic from specific URL

pppplus

Verified User
Joined
Dec 19, 2008
Messages
523
How to block access from specific URL

I have a lot of line like this :

Code:
[Thu Nov 04 14:18:49 2010] [error] [client 113.162.70.133] File does not exist: /var/www/html/pub, referer: http://phimf.com/xxxxxxxxxxx

So how to block connection from this url http://phimf.com

It is not usefull to block from IP, because IP changes every 10-20 errors.

It is probably very simple, but I don't know which word search!

I have CSF on the server, but it does not block URL.
But maybe, specific configuration can block this bad traffic.

Thanks for your help
 
.htaccess, for the server ??

I use it for domains, but the problem here, is for the server.
 
Hi,

Thanks for reply.
I don't know we can put .htaccess in /var/www/html/
I will try, that's good for some URL.

Now new question : is it possible to automatic detect those URL, because, they change regularly ?

Like we do with IP ?
 
I don't know we can put .htaccess in /var/www/html/
I use ssh if I ever need to change/add anything to that, /var/www/html/, base directory. If you don't trust yourself within the root environment, consider getting assistance.
 
Back
Top