- Download a password-protect script from this site
http://www.zubrag.com/scripts/password-protect-advanced.php
- Load the password protect file to a place on your hosting server
- Follow their instructions to generate the correct line of code to include (add the ?help to the URL)
- *Note you can write your own php include tag, you just have to know the full path on your server to the script
Sample code:
Code: Select all
<?php include("/home/username/public_html/password_protect.php"); ?>
- add your user-defined tag
Code: Select all
{password_protect}
- turn off caching on your password-protected page
That was it for me. You can go in to the password-protect.php file and style it a bit if you like, and create your own user names/password combinations.
Maybe someone else will find this helpful. That same URL above has links to a forum for specific help with the script.