View Single Post
Old 08-20-2003, 03:45 PM  
NakedWorld
Registered User
 
Join Date: Aug 2003
Posts: 1
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
NakedWorld is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote