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)

Broadband auto-compensation really rolling out?

Back in November 2017 Ofcom (the body responsible for regulating UK communications tech) announced that there would be automatic compensation for delays in repairs or installations for broadband and landline work. This was a voluntary scheme ... (more)

Iceni Velo road races 2019

Photos from Sunday's event on the May bank holiday weekend. event info A men's race in the morning, and a women's race in the afternoon, on a triangular course in south Norfolk. More information on the Iceni Velo website. (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)

Beware of free health checks for Solar PV

Have you had an unsolicited letter from a company you've never of, offering a free health check for your solar PV system? My recommendation: bin it! If you have had solar electric panels on your roof for several years then the inverter ... (more)

SOLVED Cleaning a dishwasher's water inlets

Our trusty dishwasher (Bosch Exxcel) had recently been getting worse at the daily job of crockery cleaning, and today it simply did no cleaning at all! On starting the wash cycle there was no water coming out of the cleaning arms, and the ... (more)

Are speed-limiter devices the answer?

The European Commission today announced its intention to bring in mandatory speed-limiting devices for all new cars, from 2022. For road safety advocates this sounds like a great idea in principle, but is it really the correct approach? ... (more)

Bulb: energising your home!

After a long series of domestic electricity price rises iver many years, we decided to try our luck with a new supplier that doesn't appear to have the inefficiencies and administrative baggage of the traditional companies. The energy supply ... (more)

Back on the bike after a shoulder operation

After being stuck on the turbo trainer for a few weeks after having corrective surgery on one of my shoulders, I finally couldn't resist the sunshine and got out on my Orro bike. I had two rides this weekend: a test ride towards Holt on the ... (more)

Ixworth Crits 2019

Photos from the early races at Ixworth Crits, 2019 event info Closed-road circuit racing in Ixworth village! More info on the BC website (more)

Tour of Cambridgeshire

The ToC consists of Saturday's Chrono (a time trial event with riders setting off on the 16-mile course at 20 second intervals) and the ToC Sportive / Gran Fondo / Race on the Sunday. The Sportive is 100 miles Choice of 55, 75 and 100 ... (more)

FOR SALE: Bikes, wheels, power meter!

These items are all well used, but kept in good working order too. Thorne Voyager child-back tandem bicycle £400 We've owned this for around 13 years, and it's been perfect for ferrying the smallest child around town and for ... (more)

Related Reading

Laptop Questions
Your laptop make of choice?







Survey Results For US
 

Popular Searches