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:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user