Konfus2234 Asked: 2020-06-06 10:05:26 +0800 CST2020-06-06 10:05:26 +0800 CST 2020-06-06 10:05:26 +0800 CST /etc/hosts block or redirect domain 772 I tried blocking domains like this: 127.0.0.1 https://facebook.com 127.0.0.1 https://www.facebook.com But FB open correctly. How can I block or redirect websites on this file? redirect hosts 1 Answers Voted Jan Hudec 2020-06-06T10:11:23+08:002020-06-06T10:11:23+08:00 /etc/hosts contains hostnames, not URLs. Try 127.0.0.1 facebook.com www.facebook.com
/etc/hosts
contains hostnames, not URLs. Try