slitaz-forge rev 712
Prevent sending the Referer header
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 20 08:44:15 2020 +0000 (2020-08-20) |
parents | 61a312917e44 |
children | f911834f9e63 |
files | mirror/root/dir-generator.php |
line diff
1.1 --- a/mirror/root/dir-generator.php Wed Jan 01 18:26:56 2020 +0100 1.2 +++ b/mirror/root/dir-generator.php Thu Aug 20 08:44:15 2020 +0000 1.3 @@ -13,6 +13,7 @@ 1.4 <meta charset="UTF-8"> 1.5 <meta name="description" content="slitaz mirror redirection"> 1.6 <meta name="robots" content="index, nofollow"> 1.7 + <meta name="referrer" content="no-referrer"> 1.8 <meta name="author" content="SliTaz Contributors"> 1.9 <meta http-equiv="Refresh" content="0;url=http://mirror1.slitaz.org/"> 1.10 </head> 1.11 @@ -174,6 +175,7 @@ 1.12 $fvalue = 'value="' . $_GET['f'] . '"'; 1.13 header("Expires: " . $expires); 1.14 header("Last-Modified: " . $modified); 1.15 + header('Referrer-policy: "no-referrer"'); 1.16 header("Pragma: cache"); 1.17 // header("Cache-Control: public"); 1.18 // <meta http-equiv="cache-control" content="public" /> 1.19 @@ -189,6 +191,7 @@ 1.20 "; 1.21 ?> 1.22 <meta name="robots" content="index, nofollow"> 1.23 + <meta name="referrer" content="no-referrer"> 1.24 <meta name="author" content="SliTaz Contributors"> 1.25 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 1.26 <link rel="shortcut icon" href="/static/favicon.ico">