Fix di sicurezza
This commit is contained in:
parent
4bd135459b
commit
da74e9b3e6
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
3
core.php
3
core.php
|
@ -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');
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue