怎么在电脑上屏蔽网站

这篇文章将教你如何在电脑上的所有浏览器中屏蔽掉某个网站,以及如何在谷歌Chrome和火狐浏览器中屏蔽网站。你无法使用IE浏览器、微软Edge浏览器或Safari浏览器设置来屏蔽网站,这种多个浏览器的屏蔽方法迟早能够派上用场。

方法 1 的 4:

在Windows电脑上

  1. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/bd\/Block-a-Website-on-Your-Computer-Step-1-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-1-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/bd\/Block-a-Website-on-Your-Computer-Step-1-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-1-Version-5.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 1 打开开始{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/0\/07\/Windowsstart.png","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/07\/Windowsstart.png\/30px-Windowsstart.png","smallWidth":460,"smallHeight":460,"bigWidth":30,"bigHeight":30,"licensing":"<div class=\"mw-parser-output\"><\/div>"}菜单。点击屏幕左下角的Windows徽标。
  2. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/8a\/Block-a-Website-on-Your-Computer-Step-2-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-2-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/8a\/Block-a-Website-on-Your-Computer-Step-2-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-2-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 2 输入记事本在电脑上搜索记事本程序。
  3. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/2\/29\/Block-a-Website-on-Your-Computer-Step-3-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-3-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/2\/29\/Block-a-Website-on-Your-Computer-Step-3-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-3-Version-5.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":544,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 3 在管理员模式中打开记事本。右键点击开始窗口顶部的记事本,点击下拉菜单里的以管理员身份运行。弹出提示时,点击确定按钮。打开记事本窗口。
    • 如果鼠标没有右键,请点击鼠标右侧,或者用两个手指点击鼠标。
    • 如果计算机没有鼠标,而只有触控板,请使用两个手指点击触控板或按下触控板的右下方。
  4. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/be\/Block-a-Website-on-Your-Computer-Step-4-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-4-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/be\/Block-a-Website-on-Your-Computer-Step-4-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-4-Version-5.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 4 点击文件它位于窗口左上角,此时会出现一个下拉菜单。
  5. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/4e\/Block-a-Website-on-Your-Computer-Step-5-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-5-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/4e\/Block-a-Website-on-Your-Computer-Step-5-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-5-Version-5.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 5 点击打开…这个选项位于文件下拉菜单的顶部,点击它打开“文件资源管理器”。
  6. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/7\/7b\/Block-a-Website-on-Your-Computer-Step-6-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-6-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/7\/7b\/Block-a-Website-on-Your-Computer-Step-6-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-6-Version-5.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 6 打开“etc”文件夹。具体操作是:
    • 点击文件资源窗口左侧的此电脑
    • 向下滚动窗口,双击窗口中部的硬盘驱动名称(通常是OS (C:))。
    • 双击“窗口”文件夹。
    • 向下滚动,双击“System32”文件夹。
    • 向下滚动,双击“驱动器”文件夹。
    • 双击“etc”文件夹。
  7. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/49\/Block-a-Website-on-Your-Computer-Step-7-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-7-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/49\/Block-a-Website-on-Your-Computer-Step-7-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-7-Version-5.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 7 点击“文本文档”(*.txt)对话框。 它位于窗口右下方,接着出现下拉菜单。
  8. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/db\/Block-a-Website-on-Your-Computer-Step-8-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-8-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/db\/Block-a-Website-on-Your-Computer-Step-8-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-8-Version-5.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 8 点击所有文件这个选项位于下拉菜单中。主窗口中出现多个文件。
  9. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/5\/58\/Block-a-Website-on-Your-Computer-Step-9-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-9-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/5\/58\/Block-a-Website-on-Your-Computer-Step-9-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-9-Version-5.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 9 移除“hosts”文件的安全保护。在记事本窗口中,找到“hosts”文件,然后:
    • 右键点击“hosts”文件。
    • 点击下拉菜单中的属性选项。
    • 点击安全选项卡。
    • 点击编辑
    • 勾选“完全控制”对话框。
    • 点击确定,然后点击提示窗口里的确定
    • 点击确定
  10. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/b9\/Block-a-Website-on-Your-Computer-Step-10-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-10-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/b9\/Block-a-Website-on-Your-Computer-Step-10-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-10-Version-5.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 10 选择“hosts”文件。点击“hosts”文件来选择它。
  11. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/c\/ca\/Block-a-Website-on-Your-Computer-Step-11-Version-5.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-11-Version-5.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/c\/ca\/Block-a-Website-on-Your-Computer-Step-11-Version-5.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-11-Version-5.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 11 点击打开它位于窗口右下角,接着在记事本中打开“hosts”文件。
  12. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/dd\/Block-a-Website-on-Your-Computer-Step-12-Version-4.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-12-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/dd\/Block-a-Website-on-Your-Computer-Step-12-Version-4.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-12-Version-4.jpg","smallWidth":460,"smallHeight":348,"bigWidth":728,"bigHeight":551,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 12 在文档底部创建新的一行。点击页面最后一行的末尾,按下回车键
  13. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/b1\/Block-a-Website-on-Your-Computer-Step-13-Version-4.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-13-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/b1\/Block-a-Website-on-Your-Computer-Step-13-Version-4.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-13-Version-4.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 13 向屏蔽列表中添加网站。如果要在电脑的浏览器中屏蔽某个网站,请按以下步骤进行操作:
    • 输入127.0.0.1,按下Tab
    • 输入网站网址,不用包括“www.”部分(如:“facebook.com”)。
    • 按下回车键开始新的一行,然后重复上面两步添加其它地址。
  14. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/9f\/Block-a-Website-on-Your-Computer-Step-14-Version-4.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-14-Version-4.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/9f\/Block-a-Website-on-Your-Computer-Step-14-Version-4.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-14-Version-4.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 14 使用这个方法屏蔽谷歌Chrome网址。当你使用上面的方法在大多数浏览器中屏蔽网站时,谷歌Chrome浏览器有所不同。如果想在谷歌Chrome浏览器上屏蔽网址,需要加一个空格,然后在“[site].com”部分后面输入“www.[site].com”。
    • 如果想要屏蔽Facebook,可以输入127.0.0.1 facebook.com www.facebook.com
    • 添加网址的 “http://”或“https://” 部分 ,(如:127.0.0.1 facebook.com https://www.facebook.com),可以提高拦截网址的机会。
  15. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/da\/Block-a-Website-on-Your-Computer-Step-15-Version-2.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-15-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/da\/Block-a-Website-on-Your-Computer-Step-15-Version-2.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-15-Version-2.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":547,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 15 尝试拦截网址的其它版本。
    • IP地址 — 你可以查找网站的IP地址,然后在”hosts“文件中拦截它,以防止其他人通过这个IP地址来访问网站。
    • 移动网站 — 在网址的前面加上“m.”,如:“m.facebook.com”来代替“facebook.com”),你可以拦截移动版本的网址。
  16. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/82\/Block-a-Website-on-Your-Computer-Step-16-Version-2.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-16-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/82\/Block-a-Website-on-Your-Computer-Step-16-Version-2.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-16-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 16 用编辑好的“hosts”文件代替现有的文件。具体操作是:
    • 点击记事本左上角的文件按钮。
    • 点击下拉菜单里的另存为...
    • 点击“另存为类型”下拉框,然后点击下拉菜单里的所有文件
    • 点击主窗口里的“hosts”文件,将它选中。
    • 点击保存,然后点击确定
  17. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/7\/78\/Block-a-Website-on-Your-Computer-Step-17-Version-3.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-17-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/7\/78\/Block-a-Website-on-Your-Computer-Step-17-Version-3.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-17-Version-3.jpg","smallWidth":460,"smallHeight":348,"bigWidth":728,"bigHeight":550,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 17 清理计算机的DNS缓存你可以使用命令提示符进行此项操作。清理DNS缓存可以阻止保存的浏览器信息与拦截的网址设置出现冲突。
  18. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/dc\/Block-a-Website-on-Your-Computer-Step-18-Version-3.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-18-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/dc\/Block-a-Website-on-Your-Computer-Step-18-Version-3.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-18-Version-3.jpg","smallWidth":460,"smallHeight":342,"bigWidth":728,"bigHeight":542,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 18 重启所有浏览器。如果打开了网络浏览器,请将它们关闭,然后重启浏览器。添加到“hosts”文件里的网址应该会被浏览器屏蔽。
    • 如果重启浏览器后,发现这些网址还是没有被屏蔽,请尝试重启电脑。
方法 2 的 4:

在Mac电脑上

  1. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/81\/Block-a-Website-on-Your-Computer-Step-19-Version-3.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-19-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/81\/Block-a-Website-on-Your-Computer-Step-19-Version-3.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-19-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 1 打开Spotlight {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/e\/ea\/Macspotlight.png","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/e\/ea\/Macspotlight.png\/30px-Macspotlight.png","smallWidth":460,"smallHeight":460,"bigWidth":30,"bigHeight":30,"licensing":"<div class=\"mw-parser-output\"><\/div>"}点击屏幕右上角的放大镜图标,接着出现一个文本框。
  2. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/c\/ce\/Block-a-Website-on-Your-Computer-Step-20-Version-3.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-20-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/c\/ce\/Block-a-Website-on-Your-Computer-Step-20-Version-3.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-20-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 2 在搜索框里输入terminal这会在电脑上搜索终端应用程序。
  3. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/5\/52\/Block-a-Website-on-Your-Computer-Step-21-Version-3.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-21-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/5\/52\/Block-a-Website-on-Your-Computer-Step-21-Version-3.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-21-Version-3.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 3 双击{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/1\/14\/Macterminal.png","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/1\/14\/Macterminal.png\/30px-Macterminal.png","smallWidth":460,"smallHeight":460,"bigWidth":30,"bigHeight":30,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 终端。它应该出现在搜索结果的最上面。点击它打开终端应用程序。
  4. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/09\/Block-a-Website-on-Your-Computer-Step-22-Version-3.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-22-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/09\/Block-a-Website-on-Your-Computer-Step-22-Version-3.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-22-Version-3.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":544,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 4 打开“hosts”文件,输入sudo nano /etc/hosts,按下返回键。
  5. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/9e\/Block-a-Website-on-Your-Computer-Step-23-Version-3.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-23-Version-3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/9e\/Block-a-Website-on-Your-Computer-Step-23-Version-3.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-23-Version-3.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 5 输入电脑密码。输入登录密码,按下返回键。打开“hosts”文件。
    • 终端程序不会显示你输入的密码字符。
  6. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/93\/Block-a-Website-on-Your-Computer-Step-24-Version-2.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-24-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/93\/Block-a-Website-on-Your-Computer-Step-24-Version-2.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-24-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 6 将闪烁的光标移动到页面底部。按下Down键,直到光标出现在页面文本的最后一行,然后按下返回键。
  7. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/6\/62\/Block-a-Website-on-Your-Computer-Step-25-Version-2.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-25-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/6\/62\/Block-a-Website-on-Your-Computer-Step-25-Version-2.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-25-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 7 将网站添加到屏蔽列表。具体操作是:
    • 输入127.0.0.1,按下Tab键。
    • 输入网站网址,不要包含“www.”部分(如:“facebook.com”)。
    • 按下返回键开始新的一行,然后重复上面两步添加其它地址。
  8. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/4d\/Block-a-Website-on-Your-Computer-Step-26-Version-2.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-26-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/4d\/Block-a-Website-on-Your-Computer-Step-26-Version-2.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-26-Version-2.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":548,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 8 使用这个方法屏蔽谷歌Chrome网址。你可以按照上面的方法在大多数浏览器中屏蔽网站,但谷歌Chrome浏览器略有不同。如果想在谷歌Chrome浏览器上屏蔽网址,需要加一个空格,然后在“[site].com”部分后面输入“www.[site].com”。
    • 如果想要屏蔽Facebook,可以输入127.0.0.1 facebook.com www.facebook.com
    • 添加网址的 “http://”或“https://” 部分, 如:127.0.0.1 facebook.com https://www.facebook.com),可以提高拦截网址的机会。
  9. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/e\/ea\/Block-a-Website-on-Your-Computer-Step-27-Version-2.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-27-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/e\/ea\/Block-a-Website-on-Your-Computer-Step-27-Version-2.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-27-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 9 尝试拦截网址的其它版本。
    • IP地址 — 你可以查找网站的IP地址,然后在”hosts“文件中拦截它,以防止其他人通过这个IP地址访问网站。
    • 移动网站 — 在网址的前面加上“m.”,如:“m.facebook.com”来代替“facebook.com”),你可以拦截移动版本的网址。
  10. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/e\/e9\/Block-a-Website-on-Your-Computer-Step-28.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-28.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/e\/e9\/Block-a-Website-on-Your-Computer-Step-28.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-28.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 10 保存并退出编辑器。输入你想要屏蔽的网站,按下Control+O组合键,然后按下返回键,保存并退出编辑器。
    • 按下Control+X,退出“hosts”文件。
  11. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0e\/Block-a-Website-on-Your-Computer-Step-29.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-29.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0e\/Block-a-Website-on-Your-Computer-Step-29.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-29.jpg","smallWidth":460,"smallHeight":347,"bigWidth":728,"bigHeight":549,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 11 清理电脑的DNS缓存。输入sudo killall -HUP mDNSResponder,按下返回键。这个命令会清理Mac电脑的DNS缓存,确保抹除所有网站之前的数据(如:保存的密码)。此时,你列出的网站应该会被计算机的所有浏览器屏蔽。
    • 如果电脑浏览器无法屏蔽网站,请重启电脑完成更改。
方法 3 的 4:

在谷歌Chrome浏览器

  1. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/3\/3f\/Block-a-Website-on-Your-Computer-Step-30.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-30.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/3\/3f\/Block-a-Website-on-Your-Computer-Step-30.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-30.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 1 打开Block Site(网站屏蔽)页面。你可以从这个页面安装“Block Site”(网站屏蔽)。
    • “Block Site”(网站屏蔽)程序允许你屏蔽单个页面或整个网站。你还可以设置密码,这样其他用户将无法更改屏蔽列表。
  2. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/2\/2a\/Block-a-Website-on-Your-Computer-Step-31.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-31.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/2\/2a\/Block-a-Website-on-Your-Computer-Step-31.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-31.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 2 点击添加CHROME它位于页面的右上角,是一个蓝色的按钮。
  3. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0d\/Block-a-Website-on-Your-Computer-Step-32.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-32.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0d\/Block-a-Website-on-Your-Computer-Step-32.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-32.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":547,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 3 弹出提示时,点击添加扩展程序这个选项出现在页面的顶部。点击它之后,系统会提示你安装Block Site。
  4. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/d2\/Block-a-Website-on-Your-Computer-Step-33.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-33.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/d2\/Block-a-Website-on-Your-Computer-Step-33.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-33.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 4 点击“Block Site”图标。它位于Chrome页面的右上角,是一个屏障图标。接着出现下拉菜单。
  5. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/ba\/Block-a-Website-on-Your-Computer-Step-34.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-34.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/ba\/Block-a-Website-on-Your-Computer-Step-34.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-34.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 5 点击编辑屏蔽网站列表它位于下拉菜单中。点击它打开屏蔽网站页面。
    • 如果想要打开屏蔽网站页面,可以点击下拉菜单右上角的齿轮状图标。
  6. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/2\/2d\/Block-a-Website-on-Your-Computer-Step-35.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-35.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/2\/2d\/Block-a-Website-on-Your-Computer-Step-35.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-35.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":547,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 6 输入网站网址。点击页面顶部的“输入网站网址”文本框,然后输入你想要屏蔽的网站网址。
    • 如果你想要屏蔽网站上某个页面,请前往目标页面,然后点击窗口顶部的地址栏,按下Ctrl+C(Windows系统)或Command+C(Mac电脑),复制地址。
  7. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0d\/Block-a-Website-on-Your-Computer-Step-36.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-36.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0d\/Block-a-Website-on-Your-Computer-Step-36.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-36.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 7 点击按钮。它位于网站文本栏的右侧。你的网站会自动添加到屏蔽列表。
    • 你可以点击列表中网站URL地址右侧的红色圆圈图标,删掉列表中的网站。
  8. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/94\/Block-a-Website-on-Your-Computer-Step-37.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-37.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/94\/Block-a-Website-on-Your-Computer-Step-37.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-37.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 8 点击密码保护这个选项卡位于页面的左侧。
  9. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0b\/Block-a-Website-on-Your-Computer-Step-38.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-38.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0b\/Block-a-Website-on-Your-Computer-Step-38.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-38.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 9 勾选“需要密码访问拦截网站菜单”对话框。接着在页面底部创建密码文本框。
    • 如果你想用密码访问这些被屏蔽的网站,请勾选“启用密码访问被屏蔽的页面”对话框。
  10. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/dc\/Block-a-Website-on-Your-Computer-Step-39.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-39.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/dc\/Block-a-Website-on-Your-Computer-Step-39.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-39.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":548,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 10 向下滚动页面,输入密码。在页面底部的文本框里输入密码(至少5个字符)。
  11. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/b\/b1\/Block-a-Website-on-Your-Computer-Step-40.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-40.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/b\/b1\/Block-a-Website-on-Your-Computer-Step-40.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-40.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":548,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 11 点击设置密码它位于密码文本框的右侧,点击它创建密码,应用到“Block Site”程序。
    • 在以后访问“Block Site”时,需要输入密码才能添加和移除网站。
    • 如果忘记密码,请右键点击程序图标,点击从Chrome移除密码
  12. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/e\/e9\/Block-a-Website-on-Your-Computer-Step-41.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-41.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/e\/e9\/Block-a-Website-on-Your-Computer-Step-41.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-41.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 12 在隐身模式中允许“Block Site”。有些人会使用隐身模式来绕过“Block Site”的限制,你可以在隐身模式中启用“Block Site”来修复这个问题:
    • 点击
    • 选择更多工具
    • 点击扩展程序
    • 点击“Block Site”标题下方的细节
    • 点击灰色的“允许隐身模式”开关{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/d\/d5\/Android7switchoff.png","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/d5\/Android7switchoff.png\/35px-Android7switchoff.png","smallWidth":460,"smallHeight":394,"bigWidth":35,"bigHeight":30,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
方法 4 的 4:

在火狐浏览器

  1. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/6\/60\/Block-a-Website-on-Your-Computer-Step-42.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-42.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/6\/60\/Block-a-Website-on-Your-Computer-Step-42.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-42.jpg","smallWidth":460,"smallHeight":348,"bigWidth":728,"bigHeight":551,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 1 打开火狐浏览器。它的图标是一个橙色的狐狸,外面围绕着一个蓝色的球。
  2. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/3\/3e\/Block-a-Website-on-Your-Computer-Step-43.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-43.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/3\/3e\/Block-a-Website-on-Your-Computer-Step-43.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-43.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 2 打开Block Site 页面。你可以从这里下载“Block Site”。
  3. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/7\/75\/Block-a-Website-on-Your-Computer-Step-44.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-44.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/7\/75\/Block-a-Website-on-Your-Computer-Step-44.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-44.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":544,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 3 点击+ 添加到火狐这个蓝色的按钮位于页面的中央,你可能需要滑动页面才能看到它。
  4. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/e\/eb\/Block-a-Website-on-Your-Computer-Step-45.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-45.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/e\/eb\/Block-a-Website-on-Your-Computer-Step-45.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-45.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 4 弹出提示时,点击添加它也位于窗口的顶部。接着在火狐浏览器中安装“Block Site”。
  5. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/6\/67\/Block-a-Website-on-Your-Computer-Step-46.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-46.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/6\/67\/Block-a-Website-on-Your-Computer-Step-46.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-46.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 5 点击Block Site程序图标。它是一个橙色的盾牌图标,位于窗口的右上角。接着会出现一个下拉菜单。
    • 你也可以在进行下一步之前点击下拉菜单中的获取它
  6. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/48\/Block-a-Website-on-Your-Computer-Step-47.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-47.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/48\/Block-a-Website-on-Your-Computer-Step-47.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-47.jpg","smallWidth":460,"smallHeight":344,"bigWidth":728,"bigHeight":545,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 6 点击编辑屏蔽网站列表它位于下拉菜单中,点击它打开“Block Site”页面。
    • 你也可以点击下拉菜单右上角的齿轮状图标,打开“Block Site”页面。
  7. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/4c\/Block-a-Website-on-Your-Computer-Step-48.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-48.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/4c\/Block-a-Website-on-Your-Computer-Step-48.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-48.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":547,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 7 输入网站网址。点击页面顶部的“输入网址”文本框,输入你想要屏蔽的网址。
    • 如果你想要屏蔽网站上某个页面,请前往目标页面,然后点击窗口顶部的地址栏,按下Ctrl+C(Windows系统)或Command+C(Mac电脑),复制地址。
  8. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/f\/fb\/Block-a-Website-on-Your-Computer-Step-49.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-49.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/f\/fb\/Block-a-Website-on-Your-Computer-Step-49.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-49.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 8 点击它位于网站文本栏的右侧。点击它,你的网站会自动添加到屏蔽列表中。
    • 你可以点击列表中网站URL地址右侧的红色圆圈图标,移除列表中的网站。
  9. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/a\/ad\/Block-a-Website-on-Your-Computer-Step-50.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-50.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/ad\/Block-a-Website-on-Your-Computer-Step-50.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-50.jpg","smallWidth":460,"smallHeight":343,"bigWidth":728,"bigHeight":543,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 9 点击密码保护这个选项卡位于页面的左侧。
  10. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/2\/28\/Block-a-Website-on-Your-Computer-Step-51.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-51.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/2\/28\/Block-a-Website-on-Your-Computer-Step-51.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-51.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 10 勾选“需要密码访问拦截网站菜单”对话框。接着页面底部会出现密码文本框。
    • 如果你想用密码访问这些被屏蔽的网站,请勾选“启用密码访问被屏蔽的页面”对话框。
  11. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/a\/a5\/Block-a-Website-on-Your-Computer-Step-52.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-52.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/a5\/Block-a-Website-on-Your-Computer-Step-52.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-52.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":548,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 11 滚动页面,输入密码。在页面底部的文本框输入至少5个字符。
  12. {"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/5\/50\/Block-a-Website-on-Your-Computer-Step-53.jpg\/v4-460px-Block-a-Website-on-Your-Computer-Step-53.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/5\/50\/Block-a-Website-on-Your-Computer-Step-53.jpg\/v4-728px-Block-a-Website-on-Your-Computer-Step-53.jpg","smallWidth":460,"smallHeight":346,"bigWidth":728,"bigHeight":548,"licensing":"<div class=\"mw-parser-output\"><\/div>"} 12 点击设置密码它位于密码文本框的右侧,点击它创建密码,应用到“Block Site”。
    • 在以后访问“Block Site”时,需要输入密码才能添加和移除网站。
    • 如果忘记了密码,可以点击,点击插件,然后点击扩展程序页面的“Block Site”右侧的移除按钮。

小提示

  • 如果计算机有独立的儿童账户,可以使用家长控制功能来监控和限制儿童浏览网址。

警告

  • 使用“hosts”文件屏蔽网站可以阻止任何浏览器打开这些网站,但是人们可以使用移动版网站来绕过屏蔽。

<<:  怎么清洁表面发黏的塑料制品

>>:  怎么确定你的燃脂心率区间

怎么绘画

想要提升你的绘画技能吗?不管你是想要成为一名优秀的画家,还是仅仅在寻找一个展现自己想象力的创意平台,...

怎么有效提高青少年的自尊

作为一名青少年其实有很多烦恼。有时候所有人,所有的一切看上去都像是在跟你作对,而他们又比你强太多太多...

怎么用Excel计算月供

Excel是微软办公软件(Microsoft Office)中的电子表格应用程序。用Excel可以计...

怎么精彩而自信地发言

不管你是在大众面前发言,还是想把你的想法传递给一位新朋友,好的沟通都是成功的关键。如果你想知道如何才...

怎么把照片上传到Facebook

借助于本文介绍的方法,把照片上传到Facebook会变得非常简单。这里将介绍如何使用新版的Faceb...