HOSTS file, Vista and Blocking Unwanted Adverts
Feb 8, 2008 · 2 minute readCategory: Windows
This is post is now quite old and the the information it contains may be out of date or innacurate.
If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub
Editing the HOSTS File
Your hosts file can usually be found in
c:/windows/system32/drivers/etc/
it is a text file, but does not have .txt at the end - it has no dot at all.
To edit it in XP, simply right click the file and select to open in notepad. Make your edits then save the file. For your edits to work you will generally have to restart whichever programmes you wanted to change the behaviour of.
Editing the HOSTS File in Windows Vista
The HOSTS file is much more secured under Windows Vista. This is fair enough because malicious changes to your HOSTS file could set you up for all kinds of things such as phishing attempts etc. However it does make it a bit more tricky for you to edit it yourself.
Heres how to do it:
1) Browse to Start -> All Programs -> Accessories 2) Right click “Notepad” and select “Run as administrator” 3) Click “Continue” on the UAC prompt 4) Click File -> Open 5) Browse to “C:\Windows\System32\Drivers\etc” 6) Change the file filter drop down box from “Text Documents (.txt)” to “All Files (.*)” 7) Select “hosts” and click “Open” 8) Make the needed changes and close Notepad. Save when prompted.
Block MSN Messenger Adverts.
I am not a big fan of in your face adverts, especially within applications. MSN messenger adverts are easy to get rid of though. All we need to do is edit the hosts file, save it and then restart the program.
1.) Open your HOSTS file for editing
2.) Paste the following into the bottom of your HOSTS file:
# Windows Live Messenger ad servers3.) Save Your HOSTS File127.0.0.1 rad.msn.com
127.0.0.1 global.msads.net
127.0.0.1 rss.video.msn.com
127.0.0.1 ads1.msn.com
127.0.0.1 rad.live.com
127.0.0.1 specials.uk.msn.com
4.) Restart MSN Messenger