How to block and remove a range of Ips from a city/state in . htaccess?

Asked

Viewed 181 times

0

wanted to temporarily block some states of Brazil not to access my site, as I can do this through htaccess.

In fact, the hardest thing is to discover this range of Ips from each state or city?

Thank you in advance.

  • As far as I know the IP range is for all Brazil, not having specific divisions per state. What I think is possible for this is to cross-reference IP information in some geolocation service and block dynamically.

  • Search for IP Geolocation, there are several sites that check your location and you can perform tests.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.