How to Block Websites on Android

You can block websites on your Android device in a lot of ways.

In this post, we will see two different ways to do this task. Let's see what they are.

Block Websites on Android

For Rooted and Non-Rooted Android Devices

  • angle-right
    ​Install and open the FocusMe app. Provide the permissions for the app.
  • angle-right
    Now, you can see "Plans" screen. Tap the "+" icon at the bottom. Tap "Next."
  • angle-right
    In the "Enter Websites" screen, add all the websites you want to block. Tap "Next."
Entering website URL
  • angle-right
    ​Tap "Scheduled." Tap "Next."
Selected Scheduled option
  • angle-right
    ​Choose all days. Tap "Next."
All days are selected
  • angle-right
    ​In the "Set Daily Intervals" screen, tap "+" icon at the bottom. In the "Focus From," set the time as 00:00. In the "Focus Until," set the time as 23:59. Tap "OK." Tap "Next."
Time of the plan
  • angle-right
    ​Leave the options intact. Tap "Next."
  • angle-right
    In the "Plan Name" field, provide the name for this plan. Set "Custom Password" for both "Active Stop Protection" and "Inactive Stop Protection." Tap "Next."
Plan name along with custom password
  • angle-right
    ​In the "Set Start Day" screen, tap "Next." Now, in the "Set Last Day" screen, tap "No End Date" option at the bottom.

That's it. From now on, the websites you've specified in the app will be blocked.

If someone tries to access the blocked website, they will see a toast notification stating "FocusMe: Website 'website URL' is not allowed."

FocusMe Website website URL is not allowed

Note: While testing, I've found that this app works perfectly on Chrome, Firefox, and Edge. But, it didn't work on UC Browser.

Remember that this app works perfectly on the private mode of the browsers (Chrome, Firefox, and Edge) too.

Also, keep in mind that you can edit the plan at any time you want.

To modify the plan, first, you need to stop the plan (if it is active) and then tap on it. Now, you can see "Edit" option at the bottom. Tap on it to edit the plan.

For Rooted Android Devices Only

  • angle-double-right
    ​Install and open ES File Explorer File Manager app.
  • angle-double-right
    ​Tap Hamburger icon (three vertical lines) at the top.
  • angle-double-right
    Tap Local > Device > etc folder. Find and tap "hosts" file.
  • angle-double-right
    Select "Text" and then select "ES Note Editor."
  • angle-double-right
    Tap Overflow Menu (three vertical dots) at the top. You can see "Edit" option. Tap on it.
  • angle-double-right
    Now, enter the website(s) you want to block like this:


  • angle-double-right
    ​Make sure to enter all the version of the website(s) like above.
  • angle-double-right
    Hit the "Back" arrow at the top of the "hosts" file, and you can see the confirmation popup. Tap "Yes."
Confirmation popup

Note: if you are facing the error "Error occurred when trying to save the file. It will not be saved," the follow the below steps:

Error popup

Tap Hamburger icon (three vertical lines) at the top of the ES File Explorer.

Find and hit the "Root Explorer" option. Now, you can save the file without error.

  • angle-double-right
    ​Restart your mobile.

That's all. All done. From now on, the websites you've specified in the "hosts" file will be blocked.

If someone tries to access the blocked website, then they will see the screen like this:

Website is blocked successfully


While testing, I see that this method works perfectly in Chrome and Firefox. The same is the case in their private mode too.

In the UC Browser, this method doesn't work.

​I hope that the information in this guide is useful to you. If it is, share this guide with your friends.

How to Block Websites on Android

Click to Tweet This Post

Also see: