Over the past several months, I’ve received a number of requests for a password protected gallery for Lightroom. It would be easy enough to construct a password protected variant of one of my existing galleries. I could, for example, add password protection to my TTG Slimbox Gallery. But then, what if someone wanted to password protect a SimpleViewer gallery instead? Or an AutoViewer gallery? A Polaroid gallery?
Having no desire to contend with such questions or the inevitable requests for just one more password protected gallery, I’ve sought out and come up with a universal solution: a PHP script that allows users to password protect any gallery or webpage they want.
Simply titled, Password Protect, from Zubrag.com, is a PHP script that does just what its name would imply. It’s easy to install and setup, and it works with any gallery or webpage you’d like to use it on.
To log into the demo, use the login and password “melody” and “taru”, respectively.
All that’s required to get this running is a web server equipped with PHP (most of them are, these days). Note: the script will not run from your desktop; it will run only from a web server.
Setup is simple. Begin with an exported gallery from Lightroom.
Copy the password_protect.php file into the exported gallery folder.
Open the password_protect.php file in a text editor and create one or more username and password combinations. The instructions are at the top of the file, so it should be self-explanatory.
Save the file and upload the gallery to your website.
Point your browser to your gallery address, appended with password_protect.php?help. Example:
http://theturninggate.net/galleries/PasswordProtect/password_protect.php?help
You will be provided with a line of PHP code. Copy and insert the code into the first line of every page you would like to protect. In the case of a Lightroom gallery, you should open the index.html file and insert the code on the first line. Save the file, and rename the file to have a .php extension (i.e. index.html should be renamed index.php).
There are, of course, alternative solutions. Scripts abound on the Internet. I chose this script in particular for its simplicity, flexibility and freeness.
Send this article to a friend »
« Next Article | ... ... | Previous Article »
|