Knowledgebase

How to ban access to certain websites from your computer (Windows)

Reasons for blocking certain websites on computer can be different.

In the office or at work system administrators can prohibit access to social networks or entertaining platforms.

At home parents can also ban popular game services. Moreover, with excluding usage of suspicious websites, you can protect computer from malware.

Simple and fast way to forbid opening website is making changes in hosts file.

For alternation host file you should know its location. In Windows 10, 8, and 7 (as well as in older OSs as XP, 2003, Vista) file HOSTS by default is placed in etc folder on part of the disk with OS, usually it is part C, full path is C:\WINDOWS\system32\drivers\etc

If your system is on the other part of the disk, you should look for file there, for example on D: D:\WINDOWS\system32\drivers\etc.

You can open the hosts file using Notepad in Windows.

In order to ban access to certain site it is necessary:

  1. After the last line 127.0.0.1 localhost create another line with IP address and website address that you plan to ban.
  2. IP may be left as 127.0.0.1 or simply 0.0.0.0
For instance, in host file inscription may be as the following:
0.0.0.0 facebook.com
or
127.0.0.1 facebook.com


Hosts file inside

In attempt to enter this popular network browser will show error of Internet-connection.

Occasionally prohibited websites are opened in browser despite ban is hosts file. In this case just write two lines with websites address with www prefix and without it.

For instance, inscription 127.0.0.1 reddit.com and 127.0.0.1 www.reddit.com will certainly block reddit.com on your computer.
Polina Lisovskaya

I works as a marketing manager for years now and loves searching for interesting topics for you

Recent Posts

Remove Netsmediashub.com Pop-up Ads

About Netsmediashub.com Netsmediashub.com pop-ups can not expose out of nowhere. If you have actually clicked…

10 hours ago

Remove News-bhexusa.xyz Pop-up Ads

About News-bhexusa.xyz News-bhexusa.xyz pop-ups can not open out of nowhere. If you have clicked on…

1 day ago

Remove News-bhupotu.xyz Pop-up Ads

About News-bhupotu.xyz News-bhupotu.xyz pop-ups can not launch out of the blue. If you have clicked…

1 day ago

Remove News-bhocime.info Pop-up Ads

About News-bhocime.info News-bhocime.info pop-ups can not open out of the blue. If you have actually…

1 day ago

Remove You-hub.online Pop-up Ads

About You-hub.online You-hub.online pop-ups can not launch out of nowhere. If you have clicked on…

1 day ago

Remove News-bhecudu.live Pop-up Ads

About News-bhecudu.live News-bhecudu.live pop-ups can not introduce out of the blue. If you have clicked…

1 day ago