I don't want to add some websites, but Parental Controls always asks permission when browsing them. Are there any solution to fix this issue? How can I just block them? Many thanks.
You can do this with your hosts file, if you are comfortable using terminal
- Open Terminal
sudo nano /etc/hoststhen hit return
- Tap the down arrow to move your cursor below the line that says
- Type in
127.0.0.1and then the address of the site you want to block, making sure to keep a space between the numbers and the address. For example,
127.0.0.1 facebook.comwill block Facebook, or
- You must do this for any name it may resolve to, for example, if it was google, you must to
127.0.0.1 www.google.caand every other resolver:
127.0.0.1 facebook.comwould need to be entered into the hosts file.
- To exit nano, you must press
return / enter
sudo dscacheutil -flushcachedo restart dns services. This will activate your changes.
You could do this at the DNS level instead, resulting in no bypass available unless they have the administrative password. CleanBrowsing is one of many services that allow for blocking at this level. See IP address list and Setup Instructions for more info.
Basically, if the user goes to any site CleanBrowsing deems inappropriate, it will block it, and make it so it will not resolve (identify the domain to the correct IP address) to go to the correct website, and will instead display a page saying that "this address is blocked" or something to that result.
The DNS Addresses are as follows
Blocks access to all adult, pornographic and explicit sites. It also blocks proxy and VPN domains that are used to bypass the filters. Mixed content sites (like Reddit) are also blocked. Google, Bing and Youtube are set to the Safe Mode.
> IPv4 address: 18.104.22.168 and 22.214.171.124 > IPv6 address: 2a0d:2a00:1:: and 2a0d:2a00:2::
Blocks access to all adult, pornographic and explicit sites. It does not block proxy or VPNs, nor mixed-content sites. Sites like Reddit are allowed. Google and Bing are set to the Safe Mode.
> IPv4 address: 126.96.36.199 and 188.8.131.52 > IPv6 address: 2a0d:2a00:1::1 and 2a0d:2a00:2::1
Blocks access to phishing, malware and malicious domains. It does not block adult content.
> IPv4 address: 184.108.40.206 and 220.127.116.11 > IPv6 address: 2a0d:2a00:1::2 and 2a0d:2a00:2::2
Setup for this is as follows:
1. Open System preferences 2. Go to Network > Select the interface being used 3. Click Advanced 4. Click DNS 5. Remove any old listings, as they are likely to be used for resolving first. 6. Press the ``+`` button located in the bottom left, then add the desired servers.
Please note to use the servers listed above, both the IPv4 and IPv6 addresses.