add x-frame-options for cleint php page
This commit is contained in:
parent
7b4427d3e3
commit
60b1b5eec5
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
$path = rtrim(str_replace('\\','/',dirname($_SERVER['PHP_SELF'])), '/');
|
$path = rtrim(str_replace('\\','/',dirname($_SERVER['PHP_SELF'])), '/');
|
||||||
$url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $path;
|
$url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $path;
|
||||||
|
header('X-Frame-Options: DENY');
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html class="no-js" lang="">
|
<html class="no-js" lang="">
|
||||||
|
|
Loading…
Reference in New Issue