6
I am interested in adding this to my .htaccess file. I assume it blocks any bot/browser that has a referrer address? Sorry, I'm not very good at the terminology. Does this block referer bots? Also what does the RewriteRule do? I assume it sends them to the cornfield? [size=x-small](think Twilight Zone)[/size]
TIA!
Quote:
carnuke wrote:
use this in your .htaccess file
---------------
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^(http://www.)[a-z]+-[a-z]+- [NC]
RewriteRule ^(.*) http://%{REMOTE_ADDR}/ [R=301,L]
---------------
also use netquery module
It make a big difference
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]