From da74e9b3e6b153e72f4c586fa277923d2b3f6003 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Thu, 28 Jun 2018 15:52:56 +0200 Subject: [PATCH] Fix di sicurezza --- .htaccess | 5 ++--- api/index.php | 2 +- core.php | 3 +++ include/top.php | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index 866f9691b..59687d0f2 100644 --- a/.htaccess +++ b/.htaccess @@ -32,10 +32,9 @@ # Disable indexing of php, html, htm, pdf files +ServerSignature Off - - Header set X-Robots-Tag: "noindex" - + Header set X-Robots-Tag: "noindex,nofollow" diff --git a/api/index.php b/api/index.php index a78db90d2..3f1ab6338 100644 --- a/api/index.php +++ b/api/index.php @@ -9,7 +9,7 @@ function serverError() } } -// Impostazioni del Content-Type +// Impostazioni di Content-Type e Charset Header header('Content-Type: application/json; charset=UTF-8'); // Gestione degli errori diff --git a/core.php b/core.php index ad8e7ce93..07f7aa679 100644 --- a/core.php +++ b/core.php @@ -1,5 +1,8 @@ + + '; // CSS