IP address restrictions in Internet Information Services allows you to deny access to the web server, web sites, folders, or files. Rules can be configured for remote IP addresses. Internet Information Services (IIS) is a web server created by Microsoft, IIS web server accepts requests from remote client computers and returns the appropriate response. This tutorial covers how to Configure access restrictions in IIS Web Server – Windows Server 2025
Demo environment
Computer Name: server1.test.com
Operating System: Windows Server 2025 Datacenter
IP Address: 192.168.0.2
1. Install IP Address and Domain Restrictions Service.
IP and Domain Restrictions option is not enabled by default when you install Internet Information Services. We can enable IP and Domain Restrictions option by adding the above Role Service as shown below.

2. Open the Server Manager dashboard, click Tools, select Internet Information Services (IIS) Manager, select the website and open IP Address and Domain Restrictions

3. By default setting is allow all, click Add Deny Entry.

4. Input an IP address on Specific IP address field, or IP address range on IP address range. In this tutorial we choose Specific IP address.

5. Verify the Restriction.
