How to Block Websites on Android Without App

Charlotte Daniels

Android, Tutorials

Are you looking for a way to block certain websites on your Android device without installing any additional apps? Look no further!

In this tutorial, we will guide you through the process of blocking websites directly from your Android device. Let’s get started!

Method 1: Editing the Hosts File

If you want to block specific websites on your Android device, you can modify the hosts file. The hosts file is a local file that maps hostnames to IP addresses. By editing this file, you can redirect certain websites to a different IP address, effectively blocking access to them.

Step 1: Root Your Android Device

Before proceeding with this method, please note that rooting your device may void its warranty and potentially harm your device if not done correctly. Proceed at your own risk.

The first step in modifying the hosts file is to root your Android device. Rooting gives you superuser access and enables you to make system-level changes.

Step 2: Install a File Manager App

Once you have rooted your device, install a file manager app from the Google Play Store. There are several options available, such as ES File Explorer or Solid Explorer.

Step 3: Locate the Hosts File

Open the file manager app and navigate to the root directory of your Android device. Look for a folder named /system.

Inside this folder, locate a file named hosts. This is the hosts file we need to edit.

Step 4: Edit the Hosts File

Before proceeding with any modifications, it is highly recommended to create a backup of the original hosts file.

Now, open the hosts file using a text editor. You can use the built-in text editor in the file manager app or install a dedicated text editor from the Play Store.

Add a new line at the end of the file with the following format:


Replace with the URL of the website you want to block.

Step 5: Save and Reboot

After making the necessary changes, save the hosts file and reboot your Android device. The changes should take effect, and you will no longer be able to access the blocked website.

Method 2: Using a DNS Filtering App

If rooting your device is not an option or if you prefer a simpler method, you can use a DNS filtering app to block websites on your Android device. These apps work by redirecting DNS requests for specific websites to prevent access.

Step 1: Install a DNS Filtering App

Visit the Google Play Store and search for DNS filtering apps. Some popular options include AdGuard DNS, Blokada, and DNS66. Choose one that suits your needs and install it on your Android device.

Step 2: Configure DNS Filtering

Open the installed app and follow its instructions to configure DNS filtering. Typically, you will need to enable filtering and add websites to block them.

Step 3: Enable VPN Mode (Optional)

Note: This step may vary depending on the app you choose.

In some cases, enabling VPN mode might be necessary for DNS filtering apps to work properly. Enable the VPN mode within the app settings if required.

Step 4: Test the Blocked Websites

After configuring the DNS filtering app, test whether the blocked websites are inaccessible on your Android device. Open a web browser and try accessing the blocked website. You should see an error or be redirected to a different page.


By using either method mentioned above, you can easily block unwanted websites on your Android device without relying on additional apps. Whether you choose to modify the hosts file or use a DNS filtering app, take control of your browsing experience and prevent access to sites that may distract you or pose a security risk.

Remember, it’s important to use these methods responsibly and respect others’ privacy and online content.

Android - iPhone - Mac

 © 2023 UI-Transitions

Privacy Policy