fix referrers again
This commit is contained in:
parent
ed8bd902b1
commit
db04c0345c
@ -7,7 +7,7 @@ for ref in $BLACKLIST ; do
|
|||||||
DATA="${DATA}\"~${ref}\" yes;\n"
|
DATA="${DATA}\"~${ref}\" yes;\n"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "map \$http_referer \$bad_referrer { hostnames; default no; $DATA }" > /etc/nginx/map-referrer.conf
|
echo -e "map \$http_referer \$bad_referrer { hostnames; default no; $DATA }" > /etc/nginx/map-referrer.conf
|
||||||
cp /etc/nginx/map-referrer.conf /cache
|
cp /etc/nginx/map-referrer.conf /cache
|
||||||
|
|
||||||
if [ -f /tmp/nginx.pid ] ; then
|
if [ -f /tmp/nginx.pid ] ; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user