Created
March 22, 2019 06:16
-
-
Save AnikHasibul/27aefcbd1a34c6312652675cc019e348 to your computer and use it in GitHub Desktop.
Security headers for php applications.
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
<?php | |
header('X-XSS-Protection: 1; mode=block'); | |
header('X-Content-Type: nosniff'); | |
header('X-Frame-Options: DENY'); | |
header('Referrer-Policy: no-referrer-when-downgrade'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment