Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way I can limit a folder (and everything recursively down) in my webroot to local access only (i.e. requests from 127.0.0.1)?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You need to add the role service "IP and Domain Restrictions" to your server first.

Once that is installed:

  1. Go into IIS manager, and choose the folder you want to add the restriction to
  2. Double click "IP Address and Domain Restrictions"
  3. Click the "Add Allow Entry" action, and add the entry for 127.0.0.1
  4. Click "Edit Feature Settings" and change the "Access for Unspecified clients" to be denied

That should do it for you.

share|improve this answer
add comment

Your Answer

 
discard

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.