From 3470abad079927d5ee3b659865a940b5703f8551 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 18 Oct 2013 19:23:04 +0200 Subject: [PATCH 1/1] don't send blocked IPs to OSM's trac by default --- lib/init-website.php | 3 +-- settings/settings.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/init-website.php b/lib/init-website.php index bcf3ebf7..e47b73fb 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -55,8 +55,7 @@ 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"; + echo CONST_BlockMessage; exit; } diff --git a/settings/settings.php b/settings/settings.php index 0ce34ad2..27b3446b 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -55,6 +55,7 @@ @define('CONST_ClosedForIndexingExceptionIPs', ''); @define('CONST_BlockedIPs', ''); @define('CONST_BulkUserIPs', ''); + @define('CONST_BlockMessage', ''); // additional info to show for blocked IPs @define('CONST_Website_BaseURL', 'http://'.php_uname('n').'/'); @define('CONST_Tile_Default', 'Mapnik'); -- 2.39.5