Tag Archives: bots

Stop Annoying and Bad Bots

Original article

.htaccess file

# Deny domain access to spammers and other scumbags
RewriteEngine on
php_flag register_globals off
SetEnvIfNoCase User-Agent “^libwww-perl*” block_bad_bots
Deny from env=block_bad_bots

# Redirect index.php to domain.com
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.ewebsite.biz/ [R=301,L]

# Redirect domain.com to www.domain.com
RewriteCond %{HTTP_HOST} ^ewebsite.biz [NC]
RewriteRule ^(.*)$ http://www.ewebsite.biz/$1 [L,R=301]

Read More

Bad Behavior has blocked 114 access attempts in the last 7 days.