Advertisements

Host files are plain text files with a list of hostnames and their IP addresses. It is a repository of domain names used by operating systems to identify and locate hosts within an IP address. Nevertheless, host files are not usually used by every user but get a lot of attention because they block ads. The reason being such host files help a lot with adblockers such as Adaway and similar programs.

I completely agree that using these adblockers helps you to access and edit host.txt files. But they often run in the background and unnecessarily drain your phone’s battery. This requires some host file providers to edit and replace the entire file, keeping the same name. Existing data shouldn’t be deleted. Add more data to the host file. Here we’ll discuss the best host files.

How to Block Ads and Malware on Android Phones and PCs Using Hosts Files

There is always a need for a host file to route a map between an IP address and a domain. Although Adaway has enough host files for normal use. But there’s still a need for more host files to block ads more efficiently. Consequently, we studied their sites and compiled a list of some essential host files for effective ad blocking.

  • Adaway: https://adaway.org/hosts.txt
  • Adhell 3 Standard: https://getadhell.com/standard-package.txt
  • Simple Adblocker for Samsung (SABS): https://raw.githubusercontent.com/mmotti/mmotti-host-file/master/hosts
  • Host File Net: https://hosts-file.net/ad_servers.txt
  • YOYO: https://pgl.yoyo.org/as/serverlist.php

After you get the best host file, you are now wondering about editing the Hosts.txt file. But for security reasons, these files are placed in the core of the operating system. I mean, you need root access to edit it. You can root your phone through ADB here. Once you are done, you will see the host.text file in /system/etc/hosts. Now the host.txt file is accessible, so let’s move on to the steps to edit it.

  1. Simply download and install a root explorer (recommended ES File Explorer)
  2. Allow access through Magisk.
  3. Head to the file “/system/etc.” and locate the “host.txt” file there.
  4. Copy that file to your SD card.
  5. You can edit that host file using Notepad++.
  6. Beneath the Hosts.txt file, add custom host files from the various files mentioned above.
  7. Next, replace the old host file with this edited one (but keep the name the same).
  8. Long press that file and select Properties.
  9. Check the box in the right column to give write permission.
  10. Lastly, reboot your device, and you are done.

In addition, you can subscribe to host providers on Adhell or SABS. Samsung users have the option to subscribe to it. But note that before following the below steps, you must disable and re-enable Knox-based Adblockers. Also, while adding the host files, make sure to keep them to a minimum. I know you might not know how to do it. For your convenience, we have outlined a few steps below.

  1. Open up Adhell 3 on your device.
  2. From the home screen, go to the settings menu.
  3. Now search for adding host providers.
  4. You can then enter any of the host file URLs mentioned above.
  5. That’s it; you’re done.

Those are the ways to subscribe to and edit the host file placed on your phone’s operating system. I hope that your ad blocking is now more efficient than it was before. The reason for this is that we have clarified every aspect of the issue. After having said that, if any user still has a question about the issue, please leave a comment below.

class="wp-block-heading">Frequently Asked Questions

Q1. What is the best host file adblocker?

Ans. In our opinion, Adblock is a better option to choose.

Q2. Is it safe to edit the host’s file?

Ans. There is no effect on your system after editing the host’s file.

Q3. Does AdBlock use more RAM?

Ans. Not that much, but yes, each new tab requires some memory.

Q4. Does AdBlock Slow PC?

Ans. No, they have a dedicated workflow that does not disturb your system’s functioning.

x
Advertisements