PDA

View Full Version : .htaccess


duesouth
06-02-2006, 10:39 PM
Anyone have a good .htaccess file that bans bots that search? Oh I ask because there is a new one that I caught sniffing in my members list.

Friendly bots ok. Had one this week in email.php too.

areidmtm
06-02-2006, 11:23 PM
search search search the forum.

http://www.bluehostforums.com/showthread.php?t=647

Also here is a list of bad IP's that I came up with...BUT be careful with this. The list will ban IP that are NOT in the US. Sorry, but I don't need non USA people going to my sites. IT will also ban Alexa site ratings..I dont need that either

#McColo Corporation
deny from 208.66.192.0/22

#RIPE Network Coordination Centre
deny from 80.0.0.0/8
deny from 81.0.0.0/8
deny from 82.0.0.0/8
deny from 83.0.0.0/8
deny from 84.0.0.0/8
deny from 85.0.0.0/8
deny from 86.0.0.0/8
deny from 87.0.0.0/8
deny from 88.0.0.0/8
deny from 89.0.0.0/8
deny from 90.0.0.0/8
deny from 91.0.0.0/8
deny from 193.0.0.0/8
deny from 194.0.0.0/8
deny from 195.0.0.0/8
deny from 212.0.0.0/8
deny from 213.0.0.0/8
deny from 217.0.0.0/8
deny from 217.174.203.41
deny from 218.0.0.0/8

#Latin American and Caribbean IP address Regional Registry
deny from 190.0.0.0/8
deny from 200.0.0.0/8
deny from 201.0.0.0/8

#Asia Pacific Network Information Centre
deny from 202.0.0.0/7
deny from 203.0.0.0/7
deny from 210.0.0.0/7
deny from 212.0.0.0/8
deny from 221.0.0.0/8
deny from 222.0.0.0/8

#Japan Network Information Center
deny from 133.0.0.0/8

#African Network Information Center
deny from 196.0.0.0/8

#Alexa Internet
deny from 209.237.237.0/24
deny from 209.237.238.0/24

#SevenTwentyfour Incorporated
deny from 209.167.50.16/28