HTTP Headers is a WordPress plugin who gives your control over the HTTP headers returned by your wordpress based blog or website.
Helps to protect from XSS, MITM and Clickjacking attacks. Overcomes the limitations of the same-origin policy.
A list of headers supported by current version:
Who use these headers?
These HTTP headers are being used in production services by popular websites as Facebook, Google+, Twitter, LinkedIn, YouTube, Yahoo, Amazon, Ebay, Paypal, Instagram, Pinterest, Dropbox, Reddit, Netflix, Tumblr, Blogger and many more.
To install HTTP Headers plugin on your WordPress blog, follow these steps:
- Download the source code of HTTP Headers for WordPress using your preferred method among:
- SVN Checkout - for those of you who are familiar with SVN and command line, use this command:
$ svn co https://plugins.svn.wordpress.org/http-headers/tags/1.10.4/
- File download - for those of you who likes an old-fashioned file download, click the button below:
Download HTTP Headers v1.10.4
- Copy the plugin's content into the
- Activate the plugin.
- That's all.
Headers in action
The image below shows up how the security headers are presented in the server response:
A typical configuration for a website includes these security headers and their corresponding values:
- X-Frame-Options: deny
- X-XSS-Protection: 1; mode=block
- X-Content-Type-Options: nosniff
- X-UA-Compatible: IE=edge,chrome=1
- Strict-Transport-Security: max-age: 31536000; includeSubDomains (include only if your website supports SSL)
- Referrer-Policy: no-referrer-when-downgrade
If you intend to support cross-origin resource sharing, consider following:
- Access-Control-Allow-Origin: *
- Access-Control-Allow-Credentials: true (include if you will support HTTP Cookies, HTTP Authentication or SSL certificates)
- Access-Control-Allow-Methods: POST, GET, OPTIONS
- Access-Control-Allow-Headers: Origin
- P3P: CP="CAO PSA OUR"
HTTP Headers for WordPress is licensed under the GPLv2 license or later.
HTTP Headers plugin requires WordPress 3.2 or higher and is compatible up to WordPress 4.9.8.
Along with improving the security of your website, this plugin makes your blog a CORS-compliant. That make it a must-have addition to your WordPress site.
Share this post
If you have any question about the HTTP Headers for WordPress, leave a comment below. And do not be shy to share this article. Thanks so much for reading!