How to hiddenly show another page in IE?

For everything that's not in any way related to PureBasic. General chat etc...
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

How to hiddenly show another page in IE?

Post by thamarok »

Hello!

I want to make a surprise for my friend, because he has birthday on 28th of September (it's about after 2 weeks!)

I know that he visits everyday the IGN Reviews page (http://www.ign.com/index/reviews.html) and now, I want to have a program that runs hiddenly and everytime when he visits the IGN Reviews page, IE shows the page that I designed for him instead of the IGN Reviews page. But, the transfer to my page (which will be located on his hardrive) should be transparent, so that the IE address bar won't change.

I have bought him Steinberg Cubase SX, because he has wished it for months. And my page is just a simple HTML page with a link to the Steinberg Cubase folder.

When his birthday comes, I'll call my friends to come over to his house and I'll say them that they should go out to play football or whatever.. In the meantime, I'll install my program and I'll locate the HTML pages to a place where he won't find them. Then I'll install Cubase SX and configure my application to point to the folder where my HTML pages reside and I'll quickly edit the link on the page to point to the Cubase folder.

After we will have a nice day, in a couple of days I am sure that he gets to know it, and when he knows it, I'll go over to him and uninstall my application so he will be able to view the IGN Reviews page.

Does anybody have any clue on how to do this? I have only 2 weeks left to make everything ready, so time is getting close.

Thank you! Any kind of help is very appreciated!
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It's easier if the file with the link is online. Then you only need to edit the hosts file. (Google hosts file.)
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

Trond wrote:It's easier if the file with the link is online. Then you only need to edit the hosts file. (Google hosts file.)
Interesting, maybe there's a workaround to use the hosts file to point to a local file? I would like to keep things private, so they have to be local.

Thanks anyway!
John Bedlam
User
User
Posts: 11
Joined: Thu Aug 31, 2006 2:29 pm

Post by John Bedlam »

Well, you could code a webserver.
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

John Bedlam wrote:Well, you could code a webserver.
How would that function? I mean sure a webserver I know what it is, but how will it communicate with IE?
User avatar
yoxola
Enthusiast
Enthusiast
Posts: 386
Joined: Sat Feb 25, 2006 4:23 pm

Post by yoxola »

How about make a program that pop-up a window on Sep,28, shows the gift you give?

It's pretty easy to make a schedule or put in startup program.
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

yoxola wrote:How about make a program that pop-up a window on Sep,28, shows the gift you give?

It's pretty easy to make a schedule or put in startup program.
That's also a pretty good idea. But my main direction was to hiddenly show a page in IE.

However, Trond, you said:
It's easier if the file with the link is online. Then you only need to edit the hosts file. (Google hosts file.)
Well, now I found a good free webhost and I have uploaded my page there. I also Googled for "hosts file" and "redirect page in hosts file" but I didn't find anything. Do you know how to redirect a page through the hosts file?

Thank you!
Post Reply