I have a website I am developing that is also going to be pulled into a web app. I have the following code in my .htaccess file to prevent access from ANYONE th
If you don't want to use mode_rewrite, with Apache 2.4 you can use something similar to this:
AuthType Basic
AuthName "Enter Login and Password to Enter"
AuthUserFile /home/content/html/.htpasswd
Require all granted
Require valid-user
Require ip 12.34.567.89