我正在尝试使用配置/etc/hosts文件阻止站点。
/etc/hosts
sudo sh -c 'echo "0.0.0.0 http://youtube.com" >> /etc/hosts'
但我仍然可以从浏览器访问 youtube。即使我将域更改为127.0.0.1但它也不起作用。
127.0.0.1
hosts etc
etc ×1
hosts ×1