Permalink
Browse files

don't send blocked IPs to OSM's trac by default

  • Loading branch information...
1 parent 71429b9 commit 3470abad079927d5ee3b659865a940b5703f8551 @lonvia lonvia committed Oct 18, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −2 lib/init-website.php
  2. +1 −0 settings/settings.php
View
@@ -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;
}
View
@@ -55,6 +55,7 @@ function user_busy_cost()
@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');

0 comments on commit 3470aba

Please sign in to comment.