From 7b07f5d59b1751fef2f13b3dea701807c0b421e3 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 9 Jul 2021 10:27:34 +0100 Subject: [PATCH 1/1] Respond with 429 to abusive "ping" requests --- cookbooks/web/templates/default/apache.frontend.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5