add x-frame-options for cleint php page

This commit is contained in:
Ivan Diaz 2021-10-21 12:07:33 -03:00
parent 7b4427d3e3
commit 60b1b5eec5
No known key found for this signature in database
GPG Key ID: CB57E2CB1A6FDF44
1 changed files with 1 additions and 0 deletions

View File

@ -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="">