Add bad bot block list

This commit is contained in:
phil 2023-03-11 20:20:42 +01:00
parent 0d87bf0d97
commit 5fdb1a9f7b
4 changed files with 24 additions and 0 deletions

View file

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