From: Sarah Hoffmann Date: Tue, 1 Aug 2017 20:05:26 +0000 (+0200) Subject: add root url to ban check X-Git-Tag: deploy~379 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/a3d91fd9d61e36a42c148e0f8797603b14c581c5?hp=cb908b0a30bbffb3a35f49aa13e249cf3b61b152 add root url to ban check --- 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'