Don't save all visitors requests into database (save space and computing). Can be changed in deufalt_conf.py with keep_requests value

This commit is contained in:
Gregory Soutade
2022-06-23 21:16:30 +02:00
parent 99639b65a4
commit 4d3c2107f0
3 changed files with 14 additions and 3 deletions

View File

@@ -36,8 +36,7 @@ Plugin requirements :
None
Conf values needed :
page_to_hit_conf*
hit_to_page_conf*
None
Output files :
None
@@ -49,6 +48,7 @@ Statistics update :
visits :
remote_addr =>
robot
keep_requests
Statistics deletion :
None
@@ -73,6 +73,7 @@ class IWLAPreAnalysisRobots(IPlugin):
self.logger.debug('%s is a robot (caller %s:%d)' % (k, info.function, info.lineno))
super_hit['robot'] = 1
super_hit['keep_requests'] = False
# Basic rule to detect robots
def hook(self):