I am currently using Windows Server 2008 R2 with Parallels Plesk Version 11.5.30. The server is currently running ASP.NET 4.0.30319.18408. My website uses ASP classic. I am trying to create a web.config file to block IP addresses.
When I place the following web.config file in the root directory of my website, I always get a 500 Internal Server Error:
<?xml version="1.0"?>
<configuration>
<system.webServer>
<security>
<ipSecurity allowUnlisted="true">
<clear/>
<add ipAddress="2.60.0.0" subnetMask="255.252.0.0"/>
<add ipAddress="2.92.0.0" subnetMask="255.252.0.0"/>
<add ipAddress="5.1.48.0" subnetMask="255.255.248.0"/>
<add ipAddress="5.2.32.0" subnetMask="255.255.224.0"/>
<add ipAddress="5.3.0.0" subnetMask="255.255.0.0"/>
<add ipAddress="5.8.0.0" subnetMask="255.255.192.0"/>
<add ipAddress="5.8.64.0" subnetMask="255.255.224.0"/>
<add ipAddress="5.8.160.0" subnetMask="255.255.240.0"/>
<add ipAddress="5.8.176.0" subnetMask="255.255.248.0"/>
</ipSecurity>
</security>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
I've had many people look at this and no one can tell me why this would cause any errors what so ever. Its a simple web.config file.
Can anyone tell me why this would cause errors? Any help would be well appreciated.
When I place the following web.config file in the root directory of my website, I always get a 500 Internal Server Error:
<?xml version="1.0"?>
<configuration>
<system.webServer>
<security>
<ipSecurity allowUnlisted="true">
<clear/>
<add ipAddress="2.60.0.0" subnetMask="255.252.0.0"/>
<add ipAddress="2.92.0.0" subnetMask="255.252.0.0"/>
<add ipAddress="5.1.48.0" subnetMask="255.255.248.0"/>
<add ipAddress="5.2.32.0" subnetMask="255.255.224.0"/>
<add ipAddress="5.3.0.0" subnetMask="255.255.0.0"/>
<add ipAddress="5.8.0.0" subnetMask="255.255.192.0"/>
<add ipAddress="5.8.64.0" subnetMask="255.255.224.0"/>
<add ipAddress="5.8.160.0" subnetMask="255.255.240.0"/>
<add ipAddress="5.8.176.0" subnetMask="255.255.248.0"/>
</ipSecurity>
</security>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
I've had many people look at this and no one can tell me why this would cause any errors what so ever. Its a simple web.config file.
Can anyone tell me why this would cause errors? Any help would be well appreciated.