Edit HOSTS file to Redirect to a URL?

By Deviouz
Nov 12, 2009
  1. I know how to edit the hosts file to make a connection to a website point to a specified IP address like :

    but is there any way to edit the hosts file to make a connection to instead go to

    or is there something else that needs to be done to make something like this happen..??
  2. kimsland

    kimsland Ex-TechSpotter Posts: 14,524


    IP address then sitename


    Will redirect to :D
    Edit: Wait, I think I got that the wrong way around, anyway you get the point
    Edit2 Doh. I did get it the wrong way around (I just checked) The above will make go to

    You can find all IPs of Websites here:
    There's a few of these sites, I just chose one at random ;)

    Google updates (changes) its IP often, so the above example may not work always
  3. Deviouz

    Deviouz TS Rookie Topic Starter Posts: 70

    like i said i already know how to do that part...
    what im asking is to have it redirect to like a specified URL instead of an IP address...!!!
  4. kimsland

    kimsland Ex-TechSpotter Posts: 14,524


    Thats what I just did above
    The User does not need to type in an IP or anything

    If they type in: it will then go to Google

    YOU on the other hand, Must find the IP address of the site that you are redirecting to

    By the way, after you edit and save the Hosts file
    You will need to run CCleaner, before opening your browser
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...