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)

Upgrading to a Garmin Edge 820 bike computer

For the last few years I've been the happy owner of a Garmin Edge Touring Plus cycling computer. It's been completely reliable and the battery still lasts well, but it has been lacking in a couple of areas - namely, power meter support and ... (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 a structured, quality year of cycling in 2017. The plan consists of target events and training schedule; the diary breaks down a recent run of play, with some attempt at analysis for future ... (more)

North Norfolk Wheelers 100-mile time trial - CANCELLED

*** Cancelled due to poor road surface *** This is three laps of a rectangular circuit between Fakenham, Hillington, Gayton and and Weasenham. Note The Tricycle Association is also running an event. Note the midday start time - no ... (more)

ECCA Festival 200k Audax

This is a reasonably flat 200km ride on some of the quiet roads in Essex and Hertfordshire. It starts at 8am, from High Easter Village Hall (near Chelmsford). More info on the Audax UK website. (more)

Sticking his tongue out

Nero sat like this, on our kitchen window-sill, for several minutes! It's like he just hadn't realised that his tongue was sticking out... (more)

EDCA 12-hour time trial champs

This is mostly set on the A11 between Wymondham and Larling (near Thetford, starting and finishing on the Watton Road at Hingham. More info (and online entry) on the CTT website. (more)

US citizen efile US 2017 taxes when you owe nothing

NOT the funnest topic, but a problem that afflicts many of us. Most of the US citizens I speak to living abroad (that's ordinary people on ordinary incomes) don't file at all. It's not that we're hiding revenue from the US govt: we don't ... (more)

Iceni Velo 10-mile time trial

Riders enjoyed calm conditions in warm sunshine for this 10-mile effort between Besthorpe and Wymondham. They only had to share the A11 with a light volume of traffic, mostly cars. event info This is a blast up and down the A11, starting ... (more)

Snow fun on a cyclocross bike

Proper snow arrived in North Norfolk for the first time in years, so I ventured out on my old-skool cyclocross bike (Specialized Crux Elite) with light-weight Ultegra wheels, 2x10 Shimano 105 gears and cantilever brakes. As the photos show ... (more)

Related Reading

Laptop Questions
Your laptop make of choice?







Survey Results For US
 

Popular Searches