Quote:
Originally posted by hibbidiji
I keep getting hotlinked by chinese servers... I've spent probably 20 hours blocking sites individually and i'm tired of it! Is there a htaccess or other easy solution to blocking all traffic incoming from china?
D
|
Go to
www.maxmind.com. download and install Apache Geo module.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN
RewriteRule ^/*$ /blocked.html [PT,L]
</IfModule>
The syntax may not be accurate....poor memory.
Regards,
--A