[pre_analysis/robots] Don't checks for /robots.txt request, but endswith /robots.txt for robot detection
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user