Let me repeat, the file should be named "hosts" NOT "hosts.txt".
Here is the site hosts I use to addon to my hosts file.
There is instructions in the hosts file edit. I will post a part of it the rest you can also read where it start at
"For Windows....." this is the part where it instructs you where you can find the hosts file to edit.
For Windows 9x and ME place this file at "C:\Windows\hosts"
For NT, Win2K and XP use "C:\windows\system32\drivers\etc\hosts"
For Windows 7 and Vista use "C:\windows\system32\drivers\etc\hosts"
You may have to use Notepad and "Run as Administrator"
For Linux, Unix, or OS X place this file at "/etc/hosts". You will
require root access to do this. Saving this file to "~/hosts" will
allow you to run something like "sudo cp ~/hosts /etc/hosts".
Ubuntu users who experience trouble with apt-get should consult
For OS/2 copy the file to "%ETC%\HOSTS" and in the CONFIG.SYS file,
ensure that the line "SET USE_HOSTS_FIRST=1" is included.
For BeOS place it at "/boot/beos/etc/hosts"
On a Netware system, the location is System\etc\hosts"
For Macintosh (pre OS X) place it in the Mac System Folder or Preferences
folder and reboot. (something like HD:System Folder:Preferences:Hosts)
Alternatively you can save it elsewhere on your machine, then go to the
TCP/IP control panel and click on "Select hosts file" to read it in.
| As well, note that the format is different on old macs, so
For Android place the file at "/system/etc/hosts". You will need root
access on your device to do this.
To convert the hosts file to a set of Cisco IOS commands for Cisco routers
use this script by Jesse Baird:
Here's is what I did to merge my hosts file with their hosts file.
Download the site hosts file to a download folder.
Then copy the downloaded hosts file to the Temp and another folder to save the Original "hosts" file just incase.
2a. Uncheck the PC hosts file from "Read-Only" if it not checked leave it I tell more later why not being "Read-Only" is bad thing for the PC hosts file.
Use Word to edit the downloaded hosts file and then do this edit to it..
4.After: Notice the "#" I placed in front of each link..this customization I did seem to worked fine under Windows 7x64..
5.Now to start the edit now the downloaded hosts file you opened in Word don't use Notepad it will mess it up and you can guess how I know that already. Be sure to make the "4" change to that location and then do a "Ctrl-A" to copy the entire downloaded hosts file that was opened in Word.
- Now I open the copy hosts file in the Temp folder in Notepad and make sure if there is a:
I made sure to add a "#" infront of the 127 locations there shown here:
Copyright (c) 1993-2009 Microsoft Corp.
This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
This file contains the mappings of IP addresses to host names. Each
entry should be kept on an individual line. The IP address should
be placed in the first column followed by the corresponding host name.
The IP address and the host name should be separated by at least one
Additionally, comments (such as these) may be inserted on individual
lines or following the machine name denoted by a '#' symbol.
188.8.131.52 rhino.acme.com # source server
184.108.40.206 x.acme.com # x client host
localhost name resolution is handled within DNS itself.
Not sure what other Windows O/S might will look like but this comes as a direct copy from my PC hosts file that I only change the last two half of it using the "#" character.
Now in Notepad that was opened when you opened Word for the downloaded hosts file. Go to notepad that has your PC hosts file open and go to the last line and add a blank return line then do a right click then paste the downloaded hosts file there and you should see your hosts file size increase.
Now save that PC edited hosts file in your Temp folder. And this time change the attribute to "Read-Only". Why do this-this will protect your hosts file from having malware write redirects there to send your browser to their malware infected sight. This is what users don't notice this little secret is a malware favorite friend-all your ads block and no scripts-once this hosts file is compromised those ads block will be of no use to stop pops or ads from coming through.
I am including the hosts file as it should look when you have it completed but you can also use it as well it will be set to "Read-Only" and is ready to copy to your PC hosts location to overwrite the current one there. Just be ready you will notice some site saying can't load the ad page and that means it is working also you will get some pages showing "x" unable to load page as well other times the page will will open another browser page and will say unable to load page or be complete blank. And some pages that you went to previous that would pop with ads will now just load no ads or popups. And if you use Yahoo mail you might notice on the left/right side those ads will stop and some will say can't load.
This will improve your page load time and improve your browsing so you can enjoy it more. This is something I had to learn by trial/error until I found this hosts site that finally stop those darn popups and ads from coming through.
Here I will attach my hosts file as zip file for you to look to see what I did. Just Unzip it to a folder and then you can use Notepad to open the file just remember it will be "Read-Only". If you want to edit it make sure not to save it to another file but use the "Save" if you use "Save As" it will not work only "Save" option is to use that is why I said to make a backup so you don't mess up the original files. The download hosts file even mentions this:
This file must be saved as a text file with no extension. (This means # that the file name should be exactly as below, without a ".txt" appended.)
- The download hosts site periodically does update their hosts file but for the vast majority should be good with the current one but if you feel the need to change to the latest host blocker one can do that as well. Hopefully this instructions being rough will help others but look at the zip file and that should give one a starting point.
hosts.zip (64.8 KB)