Portal Home > Knowledgebase > Articles Database > Blocking China
Blocking China
Posted by steveeyes, 12-06-2011, 02:08 PM |
Hello
I browse here a lot but rarely post. However, I'm hoping that someone more knowledgeable than me can help.
I have a VPS server. I'm getting bombarded by china joining my sites, than posting spam in the description fields, blogs, etc.
I attempted to block them using my WHM firewall configuration but ran into a problem. When I try to deny CN (china country code) access to my sites, it disables the firewall. Why? My hosts tells me that China has too many IPs and when it writes the rules to block China IPs, it reaches it limits and disables the firewall.
My host says there isn't too much I can do since China is so large and has so many IP addresses.
I'm wondering if anyone had or has this problem and found a solution that doesn't slow down my site?
It seems I'm spending my days finding and deleting China members from my site, but that is getting tedious and time consuming.
Any feedback would be appreciated.
Thanks
|
Posted by relichost, 12-06-2011, 02:13 PM |
Hi
You can do one of 2 things.
1, Edit your .htaccess file and include all China ranges (i think there are sites out there that will provide you with upto date CN ip ranges) and you can automate its update if/when new ranges are released.
2, GeoIP, along the same lines as above and you can edit the code on your site to allow the ip access or not. Some do it via files and others use database lookups.
I have used the two above techniques before, and its relatively simple once you understand the code (option 2)
Good luck.
|
Posted by steveeyes, 12-06-2011, 02:27 PM |
Sorry if this is a stupid question....the GeoIP is something new to me. When I do a search in google on GeoIP it seems more about looking up IPs than blocking them. Do you have a good source or link on how I can edit the code on my site to block China using GeoIP?
thanks
|
Posted by relichost, 12-06-2011, 02:33 PM |
Hi
http://www.maxmind.com/app/geoip_resources
Thanks
|
Posted by Vinayak_Sharma, 12-06-2011, 02:43 PM |
This may help you https://www.cloudflare.com/features-security
|
Add to Favourites Print this Article
Also Read