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)

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)

Dawn 'til Dusk ride 2020

I've had a "longest ride in daylight" challenge in my bucket-list for a long time, but there have always been other events getting in the way. The lack of competitive events in 2020 (due to the COVID-19 pandemic) gave me the opportunity and ... (more)

Summer delivery of logs

This was their standard trailer-load (a 10 x 5 foot trailer) and came out at 23 barrow-loads when shifted into storage. It cost us £150, but for current prices please see their website. (more)

Setting up a LAMP stack on CentOS 8

Here are the command-line steps needed to get a bare CentOS 8.0 distro ready for full LAMP (Apache-MySQL-PHP) hosting: (Note - replace mysite.com with the domain name of your own website, and server1.mysite.com with this server's hostname ... (more)

Dig for Britain! (a COVID-19 response)

Now that Coronavirus has swept across the globe, it's important to think about food security. We've had issues with supermarket shelves going bare of all those storable items (pasta, toilet roll, etc) but no real issues with fresh produce ... (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)

SOLVED! How to free a stuck seatpost

Bicycle seatposts are notorious for getting stuck in the frame. They're in a fairly vulnerable part of the bike, and rainwater can work its way down - causing the post to corrode over time. The act of corrosion is fairly slow, so you should ... (more)

Mobility Changes due to COVID-19

Google has published summary reports of the changes in different types of mobility across the world. Here we present a series of charts for the UK, ordered by percentage change and highlighting the county of Norfolk. The mobility changes ... (more)

Close pass incidents being ignored by Norfolk Police

I have a Cycliq Fly-6 rear-view video camera in operation during most of my cycling, and this camera provides very good footage of vehicles (and if I'm lucky, the drivers) as they overtake me. I bought this camera in response to a very scary ... (more)

Related Reading

Laptop Questions
Your laptop make of choice?







Survey Results For US
 

Popular Searches