Return to Snippet

Revision: 32127
at September 19, 2010 03:03 by Orlandoo


Initial Code
#Block bad bots
SetEnvIfNoCase user-Agent ^FrontPage [NC,OR]
SetEnvIfNoCase user-Agent ^Java.* [NC,OR]
SetEnvIfNoCase user-Agent ^Microsoft.URL [NC,OR]
SetEnvIfNoCase user-Agent ^MSFrontPage [NC,OR]
SetEnvIfNoCase user-Agent ^Offline.Explorer [NC,OR]
SetEnvIfNoCase user-Agent ^[Ww]eb[Bb]andit [NC,OR]
SetEnvIfNoCase user-Agent ^Zeus [NC]
<limit get="" post="" head="">
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</limit>

Initial URL

                                

Initial Description
It's possible to block all unwanted user agents that might be potentially harmful or perhaps just to keep the server load as low as possible.

Initial Title
Block All Requests From User Agents

Initial Tags
htaccess

Initial Language
Apache