mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-24 21:44:45 +03:00
Return 429 Too Many Requests for rate limiting
This commit is contained in:
parent
f56cae4291
commit
8ecd32b7dd
@ -54,6 +54,7 @@
|
||||
|
||||
if (strpos(CONST_BlockedIPs, ','.$_SERVER["REMOTE_ADDR"].',') !== false || $fBucketVal >= CONST_ConnectionBucket_BlockLimit)
|
||||
{
|
||||
header("HTTP/1.0 429 Too Many Requests");
|
||||
echo "Your IP has been blocked. \n";
|
||||
echo CONST_BlockMessage;
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user