Add bad bot block list
This commit is contained in:
parent
0d87bf0d97
commit
5fdb1a9f7b
4 changed files with 24 additions and 0 deletions
8
templates/bad_bots.conf.j2
Normal file
8
templates/bad_bots.conf.j2
Normal 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 %}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue