HTTP Security Headers for IIS - Windows and Tool

If you found your application missing  with various security headers which can prevents various kinds of attacks. HTTP security headers provide yet another layer of security by helping to mitigate attacks and security vulnerabilities.

Here we will provide information as how to include those header using IIS.

First visit https://securityheaders.io to check will header are missing.

Complete list is as follows.

   * Open IIS Manager
   * Select the Site you need to enable the header for
   * Go to “HTTP Response Headers”
   * Click “Add” under actions
    * Enter name, value and click Ok

  • X-Content-Type-Options Header

Name : X-Content-Type-Options
Value : nosniff

  • X-Frame-Options Header

Name :X-Frame-Options
Value : DENY

  • X-XSS-Protection Header

Name : X-XSS-Protection

Value : 1; mode=block

  • Content-Security-Policy Header

Name : Content-Security-Policy
Value : default-src 'self'

Name : Content-Security-Policy
Value : script-src 'self'


default-src     Load everything from defined source
script-src     Load only scripts from defined source

  • Referrer-Policy Header

* Update soon

For Apache HTTP Server Nginx MaxCDN visit https://geekflare.com/http-header-implementation



Contact us for any question on this topic

Search for any Payment Gateway PayPal, CCAvenue, WorldPay, Technology Help

Click here to Contact for any Integration Help

Earn Rs 51 and Help a Needy and more on further referral (INDIA ONLY) I’m inviting you to join Tez, a simple and secure payments app by Google. Here’s my code UG0W9 - just enter it before your first transaction. Once you’ve sent your first payment, we’ll each get ₹51! https://g.co/tez/UG0W9