Created
December 5, 2020 02:03
-
-
Save rcg4u/45dbff2b4c8d599ebafa11b82685a949 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#apache security headers | |
<IfModule mod_headers.c> | |
Header set X-Content-Type-Options nosniff | |
Header set Strict-Transport-Security "max-age=31536000;" | |
Header set Referrer-Policy "same-origin" | |
Header set Feature-Policy "accelerometer 'none' ; ambient-light-sensor 'none' ; autoplay 'none' ; camera 'none' ; encrypted-media 'none' ; fullscreen 'none' ; geolocation 'none' ; gyroscope 'none' ; magnetometer 'none' ;microphone 'none' ; midi 'none' ; payment 'none' ; speaker 'none' ; sync-xhr 'none' ; usb 'none' ; notifications 'none' ; vibrate 'none' ; push 'none' ; vr 'none' " | |
Header set Content-Security-Policy: "script-src 'self'" | |
Header always append X-Frame-Options SAMEORIGIN | |
Header set X-XSS-Protection "1; mode=block" | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment