In my /etc/hosts I have added this line to block the www.bbc.com/persian:
127.0.0.1 www.bbc.com/persian
I am using Firefox on Antix Linux (Debian), and had no success, the site can still be reached just as before. How can I block that page by using /etc/hosts?
/persian. If you don't want to block bbc altogether, then you can't do so with hosts. The hosts file just prevents dns from looking up the root website.. in this case,www.bbc.com– Señor CMasMas May 04 '21 at 20:42bbc.comin thehostsfile as many sites can and do drop thewwwand will work if you blockwww.bbc.com. – Mokubai May 04 '21 at 21:00