Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a lan of maybe 20 - 30 computers, and a Windows server 2003 server on hand (I can also run any x86 Linux distro).

What I am trying to do, is to redirect users to a webserver inside the LAN the first time they visit certain domains. For example, the first time a user visits "", they will be redirected to (a webserver, where they will be shown a custom webpage), attempts after that will go to google.

Pretty much what I am trying to do, is to provide a captive server like service, showing people a custom webpage the first time they try to access certain websites (but not others). I'm pretty flexable on how this can be done, as long as it works.

Can you guys give me an idea on how to approach this problem? I am looking for (hopefully) a free solutions.


share|improve this question

One solution would be to use WPAD. This is essentially a proxy and you can implement rules whereby if the host matches then it reroutes. At the new server you can load a cookie or set a session variable showing that they've already been there and check for it again to see if you have to load the page or just forward them on.

And yes, it's free.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.