Modify Hosts File & Block Websites On Android

As we all know we can block any websites from our computer using windows host files. If we are using wireless router, then also we can blog website using router, so we can prevent our children accessing porn sites from their device. But this is limited to wifi connection only, what if they activate data plan on their mobile and start using such sites? Well, you can edit & modify android host file to block specific websites. You can monitor your child’s activity on android, to check which sites they browsing most often. If you think the sites they are browsing are unsafe for your children, you can block that site using your computer by using following tutorial.

 What is a ‘hosts’ file?

hosts’ file is a plain-text file in an operating system to map hostnames (like to its IP address. Whenever you try to launch a website using its hostname, the operating system will usually search the ‘hosts’ file to find the corresponding IP address first.If the search is successful, then its mapped IP address is used; otherwise a query is sent to DNS (Domain Name Service) to find the IP address of that hostname.

This method uses ‘hosts’ file to block ads. This method blocks all ads in your device, including the ones shown in various apps and games

The methods here may work for both rooted and non-rooted devices. It will be specified for each method. Before we begin, you need a File Manager, eg: ES File Explorer Any other file manager will work fine.Now herer I work with  ES File Explorer 

  • Now Simply install ES File Explorer in Your Android phone .
  •  Open ES File Explorer in your phone
  • Select device / Device directory in your phone.

  • Now you are in the root directory of your phone. Now simply click on the etc folder.

  • Scroll down ,now you find hosts file of your android phone.

  • Click on that and open as text.

  • Choose ES Note Editor.

  • On right above side button click on that and select edit

  •  Now right down  websites ,which one want you block and now save it 

Now you can simply block any websites on your phone ..No one can open fb like websites ..

Also Check 

Get more more interesting article like this
in your inbox

Subscribe to our mailing list and get daily new articles and updates to your email inbox.