]> git.openstreetmap.org Git - chef.git/commitdiff
web: Ignore GoogleAssociationService assetlinks.json requests
authorGrant Slater <github@firefishy.com>
Sat, 22 Mar 2025 11:02:01 +0000 (11:02 +0000)
committerGrant <github@firefishy.com>
Sat, 22 Mar 2025 11:25:15 +0000 (12:25 +0100)
cookbooks/web/templates/default/apache.frontend.erb

index 98097d7d92c8c05d92f80a4180177797b117228b..f05b99b5c860b21b8ce6bc95b08809e6f1e67f5a 100644 (file)
@@ -2,7 +2,7 @@
 
 #
 # Setup logging
-# 
+#
 SetEnvIfNoCase Authorization "^Basic " AUTH_METHOD=basic
 SetEnvIfNoCase Authorization "^OAuth " AUTH_METHOD=oauth1
 SetEnvIfNoCase Authorization "^Bearer " AUTH_METHOD=oauth2
@@ -108,6 +108,13 @@ ErrorLog /var/log/apache2/error.log
   RewriteCond "%{QUERY_STRING}" "^q=abcde&t=20"
   RewriteRule "^/api/0\.6/notes/search$" - [R=429,L]
 
+  #
+  # Ignore GoogleAssociationService request storm
+  # https://en.osm.town/@osm_tech/114205363076771822
+  #
+  RewriteCond %{HTTP_USER_AGENT} "GoogleAssociationService"
+  RewriteRule "^/\.well-known/assetlinks\.json$" - [R=429,L]
+
   #
   # Force special MIME type for crossdomain.xml files
   #