Private Relay seems to bypass the host file in Safari

Hello,



I wish to improve my safety while browsing the web and want to block some websites.


Usually I did this via the host file in /private/etc. Sadly this does not work anymore in Safari and it is connected to turning the private relay on or off.

While activated the "blocked" websites are still available in Safari, though they are not ping-able in the terminal.

ping: sendto: Socket is not connected
Request timeout for icmp_seq 0


The same in Google Chrome. Websites are not reachable.

It seems the host file itself works as expected.


Safari however does not care about the host file. It seems "Private Relay" redirects the traffic / uses another DNS for Safari? I am no IT expert so I don't understand it completely.


If I deactivate Private Relay even in Safari the host file is working as expected. But that can't be the way? I want to use the advantages of Private Relay because in my understanding it works like having a vpn service without paying extra(?).


I can't find any solution to this problem, though I can't be the only one having it.


Is there any way to still use Private Relay and have a working host file for Safari?



Thanks for your help


MacBook Air, macOS 15.3

Posted on Feb 13, 2025 2:19 AM

Reply
1 reply

Feb 13, 2025 9:32 AM in response to Innoriam

Innoriam wrote:


Hello,


I wish to improve my safety while browsing the web and want to block some websites.


Is there any way to still use Private Relay and have a working host file for Safari?



to drill down on your issue—


Call Customer Support (800) MY–APPLE (800–692–7753)


or on line https://getsupport.apple.com/


Outside the USA—Contact Apple for support and service by phone

See a list of Apple phone numbers around the world.

Contact Apple for support and service - Apple Support



you can review the following...


Protecting against malware in macOS

Protecting against malware in macOS - Apple Support


Recognize and avoid phishing messages, phony ...

Recognize and avoid social engineering schemes including phishing messages, phony support calls, and other scams - Apple Support


Effective defenses against malware and other threats… - Apple Community

Effective defenses against malware and ot… - Apple Community



Uninstall all third party apps that are Cleaners/Optimizers/Anti-Virus/VPN

all known to cause issues on the macOS





using iCloud Private Relay on Mac - Apple Support try disabling this feature and compare your results...

Use iCloud Private Relay on Mac - Apple Support


Manage iCloud Private Relay for specific websites, networks, or system settings—issues

Manage iCloud Private Relay for specific websites, networks, or system settings - Apple Support



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Private Relay seems to bypass the host file in Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.