From: Grant Slater Date: Fri, 9 Jul 2021 09:27:34 +0000 (+0100) Subject: Respond with 429 to abusive "ping" requests X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/7b07f5d59b1751fef2f13b3dea701807c0b421e3?ds=sidebyside Respond with 429 to abusive "ping" requests --- diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 19854189b..e67961232 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -78,7 +78,7 @@ # https://gist.github.com/Firefishy/86ed5b86991b225179b54bbafbcd769e # RewriteCond "%{QUERY_STRING}" "^q=abcde&t=20" - RewriteRule "^/api/0\.6/notes/search$" - [R=204,L] + RewriteRule "^/api/0\.6/notes/search$" - [R=429,L] # # Force special MIME type for crossdomain.xml files