View Single Post
Old 06-04-2011, 12:35 AM  
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
Quote:
Originally Posted by Barry-xlovecam View Post
Just add these to the root .htaccess file

http://www.ipdeny.com/ipblocks/data/countries/my.zone

Code:
<Files 403.shtml>
order allow,deny
allow from all
</Files>

#then all the malaysia ips on the above URL
This not stopping the traffic to the server but the IPs will get a 403 - Forbidden 57 bytes?

Blocking entire countries is best done with mod_geoip for Apache2 (Debian) Google for mod_geoip
i dont want surfers to view some 403 error, i wanna give them specific reason ....
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote