[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']:
|
for hit in super_hit['requests']:
|
||||||
# 3) /robots.txt read
|
# 3) /robots.txt read
|
||||||
if hit['extract_request']['http_uri'] == '/robots.txt':
|
if hit['extract_request']['http_uri'].endswith('/robots.txt'):
|
||||||
isRobot = True
|
isRobot = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user