Iis IP限制和域限制&;返回的状态码?

Iis IP限制和域限制&;返回的状态码?,iis,iis-8.5,ip-restrictions,Iis,Iis 8.5,Ip Restrictions,我们正在使用IPDR,它工作得非常完美,因为它阻止了我们期望它阻止的东西,并允许它应该允许的东西。但我们感到困惑的是,为什么它会将状态码返回给客户端(500) 为什么我们没有收到预期的404?你有没有弄清楚这件事的真相?你有没有弄清楚这件事的真相? <location path="pathtoblock"> <system.webServer> <security> <ipSecurity allowUnlisted=

我们正在使用IPDR,它工作得非常完美,因为它阻止了我们期望它阻止的东西,并允许它应该允许的东西。但我们感到困惑的是,为什么它会将状态码返回给客户端(500)


为什么我们没有收到预期的404?

你有没有弄清楚这件事的真相?你有没有弄清楚这件事的真相?
<location path="pathtoblock">
    <system.webServer>
      <security>
        <ipSecurity allowUnlisted="false" denyAction="NotFound" >
          <clear/>
          <add allowed="true" ipAddress="127.0.0.1" />
          <add allowed="true" ipAddress="192.168.1.1" />
        </ipSecurity>
      </security>
    </system.webServer>
  </location>
date time  s-ip     cs-method   cs-uri-stem cs-uri-query    s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2015-11-18 18:06:25 192.168.1.2 GET         /pathtoblock - 443 -  192.168.1.3     Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/46.0.2490.86+Safari/537.36 - 404 503 5 62