mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
remove 'closed for indexing' feature
Simultanous updates are fine these days.
This commit is contained in:
@@ -12,12 +12,6 @@
|
|||||||
}
|
}
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
|
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
|
||||||
|
|
||||||
if (CONST_ClosedForIndexing && strpos(CONST_ClosedForIndexingExceptionIPs, ','.$_SERVER["REMOTE_ADDR"].',') === false)
|
|
||||||
{
|
|
||||||
echo "Closed for re-indexing...";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$aBucketKeys = array();
|
$aBucketKeys = array();
|
||||||
|
|
||||||
if (isset($_SERVER["HTTP_REFERER"])) $aBucketKeys[] = str_replace('www.','',strtolower(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_HOST)));
|
if (isset($_SERVER["HTTP_REFERER"])) $aBucketKeys[] = str_replace('www.','',strtolower(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_HOST)));
|
||||||
|
|||||||
@@ -75,8 +75,6 @@
|
|||||||
|
|
||||||
// Website settings
|
// Website settings
|
||||||
@define('CONST_NoAccessControl', true);
|
@define('CONST_NoAccessControl', true);
|
||||||
@define('CONST_ClosedForIndexing', false);
|
|
||||||
@define('CONST_ClosedForIndexingExceptionIPs', '');
|
|
||||||
@define('CONST_BlockedIPs', '');
|
@define('CONST_BlockedIPs', '');
|
||||||
@define('CONST_BulkUserIPs', '');
|
@define('CONST_BulkUserIPs', '');
|
||||||
@define('CONST_BlockMessage', ''); // additional info to show for blocked IPs
|
@define('CONST_BlockMessage', ''); // additional info to show for blocked IPs
|
||||||
|
|||||||
Reference in New Issue
Block a user