From c059bb3d83731c0333b9c7c2c50700e1f005c74d Mon Sep 17 00:00:00 2001 From: Kazuki Suzuki Przyborowski Date: Wed, 13 May 2020 04:47:52 -0500 Subject: [PATCH] Update index.php --- vercheck/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vercheck/index.php b/vercheck/index.php index 314f88f..fe31157 100644 --- a/vercheck/index.php +++ b/vercheck/index.php @@ -51,6 +51,7 @@ if(!isset($ver_exp[3])) { $ver_exp[3] = null; } $appver = array($ver_exp[0],$ver_exp[1],$ver_exp[2],$ver_exp[3]);//Version of program $csryear = "2004"; $cryear = date("Y"); if($cryear<=2004) { $cryear = "2005"; } $site_useragent = "Mozilla/5.0 (compatible; iDB-VerCheck/".$site_version."; +".$agent_site_url.")"; +$URLsTest = parse_url($Settings['idburl']); // Programs to check for add to array. // $iDBArray = array("IntDB", "iDB");//IntDB $iDBArray = array("iDB"); @@ -73,6 +74,8 @@ $opts = array( "Forwarded: ".$_SERVER['REMOTE_ADDR']."\r\n". "X-Real-IP: ".$_SERVER['REMOTE_ADDR']."\r\n". "X-Forwarded-For: ".$_SERVER['REMOTE_ADDR']."\r\n". + "X-Forwarded-Host: ".$URLsTest['host']."\r\n". + "X-Forwarded-Proto: ".$URLsTest['scheme']."\r\n". "Client-IP: ".$_SERVER['REMOTE_ADDR']."\r\n" ) ); -- 2.11.0