Allowing connections from specific IP addresses only to a website via IIS

  • Connect to a Windows server via RDP
  • Start IIS Manager (click Windows Start > type "inetmgr" > click Run command).
  • In IIS Manager, expand SERVERNAME > Sites > click on a required website > double-click IP Address and Domain Restrictions (under IIS group).

 

  • Click Add Allow Entry... (on the right pane) to add an IP address or IP address range which will be allowed to access the website. Click OK.

 

Repeat this step to add other IP addresses to the list.

 

  • Once allowed IP addresses have been added, click Edit Feature Settings... and select Deny for Access for unspecified clients. Click OK.

 

Note: Some Plesk features (e.g. securing a domain with a Let's Encrypt certificate) may not work when connections are allowed from specific IP addresses only.

Now, only users with the specified IP addresses are able to access the website