How can i redirect a certain webpage on the internet to another page on my laptop.? - Printable Version +- Twitist Forums (http://twitist.com) +-- Forum: Other forums (/forum-31.html) +--- Forum: General Internet related Qustions (/forum-32.html) +--- Thread: How can i redirect a certain webpage on the internet to another page on my laptop.? (/thread-156107.html) |
How can i redirect a certain webpage on the internet to another page on my laptop.? - Abdullah - 05-14-2014 01:11 PM I have this saved page on my laptop that was edited by me, i want that when someone opens a certain webpage using my laptop to redirect them to a fake page which is located in my laptop, its an html page. For example: If someone pressed the "Search" button on google.com it'll redirect them to a page that was made by me which is saved on my laptop. Is it possible? - Mark - 05-14-2014 01:18 PM No, because you have no rights to edit Google's webpage's search button. However you may be able to edit a local copy of Google (Local: An HTML copy of google that is present on your computer) - Ruan Caiman - 05-14-2014 01:24 PM It can be done, but I think it's more effort than you were expecting - probably you can find instructions on youtube by searching "hosts file prank" but here are the basics - You can't redirect a hostname to a local file. But you can make a hostname point to your local computer by editing the HOSTS file - just do a web search for the hosts file on your os to get directions on how to do it, you'll just have to add a couple lines to point google to 127.0.0.1 (universal localhost IP) - one for google.com and one for http://www.google.com. Now, your computer has to be running a web server - if you are running Windows, I like USB Webserver, you can just download it anywhere on your machine and run it. http://www.usbwebserver.net/en/ If you're not on Windows, it should be even easier - just do a web search on how to run a web server on your OS. Then copy your HTML code into the index.html of the web server's root folder. |