This should be really easy for you.
I currently have a neat little script called Password Nazi. It works pretty good. Basically, it reads the server access logs. It looks at the usernames that log into a password protected directory and if the same username is associated with different IP addresses, it can remove that username from the passwords file.
The problem is that it runs based on schedule cron tasks analyzing the server log files.
I want a similar scipt made for me.
Here's how it should work...
When a visitor visits the password-protected page,
the script should be called instantly via an SSI
include or an image tag. It should keep a running
total of the logins and their IP addresses and
record it in a [url removed, login to view] file within the same
directory the scipt is in.
There should be a simple admin area where I can
go and see a simple table that says the following.
Logins Within The Last 24 Hours
The script should ask for the following variables:
* Path to Password File
* Path To Sendmail
* Path To Suspended File
* How many different ips to allow?
* ... within how many hours?
* Admin email address
For instance, if specify in the scipt that
10 different IP within 24 hours, then anyone
who logs into the member's area through 10
different IP addresses withing the last 24 hours
should have his account suspended.
I want the script to remove the username and
password from the password file and move it
to a file called [url removed, login to view] or something.
The Admin area should have a little section
underneath where it lists those in the suspended
It should have two boxes next to that username.
One to 'rejoin' and the other to 'delete'.
If I choose rejoin, then the username and
password should get moved back into the
passwords file. If I choose delete, then
that username and password should be deleted from
the [url removed, login to view] file.
Also, if anyone is suspended for suspected abuse
of their password, the script should instantly email
me to alert me.
I know I'm very detailed in what I want, but I also
know that this is a very simple script that will take
a skilled programmer less than 30 minutes to write.
So go ahead, place your bid...