There is a simple way to password protect a website directory using
htpasswd files. More here: https://css-tricks.com/easily-password-protect-a-website-or-subdirectory/
But when it asks the user for a password it does so using a popup dialogue box at the browser level, see below:
Is is possible to communicate w the server via PHP so as to embed this interaction (i.e. requesting a username and password that works using the aforementioned technique) directly into a web page? If so, how would one go about this?