IP Restrictions with Nginx for GET arguments -


i want restrict access urls in nginx "/start?do=login" ip. match argument "do=login". "start" itselfe ok. how this?

solved!

at first had "location /start" , worked "start" there can ohter texts "start". 1 each page. works pages:

error_page 418 = @do_login; location / {     recursive_error_pages on;     if ($arg_do = login) {         return 418;     }     index doku.php;     try_files $uri $uri/ @dokuwiki; }  location @do_login {     allow x.x.x.x/29;     deny all;     index doku.php;     try_files $uri $uri/ @dokuwiki; } 

thanks hints!


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -