At 04:47 PM 12/29/2003, you wrote:
We are providing free dialup access to our internet service in Zimbabwe. We really and truly get nothing out of it, but we are trying to redirect their browser to start on our home page before they continue to browse so we can get some mileage. Often when I connect in a hotel using their service, my browser opens to the hotel�s home page or the service provider�s homepage then let�s me browse as normal. Anyone out there with any ideas?
You can do this fairly easily with squid.
1) Write a squid redirector that only redirects if the user's IP address is NOT in a hash table (you can do this in C with Berkeley DB pretty easily).
Whoops, just remembered that squid redirectors won't know the user's IP address (I was thinking of a different but similar program). You can do the same thing with iptables rules, though. Just add a default rule to redirect, and add/delete rules as I described already.
--Ernest
