How to control access based upon IP(s) with IIS
- Install [IP and Domain Restrictions]
- Run Server Manager and open [Roles > Web Server (IIS)]
- Scroll down to [Role Services] at [Summary]
- Click [Add Role Services] on right pane
- Check [IP and Domain Restrictions] on [Role Services > Web Server > Security]
- Click [Install]
- Block clients by IP
- Run IIS Manager and select a specific site or folder
- Open [IPv4 Address and Domain Restrictions]
- Open [Edit Feature Settings] to set an option for DENY or ALLOW from all
- Open [Add Allow/Deny Entry] to add IP or IP range