- Plesk for Windows
How to restrict/allow connections from IP addresses to a website in IIS?
Warning: such configuration cannot be performed via Plesk Interface and should be done directly on the server. Also, some features like securing a site with Let's Encrypt will be unavailable in case access is restricted to some specific IP only.
To allow connections only from specific IP addresses to a website, follow this steps:
- Connect to the server via RDP.
- Go to IIS > Sites > example.com and click IP Address and Domain Restrictions.
- Click Add Allow Entry button and add IP address or IP address range which should have access.
- Click Edit Feature Settings button, chose Deny value for Access for unspecified clients option.