Support Forums
Omni: What are your methods of ip banning/blocking multiple countries? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Life Support (https://www.supportforums.net/forumdisplay.php?fid=12)
+---- Forum: Omni's Secret Hidden Inside Tricks (https://www.supportforums.net/forumdisplay.php?fid=13)
+---- Thread: Omni: What are your methods of ip banning/blocking multiple countries? (/showthread.php?tid=7611)



Omni: What are your methods of ip banning/blocking multiple countries? - MasterZuFu - 06-05-2010

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.


RE: Omni: What are your methods of ip banning/blocking multiple countries? - Cida - 06-05-2010

One method is denying the IP ranges via htaccess http://www.find-ip-address.org/ip-country/


RE: Omni: What are your methods of ip banning/blocking multiple countries? - MasterZuFu - 06-09-2010

That's a lot of information to put in there. The system can handle very large htaccess files?


RE: Omni: What are your methods of ip banning/blocking multiple countries? - timestandstill - 06-09-2010

Use this:
http://www.blockacountry.com/

Don't use their stupid 403 page, though.


RE: Omni: What are your methods of ip banning/blocking multiple countries? - MarkH - 07-19-2010

(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


RE: Omni: What are your methods of ip banning/blocking multiple countries? - Detective RooTz - 07-19-2010

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.