I am not affiliated with this app, just found it while looking for a way to block yt links from opening in Safari. It seems to good to be true … free and the privacy label indicates the developer collects no data. It basically can act as a hosts file and it worked when clicking a link. Any stereotypes about it being chinese aside, am I missing anything?

apps dot apple.com/us/app/domain-url-blocker/id1542321296 (“Domain and URL Blocker”)