]> git.openstreetmap.org Git - chef.git/commitdiff
Block a trace scraper
authorTom Hughes <tom@compton.nu>
Wed, 12 Jul 2023 12:30:22 +0000 (13:30 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 12 Jul 2023 12:30:22 +0000 (13:30 +0100)
cookbooks/web/templates/default/apache.frontend.erb

index 24ba353667c5a32de8aaecbb26f309bcfebbfaa1..f4848bc3a96e020b80df0f12ab2f97201eb645bc 100644 (file)
   RewriteCond %{HTTP_USER_AGENT} "OSMApp Tuner"
   RewriteRule . - [F,L]
 
+  #
+  # Block trace scraper
+  #
+  RewriteCond %{HTTP_USER_AGENT} "python-httpx/0.24.1"
+  RewriteRule . - [F,L]
+
   #
   # Block attempts to access old API versions
   #