From fd77e477b03e08b8e6a35312b9996f1324cc926a Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 14 Aug 2017 12:45:38 +0200 Subject: [PATCH] Never affect REMOTE_ADDR with HTTP_X_FORWARDED_FOR --- web/index.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/index.php b/web/index.php index 6d7bd82..ad6c826 100644 --- a/web/index.php +++ b/web/index.php @@ -6,9 +6,6 @@ require_once('serverconfig.php'); require_once('yaamp/defaultconfig.php'); require_once('yaamp/ui/app.php'); -if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) - $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; - //$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI']; // blacklist some search bots which ignore robots.txt (most in fact)