Re: Blocking referer problem

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

 



2011/10/29 Leonardo M. Ramé <martinrame@xxxxxxxxx>

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.


[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