iwla

iwla Commit Details

Date:2020-04-09 09:33:59 (3 months 25 days ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:55983df1bc4424b3ec120f4c9669296d00334637
Parents: bb268114b2123210e70221e8e7a4198bf5e285fd
Message:Add IP exclusion feature

Changes:
Miwla.py (2 diffs)

File differences

iwla.py
150150
151151
152152
153
154
155
153156
154157
155158
......
316319
317320
318321
322
323
324
325
319326
320327
321328
self.uri_re = re.compile(r'(?P<extract_uri>[^\?#]+)(\?(?P<extract_parameters>[^#]+))?(#.*)?')
self.domain_name_re = re.compile(r'.*%s' % conf.domain_name)
self.final_slashes_re = re.compile(r'/+$')
self.excluded_ip = []
for ip in conf.excluded_ip:
self.excluded_ip += [re.compile(ip)]
self.plugins = [(conf.PRE_HOOK_DIRECTORY , conf.pre_analysis_hooks),
(conf.POST_HOOK_DIRECTORY , conf.post_analysis_hooks),
(conf.DISPLAY_HOOK_DIRECTORY , conf.display_hooks)]
if not remote_addr: return
for ip in self.excluded_ip:
if ip.match(remote_addr):
return
if not remote_addr in self.current_analysis['visits'].keys():
self._createVisitor(hit)

Archive Download the corresponding diff file

Branches

Tags