URL local re-direct, how?

Associate
Joined
11 Nov 2003
Posts
860
Location
South London
Hi,

I want to play a practical joke on a guy at work; he is constantly on a site called "hot uk deals", so I want to set his computer up, so the next time he tries to access that site, it re-directs to a page that says "Access to this site is barred under the company's correct internet usage policy" or words to that effect?

Anyone know how this could be done?

Fred
 
Install a webserver somewhere who'se index.htm contains those words. Then open (on his computer):
c:\Windows\System32\drivers\etc\hosts

add lines:
ip_of_webserver www.website.com
i.e.:
192.168.0.2 www.google.com

Reboot. Done. :p.
 
True. It depends if you've already accessed the site or not, you might need to do an ipconfig /flushdns if so (or just pinging the site seems to update it from the hosts file usually).
 
OK I'm a bit clueless about setting up a web-server, in the interests of comedy, would anyone be able to host my spoof message for me?
 
OK I got a slight problem. I've hosted my spoof warning message on the first free hosting thing I could find (hostrator.com).

However, I now have a URL for the warning message but not an IP. If I use the IP of the ftp that I uploaded the .htm file to then it just ends up at the hostrator homepage.

Is it possible to set up the host file so it re-directs www.hotukdeals.com to a URL rather than an IP address?
 
Back
Top Bottom