[pre_analysis/robots] Don't checks for /robots.txt request, but endswith /robots.txt for robot detection
This commit is contained in:
parent
2ed7551049
commit
df78a3f4cb
|
@ -100,7 +100,7 @@ class IWLAPreAnalysisRobots(IPlugin):
|
|||
|
||||
for hit in super_hit['requests']:
|
||||
# 3) /robots.txt read
|
||||
if hit['extract_request']['http_uri'] == '/robots.txt':
|
||||
if hit['extract_request']['http_uri'].endswith('/robots.txt'):
|
||||
isRobot = True
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user