If you need to lock down a number of web server pages, you can use this file to check for an authenticated user on any php page. This doesn't use the user/pass combination - only a single static passcode for simplicity. So this is by no means a production level solution.

Just make sure you replace "PUT_YOUR_PASSWORD_HERE" with the password that you want your user's to enter. You will then need to create a page called "access_screen.php" which is where any non logged-in users can authenticate with the password you specified.