Skip to content

Instantly share code, notes, and snippets.

@dusekdan
Created June 29, 2018 13:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dusekdan/c34c939681ab9af7bb3530c1420426b5 to your computer and use it in GitHub Desktop.
Save dusekdan/c34c939681ab9af7bb3530c1420426b5 to your computer and use it in GitHub Desktop.
<?php
header('X-XSS-Protection: 1; mode=block');
header('X-Content-Type: nosniff');
header('X-Frame-Options: DENY');
// If you have sensitive information in any of your URLS, use 'no-referrer' as a value instead)
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