Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Bad bot blocking? (http://www.greenguysboard.com/board/showthread.php?t=16580)

tortus32 2005-02-17 11:10 AM

Bad bot blocking?
 
Does anyone know how to block bad bots?

Thanks,

Bill

swedguy 2005-02-17 11:20 AM

By IP or coming from a certain domain?

tortus32 2005-02-17 11:26 AM

Agent name.

I found this agent name as one of the latest visitors: EirGrabber
So I did a google search for "EirGrabber" and it turns out it's a bad bot.
Is that right?

Now when I go and check my latest visitor stats, I can't find it anymore.

Bill

swedguy 2005-02-17 12:09 PM

Put this in your .htaccess. Notice that there's no OR in the last RewriteCond
Code:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^.*eirgrabber [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*another_bad_bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*third_bad_bot [NC]
RewriteRule .* - [F,L]

But I wouldn't really sweat over it :)

tortus32 2005-02-17 12:42 PM

Thanks!

Bill


All times are GMT -4. The time now is 12:43 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc