From 0bd13460dcab5dd4245bcdfe4a007b074788cccf Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 10 May 2013 20:43:17 +0200 Subject: [PATCH] updated VENDORS for 2.3.0-BETA2 --- web/config.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web/config.php b/web/config.php index 5ae4ef7..162acfc 100644 --- a/web/config.php +++ b/web/config.php @@ -4,12 +4,10 @@ exit('This script cannot be run from the CLI. Run it from a browser.'); } -// This check prevents access to configuration check that are deployed by accident to production servers. -// Feel free to remove this, extend it, or make something more sophisticated. -if (isset($_SERVER['HTTP_CLIENT_IP']) - || isset($_SERVER['HTTP_X_FORWARDED_FOR']) - || !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) -) { +if (!in_array(@$_SERVER['REMOTE_ADDR'], array( + '127.0.0.1', + '::1', +))) { header('HTTP/1.0 403 Forbidden'); exit('This script is only accessible from localhost.'); }