For example, to block YouTube, I would enter the following in Terminal: 127. Web Blocker blocks access to any websites that you specific to improve your productivity. Type 127.0.0.1 and the website address you want to block. Use the arrow keys to go to the bottom of the line.Once done, type in the command below and press Return on your keyboard.Note that the cursor will not move from its position as you type your password. ![]() Type in your administrator password and press the Return key.To do this, enter the following line of code into Terminal, and press Return on your keyboard: sudo /bin/cp /etc/hosts /etc/hosts-original This will allow us to restore the original file in case something goes wrong. uBlock Origins extension is available for several of the most widely used browsers, including: Chrome, Chromium, MS Edge, Opera, Firefox and all Safari. Select Open Chrome Web Store at the bottom of the menu slider. Select the Extensions hamburger menu at the top left. We’ll be backing up the hosts file first. To add a Chrome extension, do this: Select the three dot menu icon at the top right of the Chrome window.You can do this by searching for Terminal in Spotlight, or by navigating to Finder > Applications > Utilities > Terminal. To create a block list using a Hosts file, follow the steps below: The advantage of Terminal over Screen Time is that it would be harder for a child to undo these changes if they gained access to your Screen Time passcode. On the other hand, extensions can sometimes stop working or may become outdated over time. An advantage of editing the Hosts file for blocking websites rather than using specific browser plugins or extensions is that this method remains valid across all browsers and does not depend on any third-party plugin.
0 Comments
Leave a Reply. |