Skip to content

Instantly share code, notes, and snippets.

@PacodiazDG
Last active July 5, 2017 07:22
Show Gist options
  • Save PacodiazDG/1ec350487cb7febda04d812899391ad2 to your computer and use it in GitHub Desktop.
Save PacodiazDG/1ec350487cb7febda04d812899391ad2 to your computer and use it in GitHub Desktop.
Enabling mod_headers on apache2 || apache2.conf
# Add this line to "\etc\apache2\apache2.conf"
# <------------------------------------------------------------->
# LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
<IfModule mod_headers.c>
Header set x-frame-options "deny"
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection "1; mode=block"
Header set cache-control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
</IfModule>
# <------------------------------------------------------------->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment