如何设置网址黑名单
2019-04-02 本文已影响0人
翻译不了的声响
有时候我们在浏览网站时候,不经意间各种各样的插件就会安装到我们的电脑上,这些插件可能是烦人的广告,也可能是可恶的病毒。我们该如何避免这样的问题呢?除了使用安全卫士或者杀毒软件去拦截,其实还有更简单的方法来屏蔽这些不良的网站。
1. 设置受限站点
在浏览器中设置受限制网址,也就是添加黑名单。
1)IE浏览器在 Windows系统电脑上一般都安装有,找到 Internet Explorer浏览器点击打开;

2)点击 工具 菜单,选择 Internet选项 打开 Internet选项对话框;

3)在 Internet选项对话框中选择 安全,然后再选择 受限站点;

4)点击 受限站点 后,点击 站点 编辑;

5)输入网站地址,然后点击 添加 即可添加到受限站点列表中;

6)添加后的网站可以在下面列表中查找到,如果想要删除列表中的某个网站,选中网站点击 删除;

7)受限站点编辑完毕,点击 确定 保存设置即可。

2. 修改hosts文件
通过修改 hosts系统文件实现对网站的屏蔽。
-
Windows 系统
hosts位置:C:\Windows\System32\drivers\etc\hosts
-
Mac 系统
hosts位置:/etc/hosts
用记事本方式打开hosts
文件,输入127.0.0.1
(回送地址
)后,再空一格输入要屏蔽的网址,保存退出即可。

该方法其实是利用Hosts把该网站的域名映射到错误的IP或本地计算机的IP地址,DNS服务器将无法进行正确解析,从而达到了屏蔽的目的。