Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would you restrict a site so that it's only accessible to people in the same (a) City, (b) Country as the website?

This is for Windows Server 2008 & IIS7


share|improve this question
up vote 2 down vote accepted

MaxMind provides GeoIP database licensing which is fairly accurate - there are a variety of ways you could implement a solution with access restrictions parsed from the information or built into an application.

share|improve this answer

Why would you want to do that?

Perhaps you could instead restrict payments to be from specific countries or deliveries to be to specific countries.

Or find out how the BBC restrict iplayer.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.