Welcome! Log In Create A New Profile

Advanced

Re: блокировка по user-agent + Referer

November 17, 2010 11:09AM
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")
Subject Author Posted

блокировка по user-agent + Referer

che4 November 17, 2010 09:53AM

Re: блокировка по user-agent + Referer

hg_04 November 17, 2010 11:02AM

Re: блокировка по user-agent + Referer

hg_04 November 17, 2010 11:03AM

Re: блокировка по user-agent + Referer

che4 November 17, 2010 11:09AM

Re: блокировка по user-agent + Referer

Sergey Shepelev November 17, 2010 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready