Welcome! Log In Create A New Profile

Advanced

Re: GeoIP

Sergey Bochkov
September 08, 2015 02:10AM
Используйте map
http://nginx.org/ru/docs/http/ngx_http_map_module.html

8 сентября 2015 г., 9:02 пользователь agz <nginx-forum@nginx.us> написал:

> Она в бинарном формате. Формат закрытый.
> Будет ли так работать:
>
> if ($remote_addr = 1.2.3.0/24) {
> set $allowed_country yes;
> }
>
> if ($allowed_country = no) {
> return 444;
> }
>
> nginx не ругается, но как проверить что работает?
> Можно ли указывать сеть как аргумент, вместо одного IP?
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?21,256777,261499#msg-261499
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

geoip

slyab February 19, 2015 12:30AM

Re: geoip

Anton Yuzhaninov February 19, 2015 06:02AM

Re: geoip

Andrey Kopeyko February 19, 2015 03:22PM

Re: geoip

Andrey Kopeyko February 19, 2015 05:20PM

Re: geoip

slyab February 19, 2015 09:52PM

Re: geoip

slyab February 20, 2015 12:30AM

Re: geoip

Andrey Kopeyko February 20, 2015 04:44AM

Re: geoip

slyab February 20, 2015 05:05AM

Re: geoip

Oleg Motienko February 25, 2015 04:00PM

Re: GeoIP

mva September 07, 2015 04:18PM

Re: GeoIP

Dmitry Ivanov September 08, 2015 01:10AM

Re: GeoIP

agz September 08, 2015 02:02AM

Re: GeoIP

Sergey Bochkov September 08, 2015 02:10AM

Re: GeoIP

agz September 08, 2015 02:22AM

Re: GeoIP

Ruslan Ermilov September 08, 2015 03:52AM

Re: GeoIP

agz September 08, 2015 04:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready