1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[ONLY for NEWBIES] How to change hosts.txt file in Vista/Win7

Discussion in 'Black Hat SEO' started by chris456, Mar 4, 2011.

  1. chris456

    chris456 Regular Member

    Joined:
    May 17, 2010
    Messages:
    281
    Likes Received:
    567
    Because in almost every thread are 1 or 50 newbies asking how to change the "hosts" file in Vista / Windows 7 , I decided to create special tutorial for this very "difficult" task.
    Whenever you forget how to edit that, use BHW search button and type: hosts file and you should find it easily in this thread. I will use this tutorial for linking from other threads , because I don't want to repeat myself . I also know that for somebody who never did this simple task sometimes should be very painful to search for that (even for me in the past) so it will hopefully save your time now.


    1. Go to START and click on it with left button of your mouse
    2. in the bottom you see Search programs and files type:"notepad"
    3. You will immediately see NOTEPAD in the top of Start Menu
    4. RIGHT click on it
    5. click : "run as administrator"
    6. click first Tab: "File"
    7. click : "Open" or shortcut "CTRL+O"
    8. Search for folders C:\Windows\System32\drivers\etc\hosts
    9. you won't see it , so choose: All Files to make it visible
    10. if you see it click on hosts or if you don't :
    11. type in field "File name": "hosts" -this part is edited thanks MonthyPythonFan !!!
    12. click on it
    13. you will see (image 2) so add lines there and SAVE it
    14. Hosts file is changed !!

    Image 1 - Internet Explorer
    [​IMG]

    IMAGE 2 - hosts file:
    [​IMG]
     
    • Thanks Thanks x 2
    Last edited: Mar 5, 2011
  2. MontyPythonFan

    MontyPythonFan Newbie

    Joined:
    Nov 22, 2007
    Messages:
    15
    Likes Received:
    2
    Occupation:
    SEO
    Sorry, but the file name is not "hosts.txt", it is just "hosts". If you save the file as "hosts.txt" it will not work.

    :D
     
  3. chris456

    chris456 Regular Member

    Joined:
    May 17, 2010
    Messages:
    281
    Likes Received:
    567
    You are right , but everybody even newbies knows what I mean , if not they should rather dedicate their precious time to more useful interests like playing Playstation than to make a SEO (if they are not able to change the hosts file with this tutorial -:) ), file has .txt extension and I wanted to be as precise as possible
     
  4. MontyPythonFan

    MontyPythonFan Newbie

    Joined:
    Nov 22, 2007
    Messages:
    15
    Likes Received:
    2
    Occupation:
    SEO
    Sorry, but the hosts file has not a .txt extension - it has no extension at all.

    I know that many people are just assuming that it must have an extension and they save it as hosts.txt but it's simply not working.
     
    • Thanks Thanks x 1
  5. chris456

    chris456 Regular Member

    Joined:
    May 17, 2010
    Messages:
    281
    Likes Received:
    567
    You are absolutely right !!! :D:eek::confused::(

    what a shame -:) that's why I never saw that file after clicking on etc folder, that's why I had to search for that in File Name .
    Thanks a lot MontyPythonFan , in fact I am a newbie too -:)
    I will remake that part of my tutorial now.
     
    • Thanks Thanks x 1
  6. MontyPythonFan

    MontyPythonFan Newbie

    Joined:
    Nov 22, 2007
    Messages:
    15
    Likes Received:
    2
    Occupation:
    SEO
    :D

    May I add one note: On some windows installations the "hosts" file is "hidden" by windows so people don't see it but it's there.
     
  7. chris456

    chris456 Regular Member

    Joined:
    May 17, 2010
    Messages:
    281
    Likes Received:
    567
    Thanks again , I remade that part of tutorial , to be honest I didn't know that -:) , but if you choose "All files" you should see it or NOT or is it really "hidden" ?
    If you tell me which installations has this feature I will add it to the first post of the tutorial .
     
  8. chris456

    chris456 Regular Member

    Joined:
    May 17, 2010
    Messages:
    281
    Likes Received:
    567
    Moderator please change the titel of this post from :

    How to change hosts.txt file in Vista/Win7


    TO:


    How to change hosts file in Vista/Win7

    I have made an error , MonthyPythonFan helped me to find it , I have changed the content and I can't change the title anymore and it is for other people misleading now.

    thanks Chris
     
    Last edited: Mar 5, 2011