Basic protection for different IPs

Ian Hobson hobson42 at gmail.com
Thu Oct 8 10:22:36 UTC 2015


Hi All,

I want to keep casual visitors out of a test website, yet enable the 
developers who come in via ssh to use it without entering a password,
and allow invited people to come in using a password.

In other words, how can I set up basic protection on my test website 
when responding to the main IP of my server, and have no password prompt 
when responding on localhost?

I tried using if (hostname = 'example.com') in spite of if-is-evil, and 
could not get it to work.

Regards

Ian



More information about the nginx mailing list