diff --git a/lib/headers.php b/lib/headers.php new file mode 100644 index 0000000..c1d2970 --- /dev/null +++ b/lib/headers.php @@ -0,0 +1,18 @@ +alert("Bad CSRF token. Please press F12, view the console and report the error, including file & line number, so it can be fixed. Many thanks!");'; + echo ''; + die('Bad CSRF token'); +} + +// Set our security related headers, prevents clickjacking +header("frame-options: SAMEORIGIN"); +header("XSS-Protection: 1; mode=block"); +?> \ No newline at end of file