Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CASMAS

macrumors regular
Original poster
Jan 9, 2022
108
24
Well, I tried many methods but none of them are working so far.

1. Terminal works but some websites didn't work on Safari while it worked on Chrome which defeats its purpose.
2. Couldn't find any 3rd party to use and some of them asked me to pay monthly which I don't want to.
3. Screen Time works only on Safari and it randomly blocks unrelated websites which is very difficult to use.
4. Using Private Relay bypass restrictions especially Terminal codes.

Any idea how to block specific websites despite the different IP address on both Safari and Chrome?
 

Harmush

macrumors 6502a
Sep 21, 2008
557
3
Liverpool
Well, I tried many methods but none of them are working so far.

1. Terminal works but some websites didn't work on Safari while it worked on Chrome which defeats its purpose.
2. Couldn't find any 3rd party to use and some of them asked me to pay monthly which I don't want to.
3. Screen Time works only on Safari and it randomly blocks unrelated websites which is very difficult to use.
4. Using Private Relay bypass restrictions especially Terminal codes.

Any idea how to block specific websites despite the different IP address on both Safari and Chrome?
If I understand correctly, you want to completely block all ability to get to a given website. I'd do it on your network firewall or DNS, if possible... but if you must do it on the machine, maybe read out the '/etc/hosts' file or something(?) if you don't want to use a 3rd party app to do it (many exist).

It's probably working some of the times and not others because a lot websites will resolve to more than one IP address. IP addresses also change now and again.
 

chscag

macrumors 601
Feb 17, 2008
4,622
1,946
Fort Worth, Texas
Check your router firmware menu options. Some ISP supplied routers allow for specific web site blocking. If you own your own router check its manual to see if it allows for web site blocking in its firmware menu setup.

Or as suggested above go the DNS route. OpenDNS and several others allow for specific web site blocking. I do not recommend editing the "etc hosts" file as that can lead to unintentional errors.
 
  • Like
Reactions: Kenny99

gilby101

macrumors 68030
Mar 17, 2010
2,921
1,616
Tasmania
Most (all?) adblockers allow you to add your own rules. That might be the easiest way. Otherwise, as already said, fall back to a DNS with restrictions or modify /etc/hosts.

What is common to all those methods is that it is the URL (the web site name part) which is being blocked, not the IP address.
 

BrianBaughn

macrumors G3
Feb 13, 2011
9,822
2,494
Baltimore, Maryland
Block the site on just one computer and for all users?

The DD-WRT firmware on my Linksys router allows for website blocking (and key word blocking) for everything coming into the house…although I imagine a VPN would bypass this.
 
  • Like
Reactions: chscag
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.