X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/02e7cfd6f483a6274417e5284ba547eda7ef3007..a7069753e81844dee38e440545bd21e93a6fbd6b:/lib/init-website.php?ds=inline diff --git a/lib/init-website.php b/lib/init-website.php index 8f04d97d..ce046eaa 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -1,34 +1,4 @@ CONST_ConnectionBucket_WaitLimit && $fBucketVal < CONST_ConnectionBucket_BlockLimit) - { - sleep(($fBucketVal - CONST_ConnectionBucket_WaitLimit)/CONST_ConnectionBucket_LeakRate); - $fBucketVal = doBucket($aBucketKeys, 0, 0, CONST_ConnectionBucket_BlockLimit); - } - - if (strpos(CONST_BlockedIPs, ','.$_SERVER["REMOTE_ADDR"].',') !== false || $fBucketVal >= CONST_ConnectionBucket_BlockLimit) - { - echo "Your IP has been blocked. \n"; - echo "Please create a nominatim trac ticket (http://trac.openstreetmap.org/newticket?component=nominatim) to request this to be removed. \n"; - echo "Information on the Nominatim usage policy can be found here: http://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy \n"; - exit; - } - - header('Content-type: text/html; charset=utf-8'); + header('Content-type: text/html; charset=utf-8');