Prohibit all IPs

Discussion in 'Installation/Configuration' started by Pyanepsion, Aug 19, 2019.

  1. Pyanepsion

    Pyanepsion Member

    I would like to ban any IP except mine which is e.g.
    So I wrote the snippet directive.
    # Test website
    location ^~ /restricted {
    allow; #Myself
    deny all;
    When I do tests, it does not work anymore. What should be done ?

Share This Page