Block an IP address accessing the application

This post has been republished via RSS; it originally appeared at: IIS Support Blog articles.

In the IIS logs, you may come across a specific IP address that is generating a high amount of traffic. If you suspect that this is a malicious activity, you can block the IP address in IIS.

 

Steps for using IP and Domain Restrictions module to block an IP address:

  1. If not installed already, install “IP and Domain Restrictions” using Server Manager
  2. Go to IIS Manager (close and reopen it if it was already open)
  3. Click on your website
  4. Double click on “IP Address and Domain Restrictions”
  5. Add a Deny rule and type the IP address

 

Nedim_0-1621973763807.jpeg

 

The user whose IP address is blocked will see “403 – Forbidden: Access is denied” message. If you want to change this message, check out this tutorial.

 

Nedim_1-1621973763825.jpeg

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.