Edmonds Commerce Logo
  • home
    • blog
  • ecommerce
    • product catalogue
    • order processing
    • customer services
    • stock control
    • human resources
    • management information
  • development
    • oscommerce
    • php
    • mysql
    • open source
    • performance tuning
  • design
  • marketing
  • contact us
    • pricing

Edmonds Commerce Blog

Freelance PHP Ecommerce and SEO Developer in the UK

Latest Posts

Securing a LAMP Server with mod_security
osCommerce Easypopulate File Creator Class
CRELoaded Remove Google Ads -
ICECat Integration with osCommerce, Magento etc

Most Popular Posts

PHP Email Attachment Function Freelance osCommerce UK Ultimate osCommerce Checkout - Fast and Friendly PHP : Dead Easy Excel Export

HOSTS file, Vista and Blocking Unwanted Adverts

February 8th, 2008
Read More Windows

The hosts file is a highly useful little text file that most people are not really aware of. Basically what it does is set a specific url to an IP address that you specify. This is great for testing web server etc. Also, we can block unwanted content by changing the IP address for the URLs that the adverts are coming from. The convention is to change the IP address to 127.0.0.1 which basically means the local computer itself.

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 servers

127.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

3.) Save Your HOSTS File

4.) Restart MSN Messenger

Bookmark this Post
Add 'HOSTS file, Vista and Blocking Unwanted Adverts' to Del.icio.usAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to diggAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to FURLAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to blinklistAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to redditAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Feed Me LinksAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to TechnoratiAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Yahoo My WebAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to NewsvineAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SocializerAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Ma.gnoliaAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Stumble UponAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Google BookmarksAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to RawSugarAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SquidooAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SpurlAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to BlinkBitsAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to NetvouzAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to RojoAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to BlogmarksAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to ShadowsAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Co.mments
Add 'HOSTS file, Vista and Blocking Unwanted Adverts' to ScuttleAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to BloglinesAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to TailrankAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SegnaloAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to OKnotizieAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to NetscapeAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Bookmark.itAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to AskAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SmarkingAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to LinkagogoAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to DeliriousAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SocialdustAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Live-MSNAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SlashDotAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SphinnAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to DiggitaAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to SeotribuAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to FaceBookAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to UpnewsAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to WikioAdd 'HOSTS file, Vista and Blocking Unwanted Adverts' to Social Bookmarking Reloaded

Feed | Respond | Trackback

Leave a Reply

  • RSS Feed
  • Categories

    • apache
    • barcode
    • creloaded
    • curl
    • customer services
    • debugging
    • ecommerce
    • email
    • excel
    • firefox
    • flash
    • gd
    • graphs
    • hosting
    • icecat
    • internet news
    • javascript
    • link building
    • linux
    • magento
    • management
    • mod_rewrite
    • mysql
    • oscommerce
    • php
    • plesk
    • product catalogue
    • product feed
    • programming
    • regular expressions
    • scraping
    • search engine optimisation
    • security
    • spidering
    • ubuntu
    • web design
    • web development
    • Windows
    • xampp
    • zip
  • Archives

    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
  • Tags

    addons advanced adverts blackhat blocking css curl development directories find firefox google hosts file html javascript keywords links msn mysql myths operators oscommerce paid links paid placement performance php ppc reciprocal linking replace screen scraping security seo serp speed spider spidering tuning user friendly vista web web design web developer
  • Random Posts

    • Handy Easy Javascript
    • EAN13 Barcode Check Digit with PHP
    • osCommerce Easypopulate File Creator Class
    • Debugging PHP Scripts
    • Using cURL with XAMPP
    • osCommerce Contribution Released: Server Migration Synchronisation
    • PHP : Dead Easy Excel Export
    • 10 SEO Myths
    • MySQL Add Column if Not Exists - PHP Function
    • osCommerce Essential Modifications

Edmonds Commerce related questions? Send us a message or call us on 0844 357 0201.

Freelance PHP Web Design UK Commercial Web Design