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"
|
||||
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
|
||||
|
||||
if [ -f /tmp/nginx.pid ] ; then
|
||||
|
|
Loading…
Reference in New Issue