New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Found a real easy way to block Chinese/Korean Traffic
I came accross this a while back when a customer of mine was asking how I could block Chinese and/or Korean traffic to their site (namely from their order page etc).
http://www.okean.com/thegoods.html
Except I changed the iptables rules to apply to all ports rather than just port 25. Course probably not a good idea to use it server-wide, since some of the customers might need traffic from those regions.
Comments
CSF has these built in to it too, useful..
Didn't know CSF had an updated Chinese/Korean ip blocks built in, or does it just do geo lookups?
http://www.ipdeny.com/ipblocks/data/countries/kr.zone
http://www.ipdeny.com/ipblocks/data/countries/cn.zone
download file add for iptables
@kbeezie Yep, looks like it uses maxminds geoip lite database so not 100% accurate
Why would anyone want to block Chinese traffic anyway? @miTgiB loves his Chinese customers.
I wonder wouldn't it be easier if you just included some "forbidden" content on your web page (even if invisible) - then the Great Firewall of China would block the access to your site - problem solved.
Fetch the list of CN/KR AS and IP blocks announced and build your own list
Such lists have existed for eons already, you only just found one?
What gbhouse said would be the quickest way of finding an updated list for yourself of all the home ISPs, though - it won't have the international companies with US/EU/AS ASNs, but IPs routed to China.
http://jmd.cc/2010/05/13/whitelistblacklist-access-to-your-site-or-a-page-by-country/
Ignore the broken code tags. I just switched to WordPress and haven't fixed all the posts. -m