To block a website, we need to simply map a domain name or URL of that website to our localhost (127.0.0.1).
On Windows The host file is located here C:\Windows\System32\Drivers\etc\hosts
You just need to add a new line with the localhost address to the domain name that you want to block.
Let’s say you wish to block facebook.com, so you need to add this line at the end of the file.
127.0.0.1 www.facebook.com
To automate this task, you can download
SysMate – Host File Walker helps you edit, backup, restore and delete the Windows Hosts file.
0 comments:
Post a Comment