Add GET/POST checks before accepting request
This commit is contained in:
parent
1c3fc1c06d
commit
2ed7551049
6
iwla.py
6
iwla.py
|
@ -104,6 +104,9 @@ visits :
|
|||
requests =>
|
||||
[fields_from_format_log]
|
||||
extract_request =>
|
||||
http_method
|
||||
http_uri
|
||||
http_version
|
||||
extract_uri
|
||||
extract_parameters*
|
||||
extract_referer* =>
|
||||
|
@ -669,6 +672,9 @@ class IWLA(object):
|
|||
|
||||
if not self._decodeHTTPRequest(hit): return False
|
||||
|
||||
if hit['extract_request']['http_method'] not in ['GET', 'POST']:
|
||||
return False
|
||||
|
||||
for k in hit.keys():
|
||||
if hit[k] == '-' or hit[k] == '*':
|
||||
hit[k] = ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user