To prevent any clashes, clear your cache by typing sudo dscacheutil -flushcache and press Enter once you’re done.Īdditionally, BlockSite provides these features for Chrome:.Exit the hosts file by pressing CTRL + X.Repeat the process if you want to add more sites.At the bottom of the last line, type in the localhost IP address 127.0.0.1, and after pressing Tab for space, type the domain name of the site you want to block. It should consist of several lines similar to the one on Windows. Enter the administrator password to open your hosts file.Your hosts file will open up in a nano box. In the Terminal command, type sudo nano/etc/hosts.If you have macOS, blocking websites on Chrome through the hosts file has a similar process.įor more information, follow the steps below: Click Apply, and you should have access to edit the hosts file.In the pop-up window that appears, tick the Full Control box under Allow.Click Edit with the shield icon to change file permissions.From there, click Properties -> Security. To change the file permissions of your hosts file in Windows, follow these steps: If your computer restricts you from making the change, you might need to change the file permissions to block sites. Whenever you want to block a website, repeat the process and add new lines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |