CALL US

+91 8219776763

How to block any website | Cyberops

How to block any website

By Prempal Singh 0 Comment August 19, 2016

toblockwebsite

Sometimes we require to restrict websites in computer system to limit access.

Sites can be blacklisted for variable reasons:

  • We can prevent sites with KNOWN malware on them, to protect our staff and students from having their personal details stolen or can infect the entire network and systems connected to them, which in return will create expense to the school and loss of learning resources.
  • These steps are vital for schools to restrict limited access to websites.
  • Some websites could be trying to steal your personal data.

There are different ways to visit blocking websites below mentioned procedure will take you through steps required in choosing to block websites on the complete operating system.

Your laptop or computer has HOSTS data file which can get this information stored locally. This is often used to disable entry to unwanted websites. We checked out this method on windows 7/8/10.

Make sure that you have administrator access on your computer.

Step 1: Sign in your computer and locate the file
C:\Windows\System32\drivers\etc\

Step 2: Open with notepad the HOSTS file.

host file screenshot

The last two lines are
#     127.0.0.1    localhost
#     127.0.0.1    localhost

Step 3: Add 127.0.0.2 www.websitename.com and save the file.

hostsfile1

NOTE: While you are saving this file, system generate error.

host error

Now Main question is that how to save that file if you have administrative access. So just follow these steps:

Start >> cmd >> Right Click >> Run as Administrator

now type below command for edit notepad host file.

notepad c:\Windows\System32\drivers\etc\hosts

host edit

Now you can easily edit hosts file and block any website.

If you want to add more website in block zone, then just add 1 number for example

#  127.0.0.3 www.websitename1.com

#  127.0.0.4 www.websitename2.com

This also works for classified sites, banner sites, administrative site. Just find host name of website and you can block any websites.

I hope now you are able to block websites on your system. So just waiting for my new post that how to block website on same network.

Subscribe us for more updates….!!

error: Content is protected by Cyberops !!