Ninetiger blog

-- my reminder

A couple of security settings in web.config's customHeaders section

<configuration>
   <system.webServer>
      <httpProtocol>
        <remove name="X-Powered-By" />
         <customHeaders>
            <add name="X-Frame-Options" value="DENY" />
            <add name="X-XSS-Protection" value="1;mode=block" />
            <add name="X-Content-Type-Options" value="nosniff" />
         </customHeaders>
      </httpProtocol>
   </system.webServer>
</configuration>

X-Frame-Options: Disable other website to show my webpages in their web pages using iframes.

Comments:

Back to top