mirror of https://gitlab.com/bashrc2/epicyon
Reject no user agent
parent
1e5e38d8a8
commit
09fad61a53
|
@ -110,7 +110,7 @@ def blocked_user_agent(calling_domain: str, agent_str: str,
|
||||||
"""Should a GET or POST be blocked based upon its user agent?
|
"""Should a GET or POST be blocked based upon its user agent?
|
||||||
"""
|
"""
|
||||||
if not agent_str:
|
if not agent_str:
|
||||||
return False, blocked_cache_last_updated
|
return True, blocked_cache_last_updated
|
||||||
|
|
||||||
agent_str_lower = agent_str.lower()
|
agent_str_lower = agent_str.lower()
|
||||||
for ua_block in default_user_agent_blocks:
|
for ua_block in default_user_agent_blocks:
|
||||||
|
|
Loading…
Reference in New Issue