17
Quote:
jdseymour wrote:
Probably could with .htaccess.
put the following in you .htaccess
create a folder errors and put you personal notfound or forbid.html page in it.
le="color: #000000"><?php ErrorDocument 404 /errors/notfound.html ErrorDocument 403 /errors/forbid.html RewriteEngine On #blocking ip's RewriteCond %{REMOTE_ADDR} ^4.79.248.8$ [OR] RewriteCond %{REMOTE_ADDR} ^64.4.195.62$ [OR] RewriteCond %{REMOTE_ADDR} ^64.27.27.150$ [OR] RewriteCond %{REMOTE_ADDR} ^66.92.132.241$ [OR] RewriteCond %{REMOTE_ADDR} ^216.40.249.17$ RewriteRule .* - [F,L] #blocking spiders RewriteCond %{HTTP_USER_AGENT} ^Bot mailto:craftbot@yahoo.com$ [OR] RewriteCond %{HTTP_USER_AGENT} ^Baiduspider$ [OR] RewriteCond %{HTTP_USER_AGENT} ^FAST$ [OR] RewriteCond %{HTTP_USER_AGENT} ^Zeus RewriteRule !/errors/forbid.html /errors/forbid.html [L] #block bad referers an refererspam RewriteCond %{HTTP_REFERER} (showcasegifts.net|realtysite.com|realtorlist.net|devaddict.com|whiteguysgroup.com)[NC] RewriteRule !/errors/badreferer.php /errors/badreferer.php [L]
be carefull blocking on IP's, most people have dynamic ip's.
Blocking 1 ip could block a whole bunch of people behid a NAT router.