Click to See Complete Forum and Search --> : URL containing the username and password


photogrfx
01-12-2007, 09:19 PM
Hi;

I have a website with a bunch of password protected webpages.

I would like to email a link to several of these webpages with the URL containing the username and password.

Something like this: (spaces inserted)

http ://www.photogrfx.net /Albums/TGM/ TGM2222.html ?user=jimmyjohn&pass=37hh765
or
http ://www.photogrfx.net /Albums/TGM/ XGM3333.html ?ui=ralph&password=s112924

I've seen this done before, but I can't seem to find the right syntax.

Can someone point me in the right direction?

Thanks,

Joe

Annaccond
01-12-2007, 10:25 PM
It's protection of access to apache server, you can find more info here:
http://httpd.apache.org/docs/1.3/howto/auth.html

grumpyoldtechs
01-14-2007, 05:12 AM
you could use a Serverside language: PHP, ASP.NET etc...

photogrfx
01-14-2007, 04:28 PM
Thanks to Annaccond and grumpyoldtechs;

I am quite familiar with httpd and .htaccess, but my solution doesn't reside in Apache docs.

What I have been investigating and grumpyoldtechs has suggested is going with a pre-authentication script.

What I'm trying to do is clone something like google adds that instead of directing a visitor to a specific web site but instead a specific webpage, and only that specific web page.

I found a nifty little javascript which may show some promise, and a php script which authenticates based on certain code strings contained in the (visitor) link and compared in the (host) login script, which then re-directs the request to the associated web page.