Skip to content

Instantly share code, notes, and snippets.

@alipasakaratas
alipasakaratas / web.BADBOT.config
Created July 17, 2019 14:18 — forked from edrohler/web.BADBOT.config
Web config section for bad bot blocking in asp.net
<system.webServer>
<staticContent>
<clientCache httpExpires="Thur, 31 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
</staticContent>
<httpProtocol>
<customHeaders>
<!-- Remove Excessive Header -->
<remove name="X-Powered-By"/>
<!-- Removes Azure non-HttpOnly Cookie -->
<add name="Arr-Disable-Session-Affinity" value="True" />