Skip to content

Instantly share code, notes, and snippets.

@AnikHasibul
Created March 22, 2019 06:16
Show Gist options
  • Save AnikHasibul/27aefcbd1a34c6312652675cc019e348 to your computer and use it in GitHub Desktop.
Save AnikHasibul/27aefcbd1a34c6312652675cc019e348 to your computer and use it in GitHub Desktop.
Security headers for php applications.
<?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