3 require_once('init.php');
5 if (CONST_ClosedForIndexing && strpos(CONST_ClosedForIndexingExceptionIPs, ','.$_SERVER["REMOTE_ADDR"].',') === false)
7 echo "Closed for re-indexing...";
11 if (strpos(CONST_BlockedIPs, ','.$_SERVER["REMOTE_ADDR"].',') !== false)
13 header('HTTP/1.0 403 Forbidden');
14 header('Content-type: text/html; charset=utf-8');
15 echo "<html><body><h1>Access blocked</h1>";
16 echo "Your IP has been blocked for overusing OpenStreetMap's volunteer-run servers.<br> \n";
17 echo 'Please consult the <a href="http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy">Nominatim usage policy</a> for more information.';
18 echo "\n</body></html>\n";
22 header('Content-type: text/html; charset=utf-8');