Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: блокировка по user-agent + Refer er
hg_04 Wrote:
-------------------------------------------------------
> > if ($http_user_agent ~ Macintosh) {
> if ($http_referer ~* "domain\.com|domain\.net")
> {
> return 503;
> }
> }
>
"if" directive is not allowed here
к сожалению не работает ругается на
строку
if ($http_referer ~* "domain\.com|domain\.net")
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,151425,151443#msg-151443
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|