This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i redirect a certain webpage on the internet to another page on my laptop.?
05-14-2014, 01:11 PM
Post: #1
How can i redirect a certain webpage on the internet to another page on my laptop.?
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?

Ads

Find all posts by this user
Quote this message in a reply
05-14-2014, 01:18 PM
Post: #2
 
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)

Ads

Find all posts by this user
Quote this message in a reply
05-14-2014, 01:24 PM
Post: #3
 
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)