ansible-role-nginx/templates/bad_bots.conf.j2
2023-03-11 20:25:06 +01:00

9 lines
166 B
Django/Jinja

# Manages by Ansible
map $http_user_agent $bad_bots {
default 0;
{% for user_agent in bad_user_agents.stdout_lines %}
"~*{{ user_agent }}" 1;
{% endfor %}
}