summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-08-30 21:12:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2024-08-30 21:12:19 -0700
commite16bc22f0122677ee9694ddaf3b335d0bea374b8 (patch)
treef7cadf8f48d52056d15b342a4a2ca29c3fc7883e
parentdc974923ac118641d44909f25d8bc93960778484 (diff)
downloadtxrban-master.tar.gz
txrban-master.tar.bz2
txrban-master.zip
apache: crack down on crawling of cgit.HEADmaster
-rw-r--r--apache.txr4
1 files changed, 2 insertions, 2 deletions
diff --git a/apache.txr b/apache.txr
index 3a715f4..06b059c 100644
--- a/apache.txr
+++ b/apache.txr
@@ -19,7 +19,7 @@
@ (end)
@ (do
(let ((time (make-time year month day hour min sec :auto)))
- (if points
- (report ip time points)
+ (if (or points (contains "cgit" uri))
+ (report ip time (or points 0))
(do-expiry time))))
@(end)