Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 192.168.1.2 (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.

Thanks

share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.