Welcome! Log In Create A New Profile

Advanced

Re: nginx+xbt tracker

December 11, 2010 05:10AM
On Sat, Dec 11, 2010 at 04:52:03AM -0500, agz wrote:

> Gmail, это он оказывается только в
> xbt_announce_log пишет 127.0.0.1.
> В память и в xbt_files_users пишет правильно.
>
> Кстати, вот тут вопрос у меня возник,
> подскажите pls!
>
> Блокируем запрещенные user-agent'ы:
> if ($http_user_agent ~
> (uTorrent\/2040\(21515\)|ABC\/ABC-3.1.0|BitTorrent\/3.4.2|uTorrent\/1500|Opera))
> {
> return 403 'Banned client. Please upgrade.';
> }
>
> Некоторые с пробелом... Например "Azureus
> 2.5.0.0". Так и писать с пробелом?

Нужно всё заключить в кавычки:

if ($http_user_agent ~ "...") {

Слэш экранировать не нужно, то есть, вместо "uTorrent\/1500" можно
писать "uTorrent/1500".


--
Игорь Сысоев
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx+xbt tracker

agz December 03, 2010 09:06AM

Re: nginx+xbt tracker

Roman Sokolov December 03, 2010 11:04AM

Re: nginx+xbt tracker

Oleg Motienko December 03, 2010 02:46PM

Re: nginx+xbt tracker

agz December 03, 2010 05:16PM

Re: nginx+xbt tracker

xpahos@gmail.com December 03, 2010 05:34PM

Re: nginx+xbt tracker

agz December 05, 2010 01:29PM

Re: nginx+xbt tracker

agz December 08, 2010 02:40PM

Re: nginx+xbt tracker

Sergey Shepelev December 08, 2010 03:04PM

Re: nginx+xbt tracker

agz December 08, 2010 03:08PM

Re: nginx+xbt tracker

agz December 08, 2010 03:54PM

Re: nginx+xbt tracker

agz December 08, 2010 04:47PM

Re: nginx+xbt tracker

Sergey Shepelev December 08, 2010 03:24PM

Re: nginx+xbt tracker

Vladimir Sopot December 08, 2010 03:38PM

Re: nginx+xbt tracker

Igor Sysoev December 08, 2010 04:08PM

Re: nginx+xbt tracker

Igor Sysoev December 08, 2010 04:10PM

Re: nginx+xbt tracker

Gmail December 10, 2010 03:34AM

Re: nginx+xbt tracker

agz December 11, 2010 04:52AM

Re: nginx+xbt tracker

Igor Sysoev December 11, 2010 05:10AM

Re: nginx+xbt tracker

Igor Sysoev December 11, 2010 05:14AM

Re: nginx+xbt tracker

agz December 11, 2010 05:56AM

Re: nginx+xbt tracker

agz December 11, 2010 06:05AM

Re: nginx+xbt tracker

agz December 11, 2010 06:25AM

Re: nginx+xbt tracker

Igor Sysoev December 11, 2010 06:00AM

Re: nginx+xbt tracker

Igor Sysoev December 11, 2010 06:16AM

Re: nginx+xbt tracker

agz December 12, 2010 10:18AM

Re: nginx+xbt tracker

agz December 13, 2010 02:23PM

Re: nginx+xbt tracker

Igor Sysoev December 13, 2010 02:30PM

Re: nginx+xbt tracker

agz December 13, 2010 02:41PM

Re: nginx+xbt tracker

Igor Sysoev December 13, 2010 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
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