Block Website by editing your host file.
In your windows pc there is a host file. Editing that host file you can block a website. host file is located at "C:\Windows\System32\Drivers\etc"
First of all you have to disable all your antivirus programs.Because Antivirus will not give you the permission to edit the host file.
Step 1: Open notepad as Administrator(right click on note pad then run as
administrator)
Step 2: Using Notepad open the host file (C:\Windows\System32\Driver\etc)
Step3: By default your locale host is 127.0.0.1 you have to add one line at the
end of the file. 127.0.0.1 <space> your site
eg. 127.0.0.1 facebook.com
127.0.0.1 youtube.com
step4: Save the file. and the specified site will be blocked.
when you try to connect to your specified site in browser it will redirect it to
when you try to connect to your specified site in browser it will redirect it to
the 127.0.0.1 . :)
Keep on posting..!!
ReplyDelete