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 "google.com", 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.



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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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