Welcome to WebmasterWorld Guest from 22.214.171.124
PC1 to PC3 is accessing internet passing through newbie server (also a webserver) which has an IP address of 192.168.10.100 ... now my problem is how to capture or redirect to 192.168.10.100 when user type www.google.com or any address using perl script..? anybody have an idea?
looking forward for the answer... and advance thanks.. :)
[edited by: phranque at 7:33 pm (utc) on May 18, 2009]
[edit reason] No urls, please. See TOS [webmasterworld.com] [/edit]
ok.. let me rephrase my question...
as illustrated in the given image link...
PC1, PC2 and PC3 are accessing the internet through "newbie server"... before the request of PC1 to PC3, it must be interrupted by perl script and perl script redirect the request to 192.168.10.100 (which is the "newbie server" IP address.)
PC1 browse to www.facebook.com --- before it reach out to facebook.com, "newbie server" halt the request.. instead PC1 will view facebook.com, he/she will view the "newbie server" web pages (192.168.10.100).
**note: "newbie server" is also a webserver