DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> General Discussion >> Password protection for website pages!
Pages:  
Showing posts 1 - 14 of 14, (reverse)
AuthorThread
07/15/2006 11:18:43 PM · #1
I would like to setup pages on my website for customers to view online their photos but can not work out how to setup a password protection for those pages. Does anyone know of any preset code that I can use or something to do this? I only use Frontpage for my website so it's very limited to what it can do (though you can import straight HTML). I want to be able to show a list of the clients names and then they click on their name and a password box appear for them to enter it before going into the page.

If anyone could help out it'd be appreciated! Thanks!
07/15/2006 11:39:23 PM · #2
You have two options. Either contact whoever is hosting your website and tell them what you are trying to do so they can set up permissions on the server or else create a database of usernames/passwords and call it yourself from within your code. Based on your question I'm assuming you aren't running your own server and perhaps lacking the know how to roll your own authentication database, so it would be best to call your hosting service and see if they will play ball.

Best of luck
07/15/2006 11:43:19 PM · #3
Search through some of the scripts here... Most are free.
07/16/2006 12:55:25 AM · #4
Thanks guys! It's very confusing but I'll work through it! Cheers!
07/16/2006 03:10:38 AM · #5
Some of it depends on how much control you have over your web space, and what sort of server it is. The "best" security comes through .htaccess files. There's any number of simple tutorials that will explain if and how you can use these, just google for .htaccess tutorial or similar.

Message edited by author 2006-07-16 03:11:01.
07/16/2006 05:06:19 AM · #6
Do not use Java scripts or PHP/ASP codes for password protection. Most of these just work on the surface and any person who knows what he's doing can still gain access to your files. The best way is to find out if your hosting provider allows protected pages/folders. That way you can just set up a folder, password protect it, and use a different folder for each client.
07/16/2006 05:27:12 AM · #7
Thanks ignite. I did try an ASP based script but it appears that my server is Linux based I think and it would only run on a windows based server. Sounds like it's better if I just get in touch with my service provider tomorrow and see what they can do.
07/16/2006 05:30:46 AM · #8
who is hosting your site?

if you have a thing called Cpanel, you can easily a set up a password through there. that is what I do.
07/16/2006 08:40:47 AM · #9
Here is a script I use on my site. Copy everything below this text and above my sig and enter it into your html code. This will prevent anyone from saving your images. You can see my site and try it at //www.mprproductions.com:



07/16/2006 08:50:32 AM · #10
Originally posted by MPRPRO:

Here is a script I use on my site. Copy everything below this text and above my sig and enter it into your html code. This will prevent anyone from saving your images. You can see my site and try it at //www.mprproductions.com:


Unfortunately, no script can prevent people from copying images from a website. If you can see it, you can copy it. The only way is to watermark the images, otherwise these scripts are useless.
07/16/2006 09:12:27 AM · #11
Originally posted by MPRPRO:

Here is a script I use on my site. Copy everything below this text and above my sig and enter it into your html code. This will prevent anyone from saving your images. You can see my site and try it at //www.mprproductions.com:


Granted it's a handy script, but it doesn't prevent image theft....

I hope you don't mind...
07/16/2006 09:31:31 AM · #12
Please please please don't use "disable right click" scripts. They are annoying to the point of, well, extreme annoyance.

They don't prevent images being downloaded - various browsers ignore scripts that override the right mouse button, and with the ones that don't you can still screengrab, or copy from cache - but they do reduce the end user's ability to control their own web browser on their computer.

The net result is annoyed casual browsers - anyone who is serious about stealing content from a webpage would still do so.
07/16/2006 09:31:56 AM · #13
htaccess creation page
this will give you plenty of examples till you get the hang of it ..
don't forget to include yourself for access ;)
07/16/2006 10:02:55 AM · #14
Originally posted by mist:

Please please please don't use "disable right click" scripts. They are annoying to the point of, well, extreme annoyance.

They don't prevent images being downloaded - various browsers ignore scripts that override the right mouse button, and with the ones that don't you can still screengrab, or copy from cache - but they do reduce the end user's ability to control their own web browser on their computer.

The net result is annoyed casual browsers - anyone who is serious about stealing content from a webpage would still do so.


Yeah, that was my point (note the above "stolen" image from a right click "disabled" page). Anyone who knows anything about images and/or coding will be able to snatch the images.

I'm going to be setting up online galleries for clients to view their images and will be doing it as follows.

Ultimately the htaccess is the most secure way to go about it, but if you want extra protection, try this.

Set up a folder in the root of your site that is password protected (see htaccess reference) and give it a unique name. The unique name will decrease the liklihood of someone "stumbling" onto the pages. Put an index.(htm/html/php/whatever) in the root of the new folder. Anyone who does "stumble on" the page will need to provide a username and password to access it. You can keep it relatively simple and intuitive for your clients.

Suggestions for folder name (lastname_monthofshoot_dateofshoot). If you have an index.whatever within this folder, clients will be automatically directed to that page by typing in the URL. This all sounds kind of confusing, but check out this example to see if it makes more sense.

Client Name: Brown
Date of Shoot: 7/27/2006

My main url: www.dowsedesigns.com

Create htaccess protected folder in root of my site named: brown_07_27

This folder has file named index.php that serves as navigation for their folder.

Client types in //www.dowsedesigns.com/brown_07_27

This takes them to a windows login prompt (username and password).

Once they validate username and password, they are directed to their "page" to view their photos.

There are ways to set it up where you can make most of your gallery creation automated so that you can just plug and chug for each client, but that's a little bit more than I care to get into at this point. I hope this helps!

Disclaimer: This example is not a functioning example. I have not yet completed my site so I do not have this feature set up yet. It's a direction I'm moving towards and hope to have completed within the next few weeks

Message edited by author 2006-07-16 10:06:22.
Pages:  
Current Server Time: 09/23/2025 07:01:43 PM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 09/23/2025 07:01:43 PM EDT.