From a3d91fd9d61e36a42c148e0f8797603b14c581c5 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 1 Aug 2017 22:05:26 +0200 Subject: [PATCH] add root url to ban check --- utils/cron_ipanalyse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/cron_ipanalyse.py b/utils/cron_ipanalyse.py index 7a70e586..fa9f1cb7 100755 --- a/utils/cron_ipanalyse.py +++ b/utils/cron_ipanalyse.py @@ -85,7 +85,9 @@ class LogEntry: if qp[0] == 'OPTIONS': self.request = None else: - if '/search' in qp[1]: + if '/' in qp[1]: + self.request = 'S' + elif '/search' in qp[1]: self.request = 'S' elif '/reverse' in qp[1]: self.request = 'R' -- 2.39.5