on my site - http://www.demetriad.com/ - I have a page called “Your Session” where my clients can see their pictures from session by entering the name of my server http://myphotosession.com/ (always the same) followed by an individual password after the forward slash. Is there a way to have the first part (http://myphotosession.com/) permanently as part of the box and have the client enter just the designated short password ? To Check enter as password: http://www.myphotosession.com/test/
This is what the Password Protected Page Action does. It’s literally
no security – it’s referred to derisively as “security through
obscurity” because the only thing keeping someone out is the name of
the folder. Usually you would make up a folder name like sdfsSDF3 or
something equally non-memorable. The way that this Action works is it
accepts any “password” that the visitor enters, and then attempts to
redirect their browser to a folder or page with that name. So when
they enter asdf8er5 in the password field, they get sent to http://example.com/asdf8er5
or http://example.com/asdf8er5.html (depending on how you have set
up the Action and built your site).
Walter
On Dec 26, 2010, at 8:05 AM, Dan Demetriad wrote:
on my site - http://www.demetriad.com/ - I have a page called “Your
Session” where my clients can see their pictures from session by
entering the name of my server http://myphotosession.com/ (always
the same) followed by an individual password after the forward
slash. Is there a way to have the first part (http://myphotosession.com/
) permanently as part of the box and have the client enter just the
designated short password ? To Check enter as password: http://www.myphotosession.com/test/
I forgot to mention that my site and my server are hosted by different companies. in other words my site <demetriad.com> hosted by iPower redirects the request to a different site<myphotosession.com>hosted by GoDaddy, that hosts strictly folders with my different sessions from different clients. Would that make a difference?? I will try when I go back to the studio.
You can’t use that Action to do anything except relative URL requests
– it uses the form page’s URL as the base for the result URL.
I would look around on HotScripts or another script repository and see
what you can find in a language that you know will work on iPower.
(Check in the control panel for iPower to see if they support PHP,
Ruby, PERL, etc. and pick something that looks user-friendly.
The most basic thing I can think of would be to have a PHP script like
this:
Paste that into the Before HTML section of your password page, make
sure that there is a field named ‘password’ on the page, and that the
form is set to POST to itself, and it should just work. Obviously
replace example.com with your own URL.
This relies on your destination server doing something useful with bad
URLs, like showing a nice 404 page that doesn’t make you look awful by
having the GoDaddy logo on it.
Walter
On Dec 26, 2010, at 12:09 PM, Dan Demetriad wrote:
Thanks Walter.
I forgot to mention that my site and my server are hosted by
different companies. in other words my site <demetriad.com> hosted
by iPower redirects the request to a different
site<myphotosession.com>hosted by GoDaddy, that hosts strictly
folders with my different sessions from different clients. Would
that make a difference?? I will try when I go back to the studio.