Remove robot rule 1 page for phones
This commit is contained in:
parent
cad3467c25
commit
440f51ddd1
|
@ -122,11 +122,8 @@ class IWLAPreAnalysisRobots(IPlugin):
|
|||
self._setRobot(k, super_hit)
|
||||
continue
|
||||
|
||||
# 2) Less than 1 hit per page (except for mobile phones that can do caching)
|
||||
if super_hit['viewed_pages'][0] and (super_hit['viewed_hits'][0] < super_hit['viewed_pages'][0]) \
|
||||
and not 'iPhone' in first_page['http_user_agent'] \
|
||||
and not 'Android' in first_page['http_user_agent'] \
|
||||
:
|
||||
# 2) Less than 1 hit per page
|
||||
if super_hit['viewed_pages'][0] and (super_hit['viewed_hits'][0] < super_hit['viewed_pages'][0]):
|
||||
isRobot = True
|
||||
|
||||
if isRobot:
|
||||
|
|
Loading…
Reference in New Issue
Block a user