AndroidHow ToWindows

How To Block Websites Editing Hosts File (and Extensions)

3 Mins read
How To Block Websites Editing Hosts File
  • Edit hosts file on Windows, Mac.
  • Using ES File Explorer.
  • Browser extensions.

Irritating websites come to you when surfing the web and you should agitate about that. In this tutorial, I am going to give you how you can block websites on your Android devices and computers(PC).

Here, I am going to outline for you, host file(and how to alter it), and a few augmentations for the same.

There may be a few applications accessible out there yet nobody faces challenges installing them. Due to the explanation of the spam stuffed into them.

You may be on the distinctive operating systems and battling similar issues. Also, why not?

The irritating advertisements come in the middle of lessening the user’s insight. Here’s the full guide on this point.

What is Hosts File?


The host records are just an operating system plain content document that maps hostnames and IP Addresses.

It is utilized to automate devices for the purpose of systems administration. At whatever point you attempt to visit or visit a site, it first brings data from has record and afterward proceeds.

Now, blocking works a similar way, if the hostnames are discovered, that page will be gotten to from that IP.

Something else, DNS is answerable for discovering them. Initially, the record name is HOSTS.TXT which contains all the data with respect to the IPs and hostnames.

These can be found in each device like Android, Windows, and so on What’s more, utilizing these no one but we can block any site utilizing them.

Recommended: Best Ways to Download YouTube Videos

What are Extensions?


Extensions might be characterized as a part that draws out or added to something to develop anything.

The expansions additionally accomplish a similar work. Practically all programs come the capacity to add expansions as per the user’s needs.

Much the same as, numerous expansions are accessible to block any site in your programs.

Furthermore, we going to perceive how to use them in our tutorial.

Block Websites In Windows(PC)


Now you what to do? Yet, how to do it, you don’t have the foggiest idea.

We should figure out how to alter the hosts’ documents in Windows. It is much the same as altering a book record, the manner in which we do it regularly.

Follow this step-by-step guide:

  • Navigate to C:\windows\system32\drivers\etc\hosts. Or simply open Run from the start menu(win+R) and type in the same.
    open in run(PC)
c:\windows\system32\drivers\etc\hosts
  • Now it will ask you to select an application to open it, select notepad.
  • The Hosts File is opened successfully. Here you want to make some changes and save it.
  • Scroll down to the bottom and at the end, just add few lines like:
127.0.0.1 www.google.com

edit hosts file(PC)

And all the websites you want to block on your computer (Windows).

Here 127.0.0.1 is the localhost which is the standard hostname given to your device.

Save it. The websites will be blocked and you now cannot access them.

Block Websites In Android(Root)


To do the same in Android, you need a rooted device.

When you have superuser authorizations, you are prepared to fire.

Right off the bat, install ES File Explorer.

You need root access since you need to investigate the root catalog of the Android phone.

You can use whatever other pioneers offer root explorer or default application.

  • Now, launch the explorer and enable Root Explorer from the left hidden menu. Navigate to /system/etc/ folder.
  • Here you will find the host file, open it using the ES Note Editor.
    host file in Android

Do the same thing here also, what you did above. Add the above lines of code (127.0.0.1 www.google.com).

add URLs to block websites on Andrroid

Save it. Try to browse the website you just blocked, you will not be able to access it.

For Browsers(Blocking Websites In Chrome, Mozilla, etc)


There are several extensions, the one I am going to use is BlockSite.

To include this extension, head towards the Google application store or Mozilla application store by just looking on Google.

Once in the store, look for Block Site and install(add) the first module with higher evaluations.

The connection is given above, you can go straightforwardly for Chrome users.

  • From the correct upper-right corner, click the extension, and once you on the site to block. Tap Block Site.
    block site extension

It’s totally done.

So this way you can without much of a stretch block websites by altering the host’s record and utilizing extensions.

This may likewise get you freed of irritating advertisements that continued coming in front. Expectation you like the tutorial, stay tuned for additional.

Do share it.

385 posts

About author
Howdy, I’m Varun Sharma. I’m an Engineer & Geek. I am a fan of technology, programming, and entrepreneurship. Also, an artist & full entertainer dose by nature.
Articles
Related posts
How ToiPhone

How to Turn Off Contact Sharing in iOS 17

5 Mins read
With the advent of iOS 17, Apple has once again pushed the boundaries of what’s possible with smartphone technology. By introducing contact…
How ToiPhone

How to Enable Contact Sharing in iOS 17

5 Mins read
In the latest iteration of Apple’s mobile operating system, iOS 17, a standout feature named NameDrop. It uses AirDrop and revolutionizes the…
How ToiPhone

How to Setup Call Forwarding on iPhone

2 Mins read
In today’s fast-paced world, managing communication effectively is crucial. However, there are times when you need uninterrupted focus or simply want to…
Intel Newsletter

Get the latest how-to guides, tips and tricks in your inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *

×
Tips & TricksWindows

3 Ways To Hide Files and Folders in Windows