How to block those requests?

Corobori 26 Reputation points

One of my website is being under attack. I am getting requests, as shown below, from several IPs addresses. Is there a way to block them ?


Internet Information Services
A set of technologies in the .NET Framework for building web applications and XML web services.
4,307 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JasonPan - MSFT 4,706 Reputation points Microsoft Vendor

    Hi @Corobori-9276

    You can configure ipv4 address restrictions for remote connections.

    Official doc :

    Configure IPv4 Address Restrictions for Remote Connections (IIS 7)

    Configure IPv4 address restrictions to specify whether a specific IPv4 address or range of IPv4 addresses are allowed or denied permission to connect remotely to sites or applications on the Web server.

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    0 comments No comments

  2. Corobori 26 Reputation points

    @JasonPan - MSFT Blocking at IP address level was not doable as requests were coming from varios IP address from different countries (Russia, Mexico an Brazil)

    Eventually I decided to filter thru IIS using the following rule but it doesn't seem to work as expected.

    When using this rule

    <filteringRule name="TESTRULE" scanUrl="true" scanQueryString="true">
    <clear />
    <clear />
    <add string="BLOCKINGWORD" />
    <clear />

    My website gives me what is shown below. I was expecting a 404 page not found, according to what I read.


    0 comments No comments