Support Forums

Full Version: Omni: What are your methods of ip banning/blocking multiple countries?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't remember where you said it, or if you said it at all, but I've been trying to figure out a way to block an entire country with one single line of code for apache/linux firewall/whatever.
One method is denying the IP ranges via htaccess http://www.find-ip-address.org/ip-country/
That's a lot of information to put in there. The system can handle very large htaccess files?
Use this:
http://www.blockacountry.com/

Don't use their stupid 403 page, though.
(06-09-2010, 09:31 AM)timestandstill Wrote: [ -> ]Use this:
http://www.blockacountry.com/

Don't use their stupid 403 page, though.
I didnt think you were being serious there lol but I checked the page Huh
Ban a range like 45.* it will ban all starting IP's with 45.

If you're going to ban china find all the starting IP's. Do a full ban as shown above and bam. You'll have them covered I do believe.