How To Block Access To Nginx Except For A Specific Ip Address
It would have been more secure to setup nginx HTTP Auth instead, and prompt for a username and password, and that would have also allowed me to more easily use my mobile devices to access the site. But if you’ve ever used HTTP auth you know that it’s extremely annoying, especially on mobile, to have to enter your credentials all the time. So instead, I used a simple IP address allow rule for my office IP, and blocked everything else....