Allow “localhost” to run in iisexpress when web.config contains ipSecurity permissions
问题 I just added this to my web.config: <security> <ipSecurity allowUnlisted="false"> <!-- The following IP addresses are granted access, all else denied --> <add allowed="true" ipAddress="123.123.105.0" subnetMask="255.255.255.0" /> <add allowed="true" ipAddress="123.123.100.0" subnetMask="255.255.255.0" /> </ipSecurity> </security> Works exactly as intended, only over that certain IP range. BUT, now when I go to test this in Visual Studio via iisExpress over localhost it of course gives me