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
Post a Comment