I am running Ubuntu 24.04.2 LTS.
I updated the /etc/hosts
file and tried blocking some websites using the 127.0.0.1 websitename.com
and it did not work. I even rebooted the machine and it still did not work.
How do I block specific websites in Ubuntu 24.04?
/etc/hosts
? That should work. Try toping websitename.com
and you will notice that127.0.0.1
is used as the IP address.