httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo M. Ramé <martinr...@yahoo.com>
Subject [users@httpd] Blocking referer problem
Date Sat, 29 Oct 2011 21:15:55 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message