HTTP Security Headers for WordPress

I tried to improve security with HTTP response header.

We can test how well we are doing with Observatory.

https://observatory.mozilla.org/

I made my WordPress return response header like following.

strict-transport-security:max-age=31536000; includeSubDomains; preload
x-content-type-options:nosniff
x-frame-options:DENY
x-xss-protection:1; mode=block

I developed a WordPress plugin to output those headers.

https://github.com/miya0001/secure-headers

The test score of this site becomes “B” for now.

https://observatory.mozilla.org/analyze.html?host=miya.io&third-party=false

Related Links

 


Leave a Reply

Your email address will not be published. Required fields are marked *