PDA

View Full Version : how to block fillbest?



xjuliox
Mon 3rd Nov '08, 5:01pm
Hello,

Fillbest has been hammering my forum all day and night and now i want to block them. I don't mean it is spamming my forum. I mean that it is a bad bot from what i have read online. I would like to block it from htaccess.

fillbest.com

NegativeSmoke
Mon 3rd Nov '08, 9:00pm
Add this line in your .htaccess:



#get rid of bad bots
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^BadBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^EvilScraper [OR]
RewriteCond %{HTTP_USER_AGENT} ^FakeUser
RewriteRule ^(.*)$ http://go.away/
It will re-direct bots to a non-existant site "Go.away" :p
Where it says "FakeUser" etc, put the bot name...to prevent leeches add this to your .htaccess file:



RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*somebadforum\.com (http://.*somebadforum%5C.com) [NC]
RewriteRule .* - [F]
For multiple sites:


RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*somebadforum\.com (http://.*somebadforum%5C.com) [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*example\.com (http://.*example%5C.com) [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*lastexample\.com (http://.*lastexample%5C.com) [NC]
RewriteRule .* - [F] It will prevent people from hotlinking images on your forums and thus give them a broken image.


So in your case you would put:


RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*fillbest\.com (http://.*somebadforum%5c.com/) [NC]
RewriteRule .* - [F]


and:


#get rid of bad bots
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^Fillbest.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^Fillbest

RewriteRule ^(.*)$ http://go.away/


To your .htaccess file. :) Hope this helped. :D

xjuliox
Mon 3rd Nov '08, 9:21pm
Thanks alot NegativeSmoke,

NegativeSmoke
Mon 3rd Nov '08, 11:52pm
No problem, hope that helps a little.