Last active
July 5, 2017 07:22
-
-
Save PacodiazDG/1ec350487cb7febda04d812899391ad2 to your computer and use it in GitHub Desktop.
Enabling mod_headers on apache2 || apache2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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