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

We are using IIS 6 as our webserver. And we need to deny the access for one specif file, placed in only one specific URL, to everybody OUTSIDE the local network.

In other words, if somebody is trying to access that filme/page from their own computer at home, using the internet, they must not succeed. But, if the same person try to do that at the same network of the web server, its ok.

I am not sure about that, but Apache uses ORDER DENY,ALLOW. You specify the URL, allow or deny to all or to a range of IP.

Any suggestions? Thanks!

share|improve this question

migrated from May 22 '10 at 13:15

This question came from our site for computer enthusiasts and power users.

You can do this by setting an IP restriction on the file:

  1. Open IIS MMC
  2. Navigate to file in the website in question
  3. Right click on the file and select 'Properties'
  4. Select the 'File Security' tab
  5. In the 'IP address and domain restrictions' pane, click Edit
  6. Set the default restriction to deny access (click the Denied Access radio button)
  7. Add an exception for your LCAN (click the Add button)
  8. In the 'Grant Access' dialogue select 'Group of Computers' then enter the IP address and mask of your LAN: e.g. Network ID:, Subnet mask:
  9. Click OK on all the dialogues to return.
share|improve this answer

Your Answer


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