0

Let's use facebook as an example. I can block facebook by modifying a hosts file thusly:

127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 0-edge-chat.facebook.com
127.0.0.1 1-edge-chat.facebook.com
127.0.0.1 2-edge-chat.facebook.com
127.0.0.1 3-edge-chat.facebook.com
127.0.0.1 4-edge-chat.facebook.com
127.0.0.1 5-edge-chat.facebook.com
127.0.0.1 6-edge-chat.facebook.com
127.0.0.1 7-edge-chat.facebook.com
127.0.0.1 8-edge-chat.facebook.com
127.0.0.1 9-edge-chat.facebook.com

The problem is, this doesn't stop push notifications. How do I block those? How can I figure out what domain name they're coming from?

https://superuser.com/a/464126/172193 talks about how to block facebook but not specifically about how to block push notifications from a specific site.

(also, I'm aware that I could block push notifications for given sites via the browser but I'm still curious as to how to do it via the hosts file; should be possible, shouldn't it? it might also be useful if you want to block it at the router or switch level or some such idk)

1
  • 1
    Block notifications (to the extent you can) in the Notifications Window. You must do this when the Notification comes up. It is not a Hosts file issue at all. – John Dec 21 '20 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.