I need a webpage with a background program that runs on top of a windows 2003 or better server that when someone lands on that page, their IP address is checked against a list of acceptable IPs (or range of IPs) and then a script (or some other mechanism) is run to log that person directly into a username/password based system (website). The IPs and IP ranges as well as the username and password should be stored in a database. Access is acceptable. Each record in the database would have an IP (or range) and a username/password associated with it.
Logging of each access would be a welcome feature.