How to restrict access to a file or a folder based on incoming IP addresses
Securing a Folder
- Open IIS Manager (Start > Run > Open INETMGR and hit enter)
- Navigate to web site
- Select the folder, which needs restriction
- In features view double click on “IPv4 Address and Domain Restrictions”
- In Action pane click “Add Allow Entry”
- Select “Specific IPv4 Address” radio button
- Enter IP address and click OK.
- In action pane click “Edit Feature Settings”
- Select “Deny” from the drop down and click OK
Securing a File
- Open IIS Manager (Start > Run > Open INETMGR and hit enter)
- Navigate to web site
- Switch to “Content View”
- Select and right click on the file which needs restriction
- Select “Switch to Features View” from context menu
- In features view double click on “IPv4 Address and Domain Restrictions”
- In Action pane click “Add Allow Entry”
- Select “Specific IPv4 Address” radio button
- Enter IP address and click OK button.
- In action pane click “Edit Feature Settings”
- Select “Deny” from the drop down and click OK
Please sign in to leave a comment.