 |
 |
|
 |
 |
 |
Name: Cookie Password Protection
Type of script: PHP
Version: v1.0 and v2.8
Cost: Free ($25 for v2.8)
Download: Yes
Support: Yes
Demo: Yes
|
What's this
This script will help you password protect PHP pages. All you have to do is add one line of PHP code at the top of the pages you would like to protect.
In version 2.5 you can have multiple user groups, and you can give access to your pages to one or more user groups. Your users can also change their passwords and email address.
Cookie Password Protection also include File Protection 1.0 so you can protect your download files or images. File Protection is free if you buy Cookie Password Protection 2.6, but a limited version is included in Cookie Password Protection 1.1 so you can try it before you buy.
Features
| |
v1.1 |
v2.7 |
| File Protection |
limited version |
unlimited version |
| Protect unlimited # of pages |
yes |
yes |
| Unlimited # of users |
almost |
yes |
| Multiple users groups |
no |
yes |
| Accept PayPal payments |
no |
yes |
| Accept e-Gold payments |
no |
yes |
| Allow members to change email address and password |
no |
yes |
| Expire dates for passwords |
no |
yes |
| Join page |
no |
yes |
| Admin area |
no |
yes |
| Require MySQL |
no |
yes |
Online Demo
We have a demo available at http://www.sampleaddress.com/. Try user as login name and demo as password. The admin area can be found here.
Download the script
Click here to download version 1.1 or here to download version 2.7.
How to install
- Version 1.1:
- Open protection.php in your favourite text editor (I use WordPad).
- Change all user names and passwords to the ones you would like to use. If you need help adding more passwords, please read How to add more users.
- Edit login.php, logout.php and invalidlogin.php so that they look like the rest of your web site. Don't remove any <? ?> tags.
- Add this line at the top of the pages you would like to protect:
<? include("protection.php"); ?>
If you want to protect a directory or non-PHP files you should have a look at this example.
- Upload everything to your web site.
- WARNING: Don't link to the login.php file, always link to the file you want to protect! If you add a link directly to login.php the script may not work at all.
- If you need more help, visit our online support forum at www.xavierforum.com.
- Version 2.7:
- Open settings.php in your favourite text editor and edit it.
- Upload all files to your web server and point your browser to the location of setup.php
- Follow the instructions you get during the set-up
- Your password protection is now working! Include this tag at the top of all files you would like to protect:
<? include("protection.php"); ?>
REMEMBER: This must be the first line in the file, otherwise it will not work!
If you want to protect a directory or non-PHP files you should have a look at this example.
- Visit admin.php and click on "settings"
- File Protection
Please read the readme-file included in the ZIP file or click here.
How to add more users (version 1.1)
Just add "the new login name" => "new password", somewhere between ( ) in $user_passwords:
$user_passwords = array (
"user1" => "password1",
"user2" => "password2",
"user3" => "password3",
"the new login name" => "new password",
"user4" => "password4"
); |
How to add more users (version 2.0 or better)
Login at the admin area and click on "Add user". Enter the user information in the form and save it.
You can also use join.php to allow users to create an account without your help. If you're charging for a membership, it's recommended that you rename join.php to something else (for example join299_b.php).
|
 |