Solved

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

Posted on 2012-03-23
4
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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