Skip to content

Instantly share code, notes, and snippets.

@jacobovidal
Created July 27, 2017 15:46
Show Gist options
  • Save jacobovidal/9fb7553c3e180ffdcda801a7cb193daa to your computer and use it in GitHub Desktop.
Save jacobovidal/9fb7553c3e180ffdcda801a7cb193daa to your computer and use it in GitHub Desktop.
Security headers to .htaccess
<ifModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set X-XSS-Protection "1; mode=block"
Header always set X-Frame-Options "deny"
</IfModule>
@kuopassa
Copy link

kuopassa commented Feb 7, 2021

^ Typo: ifModule at the beginning and IfModule at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment