• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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