From: Tom Hughes Date: Wed, 12 Jul 2023 12:30:22 +0000 (+0100) Subject: Block a trace scraper X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/88388614cf378c6749cf2b0598369f5a480e2251 Block a trace scraper --- diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 24ba35366..f4848bc3a 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -65,6 +65,12 @@ 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 #