Simple Page Authentication Extended

by bigbrain

Show:

bluemoonstudioForsays

Purchased

Hello,

I have built a demo site with your page protection.

I’ve been able to skin it to my needs and create a sign in page, main page with password form and two pages for password protection. The following is the site set up.

The first page is: http://www.bluemoonstudio2.org/dev/PageProtect/test_index.html

Then if you click on “clients” in the nav bar you will be directed to the client sign in page: http://www.bluemoonstudio2.org/dev/PageProtect/clientSignIn.php

Now, if I use the defult setting you set up in the code of user1 / pass1 the user will be directed to the password protected client page: http://www.bluemoonstudio2.org/dev/PageProtect/client_one.php

When the user clicks on the Sign out? they are taken to the sighout.php http://www.bluemoonstudio2.org/dev/PageProtect/signout.php

From there I can return to the index page at: http://www.bluemoonstudio2.org/dev/PageProtect/test_index.html

One big happy loop. Now my question is this. How do I set up the php code in the page so that client two can put in his password and be taken to the protected page for client two? I just don’t understand any of the code you have above the head of the page. And I cannot figure it out from your HowTo.html page under Example 3: multiple page authentication.

WHAT I WANT IS TO HAVE AN EXAMPLE THAT WILL SHOW ME HOW TO SET UP ONE PAGE (http://www.bluemoonstudio2.org/dev/PageProtect/clientSignIn.php) THAT WILL ALLOW MULTIPLE USERS TO GO TO EACH OF THEIR OWN PAGES USING THE SAME FORM . Client page one, client page two, etc.

Please, help. If this is beyond the scope of your widget I will pay for your assistance.

Thank you, David

Posted 8 months ago

bigbrainsays

Author

Like this:

<?php

securePage($grant_access); redirectUsers(“client-page1.php”,array(“user1”,”user4”)); redirectUsers(“client-page2.php”,array(“user2”,”user3”));

?>

Glad to help.

Posted 8 months ago

bigbrainsays

Author

How to implement page:

http://www.eparkhosting.com/protect/HowTo.html

No database required. A simple solution for a secure web page or for advanced page to page password protection.

Posted 8 months ago

mfoissetsays

Purchased

i just bought this … how can you secure links without it being back ended via direct link. I have a PDF I want to secure under member login. Is it possible?

Thanks in Advance!

Posted 7 months ago

bigbrainsays

Author

You can only secure PHP pages. You can secure the members PHP page, but would have to use .htaccess to secure the file:

For example, add the following to your .htaccess file

<files yourfile.pdf> order allow,deny

deny from all

</files>
Posted 7 months ago

bluemoonstudioForsays

Purchased

Hello,

When I sign out I am sent to the signout.php page. The signout page only shows text that you have signed out. How would I style that page and place some navigation so the page is not a dead end?

When I place the script in a styled php page all that shows up is the text that I am signed out.

Thanks

Posted 6 months ago

bluemoonstudioForsays

Purchased

Hello,

Sorry, never mind. I figured it out.

At this point my only question is how do you change the max file upload limit to 10 megs instead of the default of 3 ?

Please provide the excact pages and code lines.

Thank you very much.

Posted 6 months ago

bigbrainsays

Author

change the value of upload_max_filesize in php.ini

Not sure how this relates to the script though

or use:

ini_set(‘max_upload_filesize’, 9000000);

if your server allows

Posted 6 months ago

bluemoonstudioForsays

Purchased

Hi,

Thanks for your fast response!

I don’t know what that file is. I am not failure with this file type .ini

I do all my work on a mac and maybe this is a p.c. thing?

Anyway, could you provide a little more info regarding this file? I don’t see it anywhere in the project folder.

Thank you,

Posted 6 months ago

bigbrainsays

Author

Sorry, can you please give me more info. Send me a private message via email. I am not sure how you could be having upload issues regarding the script because it does not have any upload function as part of the script.

Posted 6 months ago

thoseguys26says

Hi, just read over the posts above..

So with this i can password protect pages easily and as you mentioned with the .htaccess file:

order allow,deny deny from all

so this would basically limit access to only the individuals that possessed the .php page’s login info?

Thanks

Posted 6 months ago
Author

Default-user bigbrainreplied

Nope, the deny would deny all access. You would need to do something like the below or code it in the script. This is beyond the scope of the script. The script works great to password protect content/info on the PHP page and not specific files via a hyperlink. The below code would deny access to a file except from HTTP requests coming from the page you list that could be password protected. This is a quick solution but not a very secure method and is not recommended.

SetEnvIfNoCase Referer “^http://www.yoursitesname.com/protected-page.php” locally_linked=1

Order Allow,Deny

Allow from env=locally_linked
Posted 5 months ago

glenn9370says

Purchased

Hello,

I have built a demo site with your page protection.

I’ve been able to style and create a sign in page but it does not seem to work properly.

I am not sure how to direct to the main secure page. I also need to authenticate separate pages for separate users.

I really don’t understand your ‘how to’ instructions. I feel they are very vague!

My demo page can be found here:

http://glennnorwood.co.uk/norwood_photography_2009/client.php

When you first visit the html does not display. When you input username and password [jim] & [password1] it displays the page as it should, when you input user and pass again I get error messages.

I am very confused. Please help!

Thanks

Posted 2 months ago

d4websays

Is it possible to redirect users to different pages?

For Example: User1 redirects to level1.php User2 redirects to level2.php User3 redirects to level3.php

Posted 1 month ago

d4websays

Purchased

I got the last item figured out.

There is a bug with the redirect though. If I get redirected and then “Go Back” it takes be to the “Members Only” Content. It should redirect back to the redirect page.

Another scenario is when a user navigates away from the redirected page and then goes back to the login page. It takes the user again to the “Members Only” content and the user is not redirected to the redirect page.

Help. Can this be fixed please?

Posted 1 month ago

d4websays

Purchased

Hello? Are you providing support for this anymore or are my messages and emails dust in the wind?

Posted 1 month ago
Author

Default-user bigbrainreplied

I sent you an email with code

Posted 1 month ago
Purchased

d4web d4webreplied

The code you sent is identical to that file which is included in the package… It did not work.

Posted 1 month ago

FlyingRhinosays

Purchased

Hi there I bought this script it’s awesome by the way.

One question I had is I currently have it working but the only thing is I styled the home.php exactly how I want once they are logged in and someone go back to the index.php it displays the index.php page which says “WELCOME You have signed in. Sign Out?” and doesn’t redirect back to the home.php

Is there a way to adjust this so I don’t have to update 2 pages index.php and home.php with my content?

Here is the sample page: http://flyingrhinocmg.com/jokerslive/example/

Your passwords are the same as you had in the script I haven’t changed them.

Thank you so much.

Posted 2 days ago
Author

Default-user bigbrainreplied

Nice work.

Do this: open “secure.php” file

Comment out or remove lines 34 and 35

if(isset($_POST['signin']))
{

and line 60

}

Posted 9 hours ago

$8

Prepaid customers
pay just $6 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Click Here to Deposit Price

You must sign in or sign up to purchase this item.

12345 ( 15 ratings )

Purchase 66 purchases

no-thumbnail

bigbrain

Sold between 100 and 1 000 dollars Bought between 1 and 9 items
File Types Included
PHP
Item Attributes
Created 6 July 09
PHP Version 5.x
MySQL Version N/A
Compatible Browsers FireFox 2, FireFox 3, IE7
PHP Files Included PHP
PHP Framework N/A
Collections that include this item