last fix ?

This commit is contained in:
bunkerity 2020-12-02 14:47:08 +01:00
parent 2fe05d3fd3
commit 8f9dcc5ab8
No known key found for this signature in database
GPG Key ID: 654FFF51CEF7CC47
4 changed files with 2 additions and 8 deletions

View File

@ -0,0 +1 @@
map $http_referer $bad_referrer { hostnames; default no; }

View File

@ -0,0 +1 @@
map $http_user_agent $bad_user_agent { default no; }

View File

@ -1,9 +1,5 @@
#!/bin/sh
if [ ! -f "/etc/nginx/map-referrer.conf" ] ; then
echo "" > /etc/nginx/map-referrer.conf
fi
BLACKLIST="$(curl -s https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-referrers.list)"
DATA=""
IFS=$'\n'

View File

@ -1,9 +1,5 @@
#!/bin/sh
if [ ! -f "/etc/nginx/map-user-agent.conf" ] ; then
echo "" > /etc/nginx/map-user-agent.conf
fi
BLACKLIST="$(curl -s https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list)"
DATA=""
IFS=$'\n'