Editing templateVM /etc/hosts to block website

Hello, I edited the /etc/hosts file in the fedora-39-xfce templateVM.
127.0.0.1 chess.com
127.0.0.1 www.chess.com

Then, when I shut down the templateVM and re-opened it, the /etc/hosts file had been changed.
127.0.0.1 fedora-39-xfce
127.0.0.1 fedora-39-xfce

Why is this happening?

What are some ways of blocking distracting websites in Qubes?

Maybe because 127.0.0.1 is internal communication IP and there is somewhere startup script that ensures /etc/hosts in templates is generic.
If you want to do it for appVM then do it in appVM but in /rw/ and by bind-dir mechanism.

If you want to block sites use sys-firewall or use @solene sys-proxy-out solution

1 Like