Sometimes when you are developing something and you don’t want anyone other than you to see it you need to restrict the access to it. You could just password protect it, which usually takes a few minutes to set up, but there is an alternative – you can just use the DENY setting in the htaccess files.
If you need to deny all access but permit only a certain IPs to the page: