diff --git a/plugins/pre_analysis/robots.py b/plugins/pre_analysis/robots.py index 922c9d2..3f7c7bb 100644 --- a/plugins/pre_analysis/robots.py +++ b/plugins/pre_analysis/robots.py @@ -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 +