diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-08-30 21:11:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-08-30 21:11:29 -0700 |
commit | dc974923ac118641d44909f25d8bc93960778484 (patch) | |
tree | 41381a63657da71f372affa043e7ac375e8e3063 | |
parent | e63a1ac8870dbf9ffbbfe46b4944b6bba036658c (diff) | |
download | txrban-dc974923ac118641d44909f25d8bc93960778484.tar.gz txrban-dc974923ac118641d44909f25d8bc93960778484.tar.bz2 txrban-dc974923ac118641d44909f25d8bc93960778484.zip |
apache: don't ban clients trying to access icons.
-rw-r--r-- | apache.txr | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -9,7 +9,9 @@ @ (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")))) +@ (elif (and (not (memqual err '("200" "206" "301" "302" "304"))) + (not (or (mequal (short-suffix uri) "ico" "jpg" "png" "gif"))))) +))) @ (bind points 1) @ (else) @ (bind points 0) |