You are viewing the article How to Block and Unblock Websites on Mac at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article was co-written by Yaffet Meshesha. Yaffet Meshesha is a computer expert and founder of Techy, a full-service company: home pick-up, repair, and return. With over eight years of experience, Yaffet specializes in computer repair and technical support. Techy has appeared in TechCrunch and Time magazines.
This article has been viewed 10,792 times.
Blocking a website can make you more productive, or restrict children’s access to unhealthy content. You can “blacklist” your website on Mac in several ways. Although the built-in Parental Contrp option is the easiest to use, you will need to edit the hosts file if you want to block the website on an administrator account.
Steps
Enable Parental Controls
- If your child doesn’t have an account, select “create a new account with parental controls” and follow the on-screen instructions.
- If the user cannot be selected, click the lock icon in the corner of the screen and enter the administrator password. [1] X Research Source
- Selecting “Try to limit access to adult websites automatically” will block adult websites from Apple’s default list. You can add or remove websites from this list using the Customize button.
- “Allow access to only these websites” will block all websites except those in the list. Add or remove websites with the + and – buttons.
Block website with hosts file
- This method is not 100% guaranteed and is not too difficult to overcome. But this is a quick way to get a website on a personal computer so as not to affect work productivity. While this is not the only way to block user access, you can combine it with other methods for greater effectiveness.
- In Terminal, enter the command sudo /bin/cp /etc/hosts /etc/hosts-original exactly as it appears.
- Press the Enter button on the keyboard to execute the command.
- Alternatively, you can edit the hosts file in the Terminal window with the command sudo nano -e /etc/hosts .
- If you use the Terminal main window, use the arrow keys to move down to the last line of the page.
- Some users have reported an error, you can only add newlines above the existing text in the hosts file. [4] X Research Sources
- The hosts file only checks for the exact URL you enter. For example, “google.com” only blocks the Google homepage. You can still access google.com/maps, google.com/mail, etc.
- Do not copy-paste from another document because there may be some invisible characters that make the text not work.
- In theory, you can add multiple URLs to a single line (enter the IP address once), up to 255 characters. [5] X Research Sources However, this doesn’t work on all versions of Mac OS X. [6] X Research Sources
- If editing in the main Terminal window, press ctrl + O to save, then press ctrl + X to close the file.
- You can restart your computer instead of clearing the cache. In many cases, the website will be blocked immediately without doing these actions.
- 127.0.0.1 (URL) without “www”
- 127.0.0.1 m.(URL) will block the mobile version of that website.
- 127.0.0.1 login.(URL) or apps.(URL) are some common variations of the homepage. Visit the website and check the address for accuracy.
- fe80::1%lo0 (URL) blocks access to the web over IPv6. Most websites don’t automatically connect via IPv6, but Facebook is an exception.
- If the above doesn’t work, the hosts file is probably not working. Try another method of blocking websites.
- To undo the change and restore from a backup, press the key sudo nano /etc/hosts-original in Terminal. Press ctrl + O , remove “-original” in the name, confirm and save.
Use another method
- Be wary of apps with low rating or few reviewers. Untrusted utilities can install malware on your computer.
- This method only blocks the website on the installed browser.
- Go to System Preferences → Network → WiFi → Advanced → TCP/IP tab (TCP/IP Tab).
- Copy the IP address listed under “Router” and paste it into the browser address bar. You will be redirected to your router’s settings page.
- Enter the username and password to log in to the router. If you haven’t changed the settings, look up the default password for the router by model. (Usually the username is “admin” and the password is “password”)
- Go to your router settings and look for the option to block websites. Each manufacturer has a different menu layout, but you can find it in the “Access” or “Content” categories.
This article was co-written by Yaffet Meshesha. Yaffet Meshesha is a computer expert and founder of Techy, a full-service company: home pick-up, repair, and return. With over eight years of experience, Yaffet specializes in computer repair and technical support. Techy has appeared in TechCrunch and Time magazines.
This article has been viewed 10,792 times.
Blocking a website can make you more productive, or restrict children’s access to unhealthy content. You can “blacklist” your website on Mac in several ways. Although the built-in Parental Contrp option is the easiest to use, you will need to edit the hosts file if you want to block the website on an administrator account.
Thank you for reading this post How to Block and Unblock Websites on Mac at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: