mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-20 01:09:48 +00:00
Never affect REMOTE_ADDR with HTTP_X_FORWARDED_FOR
This commit is contained in:
parent
d9b97ee3bc
commit
fd77e477b0
1 changed files with 0 additions and 3 deletions
|
@ -6,9 +6,6 @@ require_once('serverconfig.php');
|
||||||
require_once('yaamp/defaultconfig.php');
|
require_once('yaamp/defaultconfig.php');
|
||||||
require_once('yaamp/ui/app.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'];
|
//$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
|
||||||
|
|
||||||
// blacklist some search bots which ignore robots.txt (most in fact)
|
// blacklist some search bots which ignore robots.txt (most in fact)
|
||||||
|
|
Loading…
Add table
Reference in a new issue