|*if allow_blank_referer!="yes"|
|?ALLOWED_LIST=`ALLOWED_HOTLINK_DOMAINS`|
|*else|
|?ALLOWED_LIST= none`ALLOWED_HOTLINK_DOMAINS`|
|*endif|
	location ~ \.(|FILES|)$ {
		valid_referers|ALLOWED_LIST|;
		if ($invalid_referer) {
|*if redirect="forbidden"|
			return 403;
|*else|
			rewrite (.*)\.(|FILES|)$ |redirect|;
|*endif|
		}
	}
