Porn Blocker :How to Block Websites using hosts file 2017

By Admin
Advertisement
Welcome dear in this tutorial you'll know about hosts file which is very useful to do many task like blocking websites,doing some hacking attacks etc but now today i'll teach you only how to block sites using hosts file .Follow Bellow  step  by  step  procedure  to block  certain website .Remember that this tutorial is only for windows user not for android or ios users.

Step :1)    First  of  all   Nevigate to  this  location   C:\Windows\System32\drivers\etc  (  c  is  window  drive )

 

Step:2)  simply  when you  find  above location  simply Open hosts file with any text editor like notepad.it  looking like  bellow  picture.



Step:3)  now after opening the host  file, You'll see these two lines in the file

 1:   127.0.0.1       localhost

 2:   ::1             localhost

Step:4)  Now Now suppose if you want to block some bad site for example www.xyz.com then simply add this site in the end of hosts file and associate it with the local host ip see below example for better understanding.

For example


 1:

 2: 127.0.0.1       localhost

 3: ::1             localhost

 4: 127.0.0.1       www.xyz.com

Step:5)  if  you  want  to  block  many  website simply add them in the end of the hosts file having same ip (127.0.0.1) see below given example:

 1: 127.0.0.1    www.abc.com

 2: 127.0.0.1    abc.com

 3: 127.0.0.1    pqr.com

 4: 127.0.0.1    www.pqr.com

 5: 127.0.0.1    mnr.com

 6: 127.0.0.1    www.mnr.com


If you found this tutorial helpful please dont forget to share it with your friends.