1 azel Feb 10, 2005 05:39
3 village_idiot Feb 10, 2005 06:30
RewriteCond %{HTTP_REFERER} ^http://(www.)?bad-domain.*$ [OR]
RewriteCond %{HTTP_REFERER} ^http://12.163.72.13$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?baddomain-2.com.*$ [NC]
RewriteRule ^(.*) http://%{REMOTE_ADDR}/ [R=301,L]
the placement of the[NC] and [OR]'s does matter.
4 wrabbit Feb 10, 2005 10:04
whoo wrote:
RewriteCond %{HTTP_REFERER} ^http://(www.)?bad-domain.*$ [OR] RewriteCond %{HTTP_REFERER} ^http://12.163.72.13$ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(www.)?baddomain-2.com.*$ [NC] RewriteRule ^(.*) http://%{REMOTE_ADDR}/ [R=301,L]
the placement of the[NC] and [OR]'s does matter.
Er... Dumb it down for us non-savvy people. Does the IP addy in there have to be changed to anything? And other than that, can I post it as-is to my .htaccess?
Because I've got one that's SLAMMING me, about every two minutes reguarly. It's up to 55% of my external link visits now.
5 edb Feb 10, 2005 10:26
Hopefully whoo will clarify, but in the mean time if you've got phpmyadmin available take advantage of it. Go to your database and select your antispam table then select SQL and paste in this:
INSERT INTO `evo_antispam` ( `aspm_ID` , `aspm_string` , `aspm_source` ) VALUES ( '', 'greatgooglymoogly', 'local' )
That won't stop them from hitting your site, but it will stop b2evo from recording it. While you're in there you can clear up your hitlog table. Select the hitlog table and SQL then paste in this:
DELETE FROM `evo_hitlog` WHERE `referingURL` LIKE '%greatgooglymoogly%'
Of course go to your antispam tab and first get the update(s) then report "greatgooglymoogly" to central.
EDIT: the % before and after the keyword you want to ban is like wild-cards, so you need them there.
.htaccess can ban them entirely at the server side, but I've never figured out how to make it work. Another simple method is to use phpmyadmin to add the offender to your keyword antispam list (insert new record) and then wipe them out of your hitlog table (delete where referer is like %blah%).