How to Block Ads on Android, with Root, and Without Root

How to Block Ads on Android, with Root, and Without Root

In the digital age, advertisements have become an unavoidable aspect of our online experience, often interrupting our browsing sessions and consuming precious screen real estate. On Android devices, these ads can be particularly intrusive, but there are ways to regain control and enjoy ad-free browsing. Whether you have rooted your device or prefer to keep it stock, here’s a comprehensive guide on how to block ads on Android, catering to both rooted and non-rooted users.

Blocking Ads Without RootBlocking Ads Without Root

For users who prefer not to root their Android devices, several non-root ad-blocking solutions are available, ranging from specialized apps to browser-based extensions. Here are some effective methods:

1. Ad-blocking Apps:

   – Install ad-blocking apps from the Google Play Store, such as AdGuard, Blokada, or DNS66. These apps work by creating a local VPN connection to filter out ads before they reach your device, effectively blocking ads system-wide.

   – After installing the app, follow the on-screen instructions to configure the ad-blocking settings. You may need to grant the app certain permissions to function correctly.

2. Browser Extensions:

   – Many popular web browsers for Android, such as Firefox and Kiwi Browser, support ad-blocking extensions like uBlock Origin and Adblock Plus. Install your preferred browser and add the ad-blocking extension from the browser’s extension store.

   – Once installed, enable the ad-blocking extension in the browser settings. The extension will then automatically block ads while you browse the web, providing a seamless ad-free experience.

3. DNS-based Ad Blocking:

   – Utilize DNS-based ad-blocking solutions like AdGuard DNS or Pi-hole. These services work by redirecting DNS queries to block known ad-serving domains, effectively preventing ads from loading on your device across all apps and browsers.

   – To set up DNS-based ad blocking, navigate to your device’s network settings and modify the DNS server settings to point to the designated ad-blocking DNS server (e.g., for AdGuard DNS).

Blocking Ads With Root

Rooting your Android device provides you with elevated privileges, allowing for more advanced customization and control over system files. If you’ve rooted your device, you can take advantage of powerful ad-blocking solutions that operate at a deeper level within the Android operating system. Here’s how:

1. Ad-blocking Hosts Files:

   – Modify the device’s hosts file to block ad-serving domains at the system level. Hosts files are located in the system partition and can be edited using root-enabled file explorers or text editors.

   – Download a pre-configured hosts file from reputable sources like GitHub repositories or community forums dedicated to Android customization. Replace the existing hosts file with the downloaded one and reboot your device to apply the changes.

2. Ad-blocking Modules (e.g., AdAway):

   – Install ad-blocking modules such as AdAway, which leverage the Xposed Framework or Magisk to modify the device’s hosts file automatically.

   – After installing AdAway, grant it root permissions and enable the ad-blocking feature. The app will update the hosts file with a comprehensive list of ad-serving domains, effectively blocking ads system-wide.

3. Custom ROMs and Kernel Modifications:

   – Explore custom ROMs and kernel modifications that include built-in ad-blocking capabilities. These custom firmware solutions often integrate ad-blocking features directly into the operating system, providing a seamless ad-free experience without the need for additional apps or modules.

   – Research and choose a custom ROM or kernel that aligns with your device model and preferences, and follow the installation instructions provided by the developer community.


Whether you choose to root your Android device or prefer to keep it unmodified, there are effective methods available to block ads and enjoy a cleaner, more streamlined browsing experience. From non-root solutions like ad-blocking apps and browser extensions to root-exclusive methods like hosts file modifications and custom ROMs, users have a variety of options to suit their needs and preferences. By following this guide, you can take control of your Android device and bid farewell to intrusive ads once and for all.