httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] Blocking referer problem
Date Sun, 30 Oct 2011 02:44:34 GMT
2011/10/29 Leonardo M. Ramé <martinrame@yahoo.com>

>
> 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]
>
> Your RewriteRule does not match any requests. Try
RewriteRule .* - [F]


> After changing it, I did a "apachectl restart".
>
You do not need to restart after changing the htaccess.

Mime
View raw message