小编and*_*ian的帖子

无法通过 /etc/hosts 阻止站点

我正在尝试使用配置/etc/hosts文件阻止站点。

sudo sh -c 'echo "0.0.0.0 http://youtube.com" >> /etc/hosts'
Run Code Online (Sandbox Code Playgroud)

但我仍然可以从浏览器访问 youtube。即使我将域更改为127.0.0.1但它也不起作用。

hosts etc

1
推荐指数
1
解决办法
3081
查看次数

标签 统计

etc ×1

hosts ×1