override default homepage with apache
when you go to some public wireless access points, when you first open your browser, it overrides the home page or whatever other page is loading and shows you a login screen for the wireless provider. I'd like to figure out how to do something similar, but a little different.
I've had thoughts about starting an open source project for a lan party intranet. I've seen a few around the internet, but I know I can make something much better.
here's the best description of what I want to do. I'm hoping there is a simple way to set this up. when people come to a lan party, they set up their computer on a table. they're provided with power and an eithernet connection to the lan party's network. the computer is assigned an ip, dns, and gateway addresses with a dhcp server. when they open their browser, I want it to automatically bring up the lan party's intranet home page, instead of their custom homepage. how can I do this?
the only way I can think of, is some kind of proxy server. but I don't want to have every guest setting proxy host addresses manually. it has to be automatic. I was thinking, have the server keep a database of the first page that is ever opened from each ip address on the network, and have it assume this url is the guests homepage. whenever this same url is called upon any time in the future, the server would assume the guest is trying to access their homepage, and just redirect them to the intranet. sounds doable, but how do I hook in? I remember some proxy servers in windows having a transparent proxy feature, but I have no clue how to do that on linux. should it be done on the dns side? how could I determine the ip address being requested is for the guests home page and not a messaging service or a game server? does opendns.com maybe offer the kind of service I'm looking for?