last fix ?
This commit is contained in:
parent
2fe05d3fd3
commit
8f9dcc5ab8
1
confs/global/map-referrer.conf
Normal file
1
confs/global/map-referrer.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
map $http_referer $bad_referrer { hostnames; default no; }
|
||||||
1
confs/global/map-user-agent.conf
Normal file
1
confs/global/map-user-agent.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
map $http_user_agent $bad_user_agent { default no; }
|
||||||
@ -1,9 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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)"
|
BLACKLIST="$(curl -s https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-referrers.list)"
|
||||||
DATA=""
|
DATA=""
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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)"
|
BLACKLIST="$(curl -s https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list)"
|
||||||
DATA=""
|
DATA=""
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user