Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to limit web site access to USA or North America only

This is a corporate site so Private. We want to limit access by IP address to USA/Canada or North America. Based on IP range, would allow user/pwd to get in otherwise -'no access'. Just trying to limit hack exposure from anything overseas.

like image 609
JoeJoe Avatar asked Dec 04 '25 10:12

JoeJoe


2 Answers

Anybody who could get past your password security could easily get past any IP filtering security (and it may even be seen as a challenge, thus increasing the risk of overseas hacking). I think the premise of your question is flawed.

like image 149
Skilldrick Avatar answered Dec 07 '25 09:12

Skilldrick


If your main aim is to prevent unauthorized access to your website by IP... that will never ever work. Its so easy to bypass that. a user/pwd would be a more secure option.

To answer your question, if you have certain features or a complete website block that you want to do, this is a tutorial:

http://blog.newagesolution.net/2008/11/how-to-block-country-and-ip-addresses.html

like image 35
Shawn Mclean Avatar answered Dec 07 '25 11:12

Shawn Mclean



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!