How do you temporarily redirect a user’s home page?

Posted on 2004-10-26
Last Modified: 2010-08-05

How do you force a user’s web browser to go to a page of your choice rather than his default home page for first time logins or periodic payment collection?

You know how at hotels & starbucks (wireless hotspots) etc. the first time you access - or once every 24 hours your browser is automatically directed to the providers login page for payment or authentication???

Question by:kmccain

    Expert Comment

    Generally i would say this is done by proxy based software. Not just a few tweaks. Most likely it is a proxy setup to only allow a new user access once the user has logged into the proxy. The log file from the proxy would then be used to work out he billing. Other systems i have seen have this part more automated.
    LVL 1

    Accepted Solution

    There are several ways to do this, and it depends on a couple of factors as to how you need to do it.  This is how the ISP I worked at did it.

    The ideal way would be that you know who has what IP address or be able to set DHCP settings by username and then when ever you wanted to redirect them, set their DHCP settings to use a DNS server where all addresses pointed to a webserver with only the payment or whatever screen on it.  
    So if they go to the DNS server tells em the ip is (or whatever the web server's ip address is).  Then once they've seen the page and done whatever you needed them to, then a flag is set to change thier DNS server back to the regular server, letting them surf like normal.  

    This is a pretty basic explaination and isn't exactly a step-by-step how to, but it's hard to tell you exactly what do cus it depends and what info you have and what you can change.   But there is a simple answer of how to do it without proxy software so say for example it is a starbucks, etc type setup users dont have to install anything to work with your network and payment design.
    LVL 1

    Author Comment

    Thanks to heyiou for reminding me about DHCP (Doh!)

     here's a howto -

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Course: Foundations of Front-End Development

    Jump-start a lucrative career in front-end web development, with zero previous coding experience required. This course covers the basic programming concepts and languages required for creating engaging websites from scratch.

    Some time ago I was asked to set up a web portal PC to put at our entrance. When customers arrive, they could see a webpage 'promoting' our company. So I tried to set up a windows 7 PC as a kiosk PC.......... I will spare you all the annoyances I…
    Let’s list some of the technologies that enable smooth teleworking. 
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now