Wednesday, January 6, 2016

requestLimits in Web.config?

This should forbid hits at IIS. I have not tried it. An example:

<configuration>
   <system.webServer>
      <security>
         <requestFiltering>
            <requestLimits maxAllowedContentLength="62914560">
               <headerLimits>
                  <add header="Content-type" sizeLimit="100" />
               </headerLimits>
            </requestLimits>
         </requestFiltering>
      </security>
   </system.webServer>
</configuration>

No comments:

Post a Comment