Block ads on Android using proxy server

Ad blocking on Android is a huge mess. On the Firefox browser for mobile, we have ad-blocking add-ons but for ads in the apps, there’s nearly no good option other than to use ad-blocking proxies. Installing a proxy on the phone itself might drain battery as it has to be running continuously. This article explains how to use an ad-blocking proxy server on your LAN instead of installing one on your phone.

Using Privoxy

Privoxy is an ad-blocking proxy server that can filter ads from web content automatically. It’s also highly configurable.

If you have one Privoxy server running on your LAN, either on your home network on a device like the FreedomBox or on a desktop machine that’s up all the time, then you can use Privoxy to block ads on your Android device.

Set a static ip address for the server running Privoxy on your local network and set it as your proxy in your Android settings as shown in the following screenshot.

Here’s how you reach this screen.

  1. In Android Settings, go to Wi-Fi.

  2. Long press on the Wi-Fi that you’re connected to and click on Modify network

  3. Click on *Advanced Options *in the pop-up that opens.

  4. Set the Proxy hostname to the static ip address of your Privoxy server. Privoxy’s default port is 8118.

  5. Click SAVE.

Now, your Android device no longer suffers from ads as long as it’s connected to this network.

This was really useful for my tablet at least, since it almost never leaves the house.

You can also use Privoxy as a proxy server in Firefox settings to avoid sites forcing you to whitelist them in ad-blocker settings.

Ad-block proxy on the go

If you want an ad-blocking proxy on your phone, which doesn’t always stay on the same network, you can use the Android apps DNS66 or Blokada.