How to Block Adverts

Or at least, how to block sites that deliver just adverts. You'll need to edit your hosts file.

  • On Linux this is /etc/hosts
  • On Windows 2000 and above this is C:\windows\system32\drivers\etc\hosts

The file is essentially the same in all cases, except don't use TAB to separate the fields if you're on Windows.

Back to our mission, to block annoying adverts. All we need to do is use the hosts file to change the IP address of any ad-site to something else. A good IP address to use is 127.0.0.1 (aka localhost, or your machine). Here is the line - and it is just one line - that I use in my hosts file:

127.0.0.1 adserver.adtech.de oz.valueclick.com adverts.ecn.co.uk www.burstnet.com www.commission-junction.com www.qksrv.net ads.adviva.net servedby.advertising.com ad.doubleclick.net www.w3exit.com ads.novacaster.com tracker.tradedoubler.com banners.gameon.co.uk ar.atwola.com ar.atwola.com ad.uk.doubleclick.net ad.doubleclick.net serverdby.advertising.com multi1.rmuk.co.uk www.ukbanners.com

Put this line into your hosts file at your own risk! All of the sites mentioned in the line are ones that, in my opinion, publish rather ugly and annoying adverts; feel free to add/remove as you desire. The list is by no means complete, as I merely add to it whenever I come across such an advert.


Comments

It's quiet in here...Add your comment

My broadband

My Broadband (more)

Spectating at the World Road Race Champs in Yorkshire

Friday: Under-23 men's race I rode up from Holbeach, saw the race pass through Thorne, then rode through afternoon rain to see them at the finish in Harrogate. Saturday: Elite women's race After heavy overnight rain I rode north on ... (more)

Terms

Terms of Use These terms of use govern your use of our site. Please read these terms in full before you use this Website. If you do not accept these terms of use, please do not use this Website. Your continued use of this site confirms your ... (more)

Mirror

(more)

Crivit products

The Crivit® product range If you're looking for outdoors clothing or accessories, you could do worse than to browse the Crivit® range. Crivit® is a brand of German supermarket Lidl's, so it's most convenient for UK customers to head down ... (more)

John Swindells

John Swindells I am a career professional in software development, becoming proficient in various systems and languages since 1992. In recent years I have been especially active in web and mobile app projects. I stepped down in April ... (more)

Cycling Performance Programme

Performance Programme This is my plan and diary for cycling in 2020. The plan consists of targeted events and ambitions for the year; the diary breaks down a recent run of play, with some attempt at analysis for future improvement. 2020 ... (more)

Diss CC Suffolk Supercross

Leaden skies threatened the organisers, helpers and racers all day at Redgrave, butwe got away with it and enjoyed fairly dry conditions. Not to say that there wasn't any mud: the course is notorious for churned-up grass that saps the legs ... (more)

Late December 200k

Steady ride around Norfolk with a few friends, clockwise from Norwich and going as far west as Sandringham. (more)

Shining the light on Solar Equity Release

I received a letter recently from a company offering to pay me a lump sum in return for the Feed-in Tariff (FiT) for my solar panels. It was addressed to "The Homeowner" and was from a company I'd never come across before. I read up on the ... (more)

Preview of the Iceni Velo CX on Jan 19, 2020

Plans are firming up for Iceni Velo's annual cyclo-cross event at World Horse Welfare! The 2020 edition (part of the Eastern CX League's 2019/20 calendar) is sponsored by First Self Drive, a car & van hire company in Norwich. I cycled ... (more)

Smart meters and Solar PV

The Smart Meter rollout in the UK was much maligned in its early years, with issues over compatibility and switching suppliers. We are now onto the second generation, and many issues have been resolved. However, question marks do remain ... (more)

West Suffolk Cross

An overnight forecast of high winds put the event at risk, but these fortunately didn't happen - although it was quite windy in the afternoon. The course was well laid out on grass and some tarmac, although the grass was exceedingly bumpy ... (more)

Iceni Velo First Self Drive Cross

The 2019/20 edition of Iceni Velo's cyclo-cross event at Snetterton was extremely sunny (if a bit chilly) for the second year in a row, giving riders a mixture of conditions as the frosty grass thawed out. Thanks to lots of members ... (more)

Related Reading

Laptop Questions
Your laptop make of choice?







Survey Results For US
 

Popular Searches