Cliff's Password Protector Script Version 1.01

If you run a site that requires membership, it's really only a matter of time before someone gives out their username and password. So, you can either spend hours a day checking Usenet and password sites, or you can just install my script.

How it works
For this example we will assume that someone has logged onto your site with the username shavenferret and the IP address 123.45.67.89.
Step 1:
The script is called by a server side include somewhere in a page that everyone who logs onto your site will see. If you have many "main pages", that's okay, you can call the script with each one without screwing anything up.
Step 2:
The script gets the username (shavenferret) and the IP (123.45.67.89).
Step 3:
The script chops off .67.89 (the last two parts of the IP address). This is done because the last part of many people's IP address changes every time they get on the internet.
Step 4:
The script opens a text file containing the first 2 parts of every IP shavenferret has ever used. It checks if shavenferret has ever used 123.45.***.***.
Step 5:
shavenferret has used 123.45.***.*** before.
shavenferret has not used 123.45.***.*** before
The script will optionally displays a small warning letting the user know that if he or she "shares" her account, it will be deleted. It then exits. The script counts the number of IP addresses that shavenferret has used.
Step 6:
shavenferret has used less than the specified number of IP addresses.
shavenferret has used more than the specified number of IP addresses.
The script will optionally displays a small warning letting the user know that if he or she "shares" her account, it will be deleted. Because the account is being used by a large number of people on the internet, the script assumes that the username\password are floating around somewhere. It e-mails you the username, and can be set to automatically delete the account. It then tells the user what is happening, and exits.

Some sites record the user information in a text file as well as the .htpasswd file. If your site does that, and you want the script to remove the user from the text file as well as the .htpasswd file, I can modify the script for free. If you want this, e-mail me after you have purchased the script.

Get the script

The cost of the script is $49.95. Upgrades will be mailed to you free.
Credit Cards

Secure Credit Card Transactions are provided by Internet Billing Company, Ltd.
ibill is our authorized sales agent
Cash (10% discount)
Your e-mail:
URL where you plan to use the script:

Back to Cliff's Perl Script Collection


00964