Follow these steps:
- Go to C:\Windows\System32\drivers\etc
- Open the file named “hosts” with Notepad
- At the end of the line Add the following line:
- 127.0.0.1 www.facebook.com
- Click save or Ctrl+S
- Now go to www.facebook.com,you will see an error
- Here i have only blocked www.facebook.com ,but you can block multiple sites
- You can add another site on the next line as 127.0.0.1 www.orkut.com
- ie as :
127.0.0.1 www.facebook.com
127.0.0.1 www.orkut.com
127.0.0.1 www.orkut.com
Wow Does it work
When you add www.facebook.com on the hosts file,This will tell
Windows that all domain name resolution requests for www.facebook.com should be
handled by the local machine instead of your configured DNS
How to Unblock these sites
Just delete the sites from the “hosts” file
No comments:
Post a Comment