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)

Don't let someone else use your broadband DSL login!

We had a bizarre situation recently where our internet access went highly unstable. It was very patchy, with some website access being fine and other access being impossible. Interestingly, video streaming would work - but only after many ... (more)

Upgrading to the Garmin Edge 1030

My previous on-bike device is a Garmin Edge 820, so that is what I'll be comparing my new computer to. First impressions On the surface, the Edge 1030 isn't fundamentally different to the 820. Sure, it's bigger (a lot bigger, really ... (more)

Bike Mileage Readings for Orro Terra SL

(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)

Silly Suffolk Audax 2020

Only a dozen or so riders made it out for the 200km edition of the Silly Suffolk that was organised by John Thompson of VC Baracchi. Iceni Velo managed a group of three, and we set off just before 7:30 on back roads that were very wet from ... (more)

Getting the Broccoli in early

The broccoli grew very well for us last year, although we did suffer a glut as we had sown the seeds to closely in time to each other. This year we're sowing around four or five seeds in pots each week, varying that depending on how well ... (more)

Strava keyword cloud

Here's what the current mood is on Strava! It's based on the titles of activities uploaded to swinny.net, and highlights trending phrases over the last few days. Here are some previous keyword clouds of note: March 2020: Lockdown ... (more)

Preparing for an all-day cycle ride

Background Over the years I've ridden quite a few long rides, but it wasn't until my early 40's that I gradually started increasing my time in the saddle from a few hours to six or more. I distinctly recall my first 200km ride as a bit of ... (more)

Replacing push-fit bottom brackets

I'd always been nervous about replacing the push-fit bearings myself. I'd always been used to the screw-on variety, and when I bought a Specialized Crux with BB30 push-fit bearings I just left it as a job for my LBS when the dreaded creak ... (more)

How to get a fast, informative Health Check

I turned 45 recently, so was looking forward to getting a comprehensive health-check done via my NHS GP surgery. COVID-19 restrictions put paid to that, however, and as of July 2020 there is no idea about when these tests will be up and running ... (more)

Cycliq FLY-6 long-term review

The Cycliq FLY6 is a solid piece of kit that straps onto your seat tube, and is designed as a "turn on and leave it" device that continuously records video footage of the view behind. The footage is wide-angle to capture lots of the periphery ... (more)

Related Reading

Laptop Questions
Your laptop make of choice?







Survey Results For US
 

Popular Searches