help setting up an easy client area

Tim Plumb has an Action that can protect individual pages very simply. Have a look on ActionsForge or on Tim’s site http://freewayactions.com

As far as locking an entire folder, I don’t believe anyone’s taken that one up.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

Have gone to Actions Forge and Tim’s site and all I see is the “PHP_Form_Action”. Is this the one you are referring to and if so is there documentation as to how this would be used to protect a page?

Thanks, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hmmm. Let me look.

I have a copy here of PHP Basic Authorisation, written in 2001 and
last touched in 2003. I’ll send it to you privately, and remind Tim to
post it at ActionsForge.

Walter

On Apr 18, 2009, at 4:24 PM, TeamSDA wrote:

Hi Walter,

Have gone to Actions Forge and Tim’s site and all I see is the
“PHP_Form_Action”. Is this the one you are referring to and if so is
there documentation as to how this would be used to protect a page?

Thanks, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

Thank you for forwarding the action. Have a couple of questions.

01 - The action has a file extension of “.act3” which is different from the other actions I am using in Freeway Pro 5.

02 - The setup in the actions panel seems pretty straight forward but I don’t see a place where I can customize the user logging prompt.

03 - After I upload the site and go to the page that has the action applied I get a safari type login prompt, enter the user name and password and the page reloads blank with the same login prompt. The top of the prompt reads

To view this page, you need to log in to area “Access Page-236284” on sutherlanddesignagency.com:80.

Any help is appreciated,

Thanks, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just noticed upon the second try the prompt changes to…

The name or password entered for area “Access Page-236284” on sutherlanddesignagency.com:80 was incorrect. Please try again.

Thanks, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

  1. Older Actions have this extension (this is what Freeway 3 used).
    You may change it to fwaction and nothing bad will happen. 2) The
    login prompt is a standard HTTP Basic Authentication dialog. It is
    drawn by the user’s browser, and if the user is set to a non-English
    operating system, translated for free. 3) You may be using the CGI
    form of PHP (fairly rare) as that hosting setup does not properly set
    the PHP_AUTH_USER global variable. That could lead to the re-login
    thing you see. I’d have to see this running on your server to diagnose
    it further.

Walter

On Apr 18, 2009, at 5:25 PM, TeamSDA wrote:

Hi Walter,

Thank you for forwarding the action. Have a couple of questions.

01 - The action has a file extension of “.act3” which is different
from the other actions I am using in Freeway Pro 5.

02 - The setup in the actions panel seems pretty straight forward
but I don’t see a place where I can customize the user logging prompt.

03 - After I upload the site and go to the page that has the action
applied I get a safari type login prompt, enter the user name and
password and the page reloads blank with the same login prompt. The
top of the prompt reads

To view this page, you need to log in to area “Access Page-236284”
on sutherlanddesignagency.com:80.

Any help is appreciated,

Thanks, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

We have uploaded a page using the “PHP-Basic Authorization” action as well as an error page. I have also contacted Softpress to try another direction. Would prefer your friends Action though as it is much more straight forward.

Also the error page does not load if an incorrect user name or password is put in, is this due to the issue in item 3 from my above thread?

I am eMailing the link to our server for your review as requested,

Thank You, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Basic Authentication does not work the way you seem to think it does.
It’s baked in to the HTTP protocols, not something you layer on top of
a site. Your server sends a header to the visitor’s browser telling
them they need to authenticate. The visitor’s browser displays a
native login and password dialog, the visitor fills that in. If the
authentication was successful, then the page is displayed. If not,
then your server displays a generic error page for the specific 401
(Unauthorized) error. If your hosting provider offers a way to edit
the server-generated error pages, then you can do that following their
instructions. On some servers, this can be as easy as making a page
and giving it the filename 401.html.

Walter

On Apr 20, 2009, at 1:49 PM, TeamSDA wrote:

Also the error page does not load if an incorrect user name or
password is put in, is this due to the issue in item 3 from my above
thread?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK This makes sense but if I am uploading the error page manually to our server what is the error page pull down menu for in the action. Also can you have a look at the other issue from our previous thread?

Previous issue
03 - After I upload the site and go to the page that has the action applied I get a safari type login prompt, enter the user name and password and the page reloads blank with the same login prompt. The top of the prompt reads

To view this page, you need to log in to area “Access Page-236284” on sutherlanddesignagency.com:80.

Thank You, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This doesn’t look like it’s part of Tim’s Action to me. That Action
just makes a 401 header happen and the browser does the rest. Is it
possible that you have another system working as well, maybe something
you uploaded once and tried and forgot was there?

The Error Page thing is nothing I ever tried using, I just tried it,
and realize that that part of the Action appears to be broken. Tim
hasn’t touched this thing since 2003, but if he gets a chance, I’m
sure he can fix it.

Walter

On Apr 20, 2009, at 2:18 PM, TeamSDA wrote:

To view this page, you need to log in to area “Access Page-236284”
on sutherlanddesignagency.com:80.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,

Thank you for letting Tim know about the bug as this would be a great action to have working, error message and all.

I have deleted the contents on the server several times and the authentication still does not seem to function. It just keeps bouncing back to the login screen with the message as listed above. I do have some other PHP scripts on other pages but those are totally separate and don’t link to this test PHP page. Have also tried this without uploading these other pages. Any ideas as to why this is not working?

Thanks, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not without being an admin on your server, no, I can’t help you there.

Walter

On Apr 20, 2009, at 2:53 PM, TeamSDA wrote:

test PHP page. Have also tried this without uploading these other
pages. Any ideas as to why this is not working?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks to Walter for pulling the PHP-Basic Authorization action out of
the archives and sending to TeamSDA. I wrote the action back in 2001
for a project I was doing at the time and although I kept it up to
date for the next couple of years it hasn’t been tested for a while now.
Looking at the code the action creates I can see that it should still
work although it is only going to protect a single page, rather than a
whole folder, at a time. To protect a directory I would suggest using
an .htaccess and .htpasswd file.
Different browsers interpret the incorrect details in different ways.
For example Safari will just keep asking for the username and password
until the user clicks cancel. On IE the error page (or message) is
displayed as expected.
I’ve not made the action publicly available until I have the chance to
fully test it as I’ve little time to firefight any issues that might
arise.
TeamSDA , if you want me to work with you to revise the action to suit
your needs then please feel free to get in touch.
Regards,
Tim.

On 20 Apr 2009, at 10:49, TeamSDA wrote:

Hi Walter,

We have uploaded a page using the “PHP-Basic Authorization” action
as well as an error page. I have also contacted Softpress to try
another direction. Would prefer your friends Action though as it is
much more straight forward.

Also the error page does not load if an incorrect user name or
password is put in, is this due to the issue in item 3 from my above
thread?

I am eMailing the link to our server for your review as requested,

Thank You, Team SDA

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you all for your input to us regarding this original thread authored by Joachim Levin. To better address our needs we have started new thread called “Secure Client Login Action” below is the link.

http://www.freewaytalk.net/thread/view/51733

Thank You, Team SDA


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options