Skip to content

Commit

Permalink
Added HTTP headers to fend off some nasties.
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreLvx committed Aug 15, 2014
1 parent 231d93b commit db16712
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.php
Expand Up @@ -70,6 +70,13 @@
MainController::RunAllActions();
$page_content = ob_get_clean();

// http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx?Redirected=true
header('X-Frame-Options: SAMEORIGIN');
// http://blogs.msdn.com/b/ieinternals/archive/2011/01/31/controlling-the-internet-explorer-xss-filter-with-the-x-xss-protection-http-header.aspx
header('X-XSS-Protection: 1');
// http://msdn.microsoft.com/en-us/library/ie/gg622941(v=vs.85).aspx
header('X-Content-Type-Options: nosniff');

$BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME);
$BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME);

Expand Down

0 comments on commit db16712

Please sign in to comment.