Don't launch robot analysis rules for feed parsers
This commit is contained in:
parent
f8b37a625c
commit
975cc66bd5
|
@ -64,6 +64,7 @@ class IWLAPreAnalysisRobots(IPlugin):
|
||||||
self.robot_re = re.compile(r'.*bot.*', re.IGNORECASE)
|
self.robot_re = re.compile(r'.*bot.*', re.IGNORECASE)
|
||||||
self.crawl_re = re.compile(r'.*crawl.*', re.IGNORECASE)
|
self.crawl_re = re.compile(r'.*crawl.*', re.IGNORECASE)
|
||||||
self.logger = logging.getLogger(self.__class__.__name__)
|
self.logger = logging.getLogger(self.__class__.__name__)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _setRobot(self, k, super_hit):
|
def _setRobot(self, k, super_hit):
|
||||||
|
@ -83,6 +84,10 @@ class IWLAPreAnalysisRobots(IPlugin):
|
||||||
self.logger.debug('%s is a robot' % (k))
|
self.logger.debug('%s is a robot' % (k))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if super_hit.get('feed_parser', False):
|
||||||
|
self.logger.debug('%s is feed parser' % (k))
|
||||||
|
continue
|
||||||
|
|
||||||
isRobot = False
|
isRobot = False
|
||||||
referers = 0
|
referers = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user