Blocking referer problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I'm trying to block some spam referers to my site I've found by reading my site's httpd-error.log.

This an extract of the log file containing the suspicious sites:

[Sat Oct 29 14:32:04 2011] [error] [client 207.46.12.118] File does not exist: /usr/local/www/apache22/data/ceciliastrada/gallery2, referer: http://www.multidicona.com/limpieza.html

[Sat Oct 29 14:39:02 2011] [error] [client 95.25.37.64] File does not exist: /usr/local/www/apache22/data/ceciliastrada/gallery2, referer: http://clubmedia-ent.com/film/artist.html
[Sat Oct 29 14:39:04 2011] [error] [client 95.28.156.48] File does not exist: /usr/local/www/apache22/data/ceciliastrada/gallery2, referer: http://clubmedia-ent.com/film/news.html
[Sat Oct 29 14:59:00 2011] [error] [client 207.46.199.11] File does not exist: /usr/local/www/apache22/data/ceciliastrada/gallery2, referer: http://www.multidicona.com/herryferr.html

Knowing this, I found by googling, that I can block referers by adding this to my .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_REFERER} st\.ac\.th [NC,OR]
RewriteCond %{HTTP_REFERER} clubmedia-ent\.com [NC,OR]
RewriteCond %{HTTP_REFERER} multidicona\.com [NC]
RewriteRule ^ - [F]

After changing it, I did a "apachectl restart".

But aparently that didn't fix the issue. Any hint?

I'm using Apache 2.2.18 on FreeBSD 8.2 amd64.

Thanks in advance,
Leonardo


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux