Solved

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

Posted on 2012-03-23
4
365 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

To setup a SonicWALL for policy based routing to be used with the Websense Content Gateway there are several steps that need to be completed. Below is a rough guide for accomplishing this. One thing of note is this guide is intended to assist in the…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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