mirror of https://gitlab.com/bashrc2/epicyon
Comment
parent
73be47e80f
commit
885a2b82c9
|
@ -73,7 +73,8 @@ def blocked_user_agent(calling_domain: str, agent_str: str,
|
||||||
agent_domain = None
|
agent_domain = None
|
||||||
|
|
||||||
if agent_str:
|
if agent_str:
|
||||||
# is this a web crawler? If so the block it
|
# is this a web crawler? If so then block it by default
|
||||||
|
# unless this is a news instance or if it is in the allowed list
|
||||||
if 'bot/' in agent_str_lower or 'bot-' in agent_str_lower:
|
if 'bot/' in agent_str_lower or 'bot-' in agent_str_lower:
|
||||||
# if this is a news instance then we want it
|
# if this is a news instance then we want it
|
||||||
# to be indexed by search engines
|
# to be indexed by search engines
|
||||||
|
|
Loading…
Reference in New Issue