Add a new rule for robots : 1 page and 1 hit, but not from the same source
This commit is contained in:
parent
72db40d593
commit
21a21cd68f
|
@ -158,3 +158,10 @@ class IWLAPreAnalysisRobots(IPlugin):
|
|||
(super_hit['viewed_hits'][0] and not referers):
|
||||
self._setRobot(k, super_hit)
|
||||
continue
|
||||
|
||||
# 8) Special case : 1 page and 1 hit, but not from the same source
|
||||
if (super_hit['viewed_pages'][0] == 1 and super_hit['viewed_hits'][0] == 1 and len(super_hit['requests']) == 2) and\
|
||||
(super_hit['requests'][0]['server_name'] != super_hit['requests'][1]['server_name']):
|
||||
self._setRobot(k, super_hit)
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user