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

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)

Audax: long-distance cycling

Audax: the home of long-distance cycling If you love recreational cycling, and enjoy the prospect of an all-day ride, then the audax may be just what you need. Audax technically means "daring" or "courage", but you usually won't need either ... (more)

VC Revolution Cross

Recent rain made the going quite soft on the Mount Bures course around Cambridge Brook, at Masters Farm. On the day it was mild and mostly dry with smatterings of light rain, but with a strong, drying wind - stopping the races from turning ... (more)

Riding the Rebellion Way

Early one Saturday morning in May 2024 I headed off from my North Walsham home to ride the Rebellion Way, a 373km (232 miles) clockwise tour of Norfolk on, let's say, less traveled lanes and tracks. The official route starts and ends at Norwich ... (more)

Neil Pears Memorial Cross

Here are some photos from the Vet 40's and Women's races. It was a very warm day with a fair headwind blowing down the start/finish straight. Results on the Eastern Cross website. event info Round 3 of the Eastern Cyclo-Cross ... (more)

Watching the Tour of Britain in Ipswich

I happened to be in Ipswich on the day that the Tour of Britain passed through on their way out from Felixstowe, but was on my way to London for my daughter's graduation ceremony so couldn't hang around to see the riders on the return leg ... (more)

Installing an Air-source Heat Pump

This is a guide to help you decide on whether an ASHP (air-source heat pump) is right for your home. Are you sitting on the fence about whether to replace your ageing fossil fuel boiler with an all-electric solution? You can read a broad ... (more)

Iceni Old Buckenham Cross

Despite Storm Bert passing through (with strong winds) the day passed without rain and the ground at the campsite stayed firm for riders in all the races. Well done to all of the amazing volunteers (Iceni Velo members, friends and family ... (more)

London-Edinburgh-London 2025

event info After a gap of just three years, LEL is back at its original slot in the Audax calendar and will take place two years after Paris-Brest-Paris. It will run between August 3 and August 8, and unlike in 2022 there will not be ... (more)

Related Reading

Laptop Questions
Your laptop make of choice?







Survey Results For US