From 463e01b555fda760e73f50e68d9249b3266bcd25 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 17 Jan 2025 15:30:09 +0000 Subject: [PATCH] Block another bogus crawler user agent Today our Gitea servers are being flooded by requests with this hilarious UA where "Edge" is clearly misspelled. Change-Id: I3ee5ee7e7385f5ff66eef1739dab38dda7d7a16f --- playbooks/roles/apache-ua-filter/files/ua-filter.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/apache-ua-filter/files/ua-filter.conf b/playbooks/roles/apache-ua-filter/files/ua-filter.conf index dfd678d869..8e74d24275 100644 --- a/playbooks/roles/apache-ua-filter/files/ua-filter.conf +++ b/playbooks/roles/apache-ua-filter/files/ua-filter.conf @@ -97,7 +97,8 @@ RewriteCond %{HTTP_USER_AGENT} "^Mozilla/5\.0 \(Windows NT 6\..; Win64; x64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/6.\.0\..* Safari/537\.36" [OR] RewriteCond %{HTTP_USER_AGENT} "^Mozilla/5\.0 \(Windows NT 6\..; Win64; x64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/7.\.0\..* Safari/537\.36" [OR] RewriteCond %{HTTP_USER_AGENT} "^Mozilla/5\.0 \(Windows NT 10\..; Win64; x64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/6.\.0\..* Safari/537\.36" [OR] - RewriteCond %{HTTP_USER_AGENT} "^Mozilla/5\.0 \(Windows NT 10\..; Win64; x64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/7.\.0\..* Safari/537\.36" + RewriteCond %{HTTP_USER_AGENT} "^Mozilla/5\.0 \(Windows NT 10\..; Win64; x64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/7.\.0\..* Safari/537\.36" [OR] + RewriteCond %{HTTP_USER_AGENT} "=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.43" RewriteRule . - [R=403,L]