Skip to content

Instantly share code, notes, and snippets.

@dipakcg
Created Sep 21, 2020
Embed
What would you like to do?
HTTP Security Headers (WordPress)
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment