Virtual Machines

Products

Virtual Machines

Documentation > Products > Virtual Machines > Set IP to Limit Access to Windows IIS Website

Set IP to Limit Access to Windows IIS Website

If a website built with Windows IIS encounters a malicious IP attack, the website service may become abnormal. In this case, the IP restriction function in the security module of IIS can be used to prohibit malicious IP from accessing the website. The setting steps are as follows:

  1. Click the Tools menu (red box) in the upper right corner of the server manager panel dashboard page, select IIS Manager, and start the IIS management interface.

  1. Select the website to be set step by step in the left sidebar, modify the grouping basis in the red box as the category, and select IP address and domain restriction in the security.

Note: IP address and domain restriction function needs to be checked when IIS components are installed. If it is not checked, this function cannot be used. If the icon is not found in the security category, it indicates that the component is not installed in the system. Please follow the steps below to install it:

  1. Click Start Server Manager Panel in the red box on the left side of the taskbar, then click Add Roles and Function (blue box) in the dashboard to launch the Add Roles and Functional Wizard.

  1. Click Next until the server role step, select Web Server (IIS) -->Web Server -->security, check IP Address and Domain Restriction, click Next until the confirmation page, and then click Install. After confirming that the installation is complete, close the Add Roles and Functional Wizard. Then, restart IIS Manager and the "IP Address and Domain Restriction" icon will be displayed on the website function page.

  1. On the "IP Address and Domain Restriction" page, click Add Rejected Item in the right operation bar to edit the rejected IP address.

  1. To deny the access by a single IP, check the specific IP address, enter the IP address in the blank field and click OK.

  2. To deny the access by an IP segment, check the IP address range, enter the fixed part of the IP segment in the first blank field, replace the change with 0 as shown in the figure below, and enter the mask in the second blank to specify the range of IP segment. Click OK when you're done.

  1. After an item is successfully added, you can see the content of the item on the "IP Address and Domain Restriction" page. Note that the content cannot be modified after the item is added. You can only delete it by selecting it and clicking Delete in the right operation bar.

Update Time:2019-08-28 21:38:33