remove IP blocking and rate-limiting code

Closes #472.
This commit is contained in:
Sarah Hoffmann
2016-07-18 14:41:09 +02:00
parent 975c30afba
commit 4f75f4cb6e
8 changed files with 1 additions and 278 deletions

View File

@@ -8,19 +8,6 @@
require_once(CONST_BasePath.'/lib/ReverseGeocode.php');
require_once(CONST_BasePath.'/lib/output.php');
if (strpos(CONST_BulkUserIPs, ','.$_SERVER["REMOTE_ADDR"].',') !== false)
{
$fLoadAvg = getLoadAverage();
if ($fLoadAvg > 2) sleep(60);
if ($fLoadAvg > 4) sleep(120);
if ($fLoadAvg > 6)
{
echo "Bulk User: Temporary block due to high server load\n";
exit;
}
}
$bAsGeoJSON = getParamBool('polygon_geojson');
$bAsKML = getParamBool('polygon_kml');
$bAsSVG = getParamBool('polygon_svg');