Blocking Various Countries By IP

Started by ukgimp, September 19, 2013, 02:32:32 PM

Previous topic - Next topic

ukgimp

Or only include certain ones.

Eg block all of Africa

Easiest way of doing it on LAMP?


JasonD


ukgimp

Saw that one.

Better to exclude countries I suspect rather than allow, due to the fact that you might have incomplete data.

thanks

JasonD

Agreed, only ever deny, not allow - presuming the list will be shorter that is.

JasonD

it's easy enough to do on the command line but here is a script to help you on your way

https://github.com/tlhackque/BlockCountries