-
Notifications
You must be signed in to change notification settings - Fork 22
Document best practice security headers option always with redirect (defense in depth) #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
An defense-in-depth measure is no problem for me.
|
For me it now works in index.php as can be seen with https://internet.nl/site/workingornot.org/3186198/# |
|
Indeed 'always' works: Header always set Strict-Transport-Security "max-age=63072000" |
Maybe move this ticket to internetstandards/toolbox-wiki/? |
https://securityheaders.com/?q=https%3A%2F%2Fwww.securityheaders.com%2F Knowledge transfer should work after an issue like: Document please required stabilization having 'always' in security headers. The tool securityheaders.com
|
For securityheaders.com modeling was necessary. |
https://en.internet.nl/site/www.workingornot.org/3182705/#
https://en.internet.nl/site/workingornot.org/3182706/
.htaccess content:
SetEnv no-gzip 1
Header always set Strict-Transport-Security "max-age=63072000"
Header set X-Content-Type-Options nosniff
Header set X-Xss-Protection "1; mode=block"
Header set Referrer-Policy same-origin
Header set X-Frame-Options SAMEORIGIN
Header set Content-Security-Policy "default-src 'none'; base-uri 'none'; frame-src 'self'; connect-src 'self'; form-action 'self'; font-src 'self' data: https://fonts.googleapis.com https://fonts.gstatic.com; frame-ancestors 'self'; img-src 'self' data:; object-src 'none'; script-src 'self'; style-src 'unsafe-inline' 'self' data:; style-src-elem 'self' 'unsafe-inline' data: https://fonts.googleapis.com;"
Header set Permissions-Policy geolocation=()
Options +Indexes
<If "! (%{HTTP_HOST} =~ /^www.workingornot.org$/)">
Redirect 302 / https://www.workingornot.org/
ErrorDocument 404 /404.html
Redirect 302 /.well-known/security.txt https://janwillemstegink.nl/.well-known/security.txt
With escaping of dots visible in an image:
The text was updated successfully, but these errors were encountered: