The Online advertising market was valued at USD 304.0 billion in 2019 and is expected to reach USD 982.82 billion by 2025, at a CAGR of 21.6%. With increase in smartphone users these predictions look obvious.
Sometimes Ads can be a bit invasive and annoying. For mobile devices, there are different types of advertisements, including click to download, click to call, image text, banner ads and full screen ads.
There are some ads that simply advertise some content or product, which does not bother me. But there is also the other dangerous side to it. These ads show fake things or ask people to download something on their devices.
When there are non-tech savvy users (children or elderly parents) exposed to the ads, they can easily fall prey to these ads. They are more likely to click on anything.
These are few things you can do like installing ad-block-plus on browser, or other similar tools. But this handles it for just one device or rather browser. Doing this in all devices is a bit too much.
Recently I came across pi-hole a network-level advertisement and Internet tracker blocking application. Which makes it very easy to block ads on network-level.
Pi-hole acts as a DNS server in your router network. So whenever there is any query for a domain, pihole checks if it is an ad serving website, and blocks the query if it is. It can also act as a DHCP server.
Let's take look at an example
NOTE: Since the ads were not downloaded in the first place, they do not need to be hidden from your view since they do not exist in the first place. Hence, no need for ad blocker extension.
This is very easy setup just write raspbian OS to SD card. Explained in detail in this video. https://www.youtube.com/watch?v=Hdm26W9dHK0
Installing pihole is quite easy, just run following command. It will run the program and ask for some inputs like upstream DNS, ad-lists, and other configurations.
$ curl -sSL https://install.pi-hole.net | bash
I chose OpenDNS as upstream DNS, I will explain why OpenDNS in next section.
You can do this in two ways
This is bonus thing along with blocking ads, As in previous steps we have set upstream DNS as OpenDNS. With OpenDNS we get some more features, Like blocking certain type of content on your network.
Categories are as below
Pihole is working seamlessly, No issues so far. It does not require much compute, works quite fine with 15% memory usage. Also, As I am using raspberry-pi zero w, It's not consuming much power.
On average 30% - 45% daily unique requested domains are ads or tracking. Knowing that other devices in my network are not served any ads or not tracked, gives a relaxing feeling.
And this is how you say no to Ads,