• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

web.config

PedroN

Regular Pleskian
Hello,

I will want to know if you could please give me the code for the web.config file to block some ips or domains to access my website because I have been trying some codes but I couldn´t be able to find the correct one.

Thanks
 
Aqui tienes. Saludos

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>

<rewrite>
<rules>
<clear/>
<rule name="Bloquear IP">
<match url="^.*$" ignoreCase="false"/>
<conditions logicalGrouping="MatchAny">
<add input="{REMOTE_ADDR}" pattern="190\.48\.15" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="172\.129\.200\.11" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="172\.191\.224\.120" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="190\.135\.228\.10" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="88\.158\.158" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="83\.103\.212" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="119\.63\.196" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="119\.234\.88" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="173\.212\.235" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="64\.120\.220" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="74\.86\.158\.106" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="180\.76\.5" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="220\.181\.108" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="123\.125\.71" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="180\.76\.6\.37" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="188\.143\.232" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="94\.23\.33\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="37\.59\.49\.210" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="173\.199\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="184\.173\.21\.40" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="93\.114\.43\.102" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="199\.21\.149" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="199\.167\.138" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="193\.0\.129" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="89\.248\.165\.134" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="182\.118\.22\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="182\.118\.20\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="101\.226\.16" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="89\.248\.165\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="123\.151\.148\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="77\.194\.58" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="86\.122\.202" ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="202\.46\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="37\.140\.141\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="199\.21\.99\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="180\.76\.6\." ignoreCase="false"/>
<add input="{REMOTE_ADDR}" pattern="37\.140\.141\." ignoreCase="false"/>
</conditions>
<action type="AbortRequest"/>
</rule>


</rules>



</rewrite>


</system.webServer>
</configuration>
 
Back
Top