Name: Cookie Password Protection
Type of script: PHP
Version: v1.0 and v2.9
Cost: Free ($25 for v2.9)
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.
|File Protection||limited version||unlimited version|
|Protect unlimited # of pages||yes||yes|
|Unlimited # of users||almost||yes|
|Multiple users groups||no||yes|
|Multiple membership types||no||yes|
|Diffrent lenght for diffrent membership types||no||yes|
|Log all logins and downloads||no||yes|
|Export log files to Excel||no||yes|
|Export users to Excel||no||yes|
|Up to 6 extra user fields||no||yes|
|Accept PayPal payments||no||yes|
|Accept payments in USD, EUR and more...||no||yes|
|Allow members to change email address and password||no||yes|
|Expire dates for passwords||no||yes|
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.8.
How to install
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).