summaryrefslogtreecommitdiffstats
path: root/apache.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-08-30 21:10:44 -0700
committerKaz Kylheku <kaz@kylheku.com>2024-08-30 21:10:44 -0700
commite63a1ac8870dbf9ffbbfe46b4944b6bba036658c (patch)
tree4b1482e11fb157320e828c196137220d81fdf7d8 /apache.txr
parent0b33b1cb61bcc49cfdf14589935700ac42a6607f (diff)
downloadtxrban-e63a1ac8870dbf9ffbbfe46b4944b6bba036658c.tar.gz
txrban-e63a1ac8870dbf9ffbbfe46b4944b6bba036658c.tar.bz2
txrban-e63a1ac8870dbf9ffbbfe46b4944b6bba036658c.zip
apache: modernize bad bot patterns.
Diffstat (limited to 'apache.txr')
-rw-r--r--apache.txr4
1 files changed, 2 insertions, 2 deletions
diff --git a/apache.txr b/apache.txr
index 27aee8c..81b78ec 100644
--- a/apache.txr
+++ b/apache.txr
@@ -6,8 +6,8 @@
@ (and)
@ (if (search-regex agent #/Googlebot|bingbot|baidu/))
@ (bind points nil)
-@ (elif (search-regex agent
- #/Ezoom|[Bb][Oo][Tt]|[Ss]pider|[Cc]rawler|[Yy]andex|coccoc/))
+@ (elif (search-regex (downcase-str agent)
+ #/ezoom|bot|spider|crawler|scan|yandex|coccoc|github|python/))
@ (bind points 9)
@ (elif (not (memqual err '("200" "206" "301" "302" "304"))))
@ (bind points 1)