Solved

How can I restrict non US website address from hitting my site

Posted on 2012-03-23
4
366 Views
Last Modified: 2012-04-17
My website is only able to sell to US residents until I employ other measures. Total bummer... Its just going to take a bit more programming but in time I will be available worldwide. My question is how can I restrict non United States IP addresses from reaching my server? I will try and build another page to forward them to a page saying we are working on worldwide support. Until the page is built is there a way to limit the ip addresses to just be verified to be in the United States? Also for a security measure I would like to employ this because I keep getting port scanned and such from non us ip addresses. Trying to hack me for sure. Any help is greatly appreciated.
0
Comment
Question by:jeffmeverett
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
Khandakar Ashfaqur Rahman earned 250 total points
ID: 37759800
Please check the following URL:
http://forums.iis.net/t/1172103.aspx
0
 

Author Comment

by:jeffmeverett
ID: 37823288
The article is somewhat informative but I still know this can be done and is. Before I decide to close this question I will keep it open for 2 days to see if I get any more detailed responses. Thanks!
0
 
LVL 4

Assisted Solution

by:senseifedon
senseifedon earned 250 total points
ID: 37839470
Hi;
Please can you tell me which server OS are you use? If you are using Linux, you can use this link: http://ipinfodb.com/ip_country_block.php

There are three different list for your server. If you choose iptables, then countries to block, you can have script easily.

Hopefully help.
0
 

Author Closing Comment

by:jeffmeverett
ID: 37855769
This is a good place to start the article above from rigan123 as well the iptable blocks from senseifedon. I was unsuccessful and after reading more posts around the web this may be more difficult than first thought. Although I have heard its very easy as well. Best of luck to anyone who has success. I will update the questions in the database if I am successful at the time of deployment.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like regular user of computer nowadays, a good bet that your home computer is on right now, all exposed to world of Internet to be exploited by somebody you do not know and you never will. Internet security issues has been getting worse d…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question