Fix di sicurezza

This commit is contained in:
Thomas Zilio 2018-06-28 15:52:56 +02:00
parent 4bd135459b
commit da74e9b3e6
4 changed files with 8 additions and 4 deletions

View File

@ -32,10 +32,9 @@
</Files>
# Disable indexing of php, html, htm, pdf files
ServerSignature Off
<IfModule mod_headers.c>
<FilesMatch "\.(php|html|htm|pdf|log)$">
Header set X-Robots-Tag: "noindex"
</FilesMatch>
Header set X-Robots-Tag: "noindex,nofollow"
</IfModule>
<IfModule mod_rewrite.c>

View File

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

View File

@ -1,5 +1,8 @@
<?php
// Rimozione header X-Powered-By
header_remove('X-Powered-By');
// Impostazioni di configurazione PHP
date_default_timezone_set('Europe/Rome');

View File

@ -31,6 +31,8 @@ echo '<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="robots" content="noindex,nofollow">
<link href="'.$paths['img'].'/favicon.png" rel="icon" type="image/x-icon" />';
// CSS