Tuesday, July 3, 2012
block bad bots in htaccess
for bot with user string '*bot' or 'bot*'
#### rewrites to 403 for nastybots ####
RewriteCond %{HTTP_USER_AGENT} ^bot\* [NC]
RewriteRule .* - [F,L]
RewriteCond %{HTTP_USER_AGENT} ^\*bot [NC]
RewriteRule .* - [F,L]
#### end nasty ####
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment