Block ads in apps on Android (including video ads)
Ads on websites and in apps are annoying enough, but apps that pop up a 30 second video ad while you’re going about your business are much harder to put up with. While there’s browsers that block ads on the web, in-app ads are tougher to eliminate. But it’s possible on Android, without root access to your phone.
“But wait! Isn’t that like stealing the app?” you cry. Well, maybe in a sense. When an app has gone from a harmless banner ad to a 30-second, loud, obnoxious video ad for a kid’s video game you’ll never play, I’d suggest it’s fair to block it. But try to support the developer by buying the full version or giving them a donation.
I’ve forgotten what ads look like
I’ve been using this method to keep ads off my Android phone for years now, and I find it impossible to go back. Every app is now a breeze to use, doesn’t shove obnoxious ads in my face, and my sanity has returned. It even uses less battery and data, because the ads won’t be downloaded and played. If it weren’t for this hack, I’d have to switch to an iPhone, where ads are more rare.
It’s a little involved but well worth it
This is how it works. Every time an app tries to request data from the internet, it gets funneled through what’s called a VPN - a virtual private network. But this is a special VPN: it doesn’t let apps request data from ad companies.
Let’s get you set up. It’ll only take a few minutes.
1. Allow side-loading apps
If you haven’t before, you might need to tell your phone to allow you to install apps from outside the Play Store. This is called side-loading. To allow it, go to Settings, Security (or “Lock screen and security” on Samsung), and enable the setting called “Unknown sources”.
This lets you install apps from files called APK files, which have the file extension .apk. Be careful which apps you install though.
2. Install the DNS66 app
This is a free, open source app. Open source is important here because all your network requests will go through this app, and we need to make sure we can trust it. Because the app is open source, if it was doing anything shady, it would be found out. You can read up about what open source means to learn more.
You can download DNS66 from F-Droid, which is like the Play Store but for open source apps. You can download DNS66 here.
You can either install F-Droid and install DNS66 from it, or you can download it and install it directly as an APK file. If you downloaded the APK file, just open it to install it. You might need to find the .apk file in your Downloads folder.
3. Set up hosts to block
DNS66 uses lists of sites to block called hosts files. DNS66 is handy because it includes well known hosts files that are kept up to date with new ad companies to block as they appear.
These hosts files tend not to include the ad companies that show video ads inside your apps, so if you’re keen to block those, you’ll need to download a hosts file we’ve prepared, and add that to DNS66. Don’t worry, it’s easy.
First download this video ads hosts file to your device. You might need to press on the link and hold and tap “Download link”. We prepared it ourselves by running some common apps, hunting down where the video ads are coming from, and adding them to the list. We might not have got them all, so let us know in the comments if you encounter an ad (and what app you saw it in).
Now go into DNS66, go to the Hosts tab, tap the plus (➕) icon in the bottom right to add a new hosts file. Enter any title you like such as “Video ads”. Then for the location, click the little paperclip symbol and select the “unlikekinds-video-ads-hosts” file you downloaded earlier. Then tap the tick in the top right.
Before you start blocking ads, you’ll need to open DNS66 and tap the Refresh host files button (the circle arrow in the top right). This will refresh all the other hosts files. Remember they’re kept up to date, which means the lists need to be downloaded every now and then. DNS66 will do this automatically.
4. Enable ad blocking
Now all you have to do is go to the Start tab in DNS66 and tap the big START button at the bottom, and you’re set!
Try opening up an app with ads in it, and they should be gone.
Wait, I still saw an ad!
This can happen from time to time, like if a new ad company comes out that hasn’t made it into a hosts file, or if they started using a new address.
If you see a video ad, let me know in the comments and I’ll add it to the hosts file. Or if you’re really savvy, you can track down the address and add it on your own.
Support app developers
It’s important that free apps continue to be made, and app developers need money to go on doing what they do. So if you can’t stand ads in your apps, try to support them in another way, by making a donation or paying a few bucks for the full version of their app.
After all, if everyone blocked ads, there wouldn’t be free apps anymore. But if the ads are really time consuming or obnoxious, we think you should block them, guilt free.