Here are 4 Ways To Block Websites on Android

A few days back we discussed several ways to block porn on your Android. But sometimes, you want to block offending website showing inappropriate content, adult ads, pop-up ads, video ads, privacy issues, infected pages, etc.

In those situations, will it not be easy and safe to just block that website? So, if you want to block regular websites in Android, look no further, here are some of the best ways you can block any website of your choice with just a few taps.

Related: See what other people are browsing on your network

How to Block Websites on Android

1. Using Host File Method

One of the easiest ways to block a website on Android is to modify the hosts file and point the website address to the localhost IP address. However, unless your device is rooted, you cannot access or modify the Android hosts file. That being said, there are apps like DNS66 which creates a local VPN with its own hosts file and redirects all the traffic through it.

We can make use of this and block any website you want. To start off, download and install DNS66 from F-Droid. The reason DNS66 is not available on Play Store because it contains files that can block ads.

Once installed, open the app, navigate to “Hosts” tab and tap on the floating “Add” icon appearing in the bottom right corner.

Now, enter the name, website address, select “Deny” and tap on the “Save” icon (checkmark) to save the changes.

This is how it looks like in the Hosts tab once the website has been added.

Now, navigate to the “Start” tab and tap on the “Start” button.

In case you receive a message something like this, tap on “No” and then tap on the “Reload” icon appearing in the upper right corner of the Start tab. This action will update all the internal hosts files.

After updating, try tapping on the Start button again. You should see a “Connection Request” message. Tap on the “Yes” button to continue.

That’s it. From this point forward, no one can access the added website as long as DNS66 is running. For better reliability, toggle “Watch Connection” option in the Start tab. This ensures that the connection and VPN are alive and working.

If you don’t want others accessing and changing DNS66 settings, you can hide or lock the app using any of the apps available on Play Store.

2. Using A Dedicated Browser

Alternatively, you can also block websites using a browser. If you just want to block adult and pornographic websites then you can use a browser like Safe Browser. To block a specific website, you can use the good old Firefox web browser for Android.

Now, Firefox for Android doesn’t support blocking websites by default. But, you can install an add-on to block the website of your choice. To get started, download and install Firefox if you haven’t already.

Once installed, type “about:addons” in the address bar and tap on the “Go” button. Alternatively, you can also open the addons page by navigating to “Tools > Add-ons.”

Once you are in the addons page, tap on the “Browse all Firefox Add-ons” option.

Here, search for “BlockSite” add-on, open it, and tap on the “Add to Firefox” button. Firefox will ask for your confirmation to install the add-on. Simply tap on the “Yes” button to continue.

Now, go back to the Add-ons page within Firefox and select the newly installed “BlockSite” add-on. Tap on the “Options” button to set up the add-on to block the website you want.

Here, enter the URL you want to block in the “Type Site to Block” and tap on the “Add Page” button. For demonstration purposes, I’ve blocked the example.com.

If you want to, you can set a custom redirect page. Just tap on the website URL you just added and enter the redirect URL in the “Default Redirect To” field and tap on the “Set” button.

That’s it. From this point forward, the user cannot access the website you just added to the Firefox browser.

Do play with different options within the add-on as it even lets you set a schedule to block and unblock the websites automatically. If need be, you can also password protect the add-on settings to deter any unauthorized changes.

3. Using Firewall

The other way to block any website of your choice in Android is to use a firewall. The good thing about using a firewall app is that it also allows you to control which apps can and cannot access the internet. In fact, you can even configure the app to only allow apps to connect to the internet via WiFi and/or mobile data connection.

To start off, download and install NoRoot Firewall app from the Play Store. Once installed, open the app and navigate to the “Global Filters” tab. The tab is almost at the end so, don’t freak out if you cannot see the tab right away.

Once you are on the Global Filters tab, tap on the option “New Pre-Filter.”

Now, enter the domain name with HTTP or HTTPS in front of the domain name in the “Address” field, select “*” from the drop-down menu in the Port field. Tap on the checkboxes next to the WiFi icon and the data signal icon until you see the red cross marks. Tap on the “Ok” button to save the changes.

This is how it looks like once you’ve set a filter to block a website.

Now, go back to the main “Home” tab and tap on the Start button.

That’s it. From this point forward you or any app installed on your device cannot access the website you blocked using NoRoot Firewall.

4. Using Anti-virus App

You can also block any website of your choice and even filter categories of website related to gambling, pornography, adult content, etc., using the Trend Micro antivirus app. Apart from that, Trend Micro also gives you powerful parental control options to manage access to your device.

If you are looking for an app that not only blocks selective and harmful websites but allows you to properly manage your device with good parental controls then you have to try Trend Micro. However, the app is subscription based. There is a free seven-day trial to try the app. So, follow the below guide and try the app and see if it fits your needs.

To start off, download and install Trend Micro’s Mobile Security & Antivirus app from the Play Store.

Open the app and tap on the option “Parental Controls.”

Now, tap on the warning message and provide the permissions the app asks for. These permissions are required for the app to work properly.

You will be prompted to sign in to the Trend Micro account. It is also required to use parental control options. Tap on the “Sign in now” button.

Follow the on-screen instructions to complete the signup process.

Once you are done with that, navigate to “Website Filter” tab within the Parental Controls and toggle the button next to “Website Filter.”

Now, tap on the “Blocked List” option.

Next, enter the name and the URL of the website you want to block and tap on the “Add” button.

That’s all there is to do. From this point forward, the website is not accessible on your device. When you want to change or remove the website from parental controls section, you will be prompted for your account password. Without the password, you cannot edit the filter link.

Being a powerful app, do play with different options as it also allows you to put network restrictions, app locks, etc.

That’s all for now and hope that helps. Comment below sharing your thoughts and experiences about using the above apps to block websites on Android.

About Vamsi Krishna

Vamsi is a tech geek who enjoys writing how-to guides and tinkering with computers and software in general. He especially loves using Windows and writing about it. You can check out his Windows guides at WindowsLoop.