That is exactly what I was looking for. In fact, your suggestion about posting it as a potential add-on is a great one.
There is another good reason for such an add-on capability.
I see the hacker-bots attempting to brute force attack various PHP scripts all the time (coming from spoofed IPs)...