如何在没有软件的情况下屏蔽特定网站(block a specific website without software)

想阻止你家里的人访问某些网站吗?你可以购买昂贵的家长控制软件,但也有一些内置工具可以用来屏蔽特定网站。你也可以使用你的路由器设置拦截时间表,并免费拦截某些网站和关键字。...

方法1方法1/4:使用windows“主机”文件进行阻止

  1. 1了解“主机”文件的功能。当您在浏览器中输入网站地址时,计算机会联系域名系统(DNS)以确定网站的实际IP地址。这允许您的浏览器连接到网站。“主机”文件允许您覆盖DNS发送给您的任何内容。当你使用“hosts”文件屏蔽一个站点时,你实际上是在将流量重定向到本地计算机上的空白页面。
  2. Image titled Block a Specific Website Without Software Step 1
  3. 2禁用你的防病毒软件。许多防病毒程序阻止对“主机”进行任何更改,从而使病毒无法将您重新路由到不同的站点。在对“主机”文件进行必要的更改时,您需要禁用防病毒软件几分钟。在Windows 8和10中,需要将“主机”文件添加到Windows Defender排除列表中。在这些版本中,Windows Defender在检测到更改时将自动还原“主机”文件。打开Windows Defender实用程序(在开始屏幕或菜单上搜索),选择“设置”,然后找到“排除”部分。将您的“主机”文件添加到排除项中(请参阅步骤5中的位置),但请注意,这会让您更容易受到广告软件的攻击。
  4. Image titled Block a Specific Website Without Software Step 2
  5. 3在“开始”菜单中查找记事本。你可以在“配件”类别中找到这个。如果您使用的是Windows 8,您可以在应用程序屏幕的“Windows附件”类别中找到它。
  6. Image titled Block a Specific Website Without Software Step 3
  7. 4右键单击记事本并选择“以管理员身份运行”。如果您不是以管理员身份登录,系统会提示您输入管理员密码。您需要管理员权限才能更改此文件。
  8. Image titled Block a Specific Website Without Software Step 4
  9. 5在记事本中打开“主机”文件。点击“文件”→ “打开”。单击“文本文档”下拉框并选择“所有文件”。导航到C:\Windows\System32\drivers\etc,将C:更改为安装Windows的任何驱动器号。选择“主机”将其打开。如果在\etc文件夹中看不到任何内容,请将视图从文本文档切换到所有文件。
  10. Image titled Block a Specific Website Without Software Step 5
  11. 6.在文件末尾开始一行。将光标放在最后一行的末尾,然后按↵ 输入开始一个新的。
  12. Image titled Block a Specific Website Without Software Step 6
  13. 7.键入.127.0.0.1并按空格键。这告诉计算机,以下网站将加载127.0.0.1,这是一个空白的本地页面。
  14. Image titled Block a Specific Website Without Software Step 7
  15. 8.在.127.0.0.1之后输入要阻止的网站。您不需要包含地址的http://部分。例如,如果你想屏蔽Twitter,整行代码如下:127.0.0.1 www.Twitter。通用域名格式
  16. Image titled Block a Specific Website Without Software Step 8
  17. 9对要阻止的其他站点重复上述操作。您可以添加任意数量的行。只要确保每一行都以127.0.0.1开头。
  18. Image titled Block a Specific Website Without Software Step 9
  19. 10保存更改并关闭文件。如果您没有关闭防病毒软件,系统可能会提示您确认是否接受更改。您列出的网站现在将被该计算机上的所有用户屏蔽。
  20. Image titled Block a Specific Website Without Software Step 10
  21. 11确保管理员密码安全。任何拥有管理员帐户的人都可以更改“主机”文件。如果使用你电脑的每个人都使用同一个帐户登录,那么你屏蔽网站的人可以轻松地将文件更改回来。为了防止这种情况发生,每个人都应该使用自己的标准帐户登录,管理员密码应该是除您以外的任何人都不知道的。
  22. Image titled Block a Specific Website Without Software Step 11

方法2方法2/4:使用mac“主机”文件阻塞

  1. 1了解“主机”文件的功能。网站的书面地址用于方便访问者访问,因为其数字(IP)地址可能会定期更改。当您输入网站的书面地址时,浏览器会与DNS服务器联系,以查找该网站的当前数字地址。您的“主机”文件允许您覆盖DNS查找的结果。您可以通过将网站地址重定向到本地计算机上的空白页来阻止使用“主机”文件的网站。
  2. Image titled Block a Specific Website Without Software Step 12
  3. 2.打开航站楼。您需要使用终端实用程序来访问“hosts”文件。您可以在Utilities文件夹中找到终端。
  4. Image titled Block a Specific Website Without Software Step 13
  5. 3.打字。sudo nano/etc/hosts和press⏎ 回来出现提示时输入管理员密码。您需要管理员权限才能编辑“主机”文件。此命令将在文本编辑器中打开“主机”文件。
  6. Image titled Block a Specific Website Without Software Step 14
  7. 4在文件底部开始一行。您可以为每个要阻止的网站添加新行
  8. Image titled Block a Specific Website Without Software Step 15
  9. 5.键入.127.0.0.1并按空格键。这将告诉您的计算机,以下网站应重定向到127.0.0.1,这是一个本地空白页。
  10. Image titled Block a Specific Website Without Software Step 16
  11. 6.输入您希望在.127.0.0.1之后被阻止的网站。您不需要包含地址的http://部分。例如,要阻止YouTube,请键入以下内容:127.0.0.1 www.YouTube。通用域名格式
  12. Image titled Block a Specific Website Without Software Step 17
  13. 7.添加其他网站。通过为每个网站创建新行,您可以根据自己的意愿重新路由到127.0.0.1。确保每行以127.0.0.1开头。
  14. Image titled Block a Specific Website Without Software Step 18
  15. 8按。Ctrl+O然后⏎ 返回以保存文件。您的更改将被保存,文件编辑器将关闭。
  16. Image titled Block a Specific Website Without Software Step 19
  17. 9型。sudo dscacheutil-刷新缓存并按⏎ 回来这将清除DNS缓存并使新规则生效。您可能需要输入管理员密码。
  18. Image titled Block a Specific Website Without Software Step 20
  19. 10确保您的管理员帐户安全。任何知道管理员密码的人都可以更改“主机”文件。确保每个用户都使用标准帐户登录Mac,并且只有您知道管理员密码。
  20. Image titled Block a Specific Website Without Software Step 21

方法3方法3/4:路由器阻塞

  1. 1登录路由器的配置页面。许多路由器允许你屏蔽网站,并为屏蔽创建一个时间表,这可能比一直屏蔽所有人的网站更强大。这可以让你设置“浏览时间”,比如饭后一小时浏览Facebook。并不是所有的路由器都允许你屏蔽网站,但大多数现代路由器都允许。您可以通过在联网计算机的web浏览器中键入路由器的地址来访问路由器。大多数路由器使用192.168.1.1作为地址,但有些路由器使用192.168.0.1或192.168.2.1。如果你想不出地址,请参阅路由器的文档。您需要使用路由器的管理员帐户登录。不同的路由器有不同的默认帐户,所以请参考您的文档或在线查找模型以找到默认的管理员帐户。
  2. Image titled Block a Specific Website Without Software Step 22
  3. 2打开“安全、阻止或访问限制”部分。本节的标签将根据您拥有的路由器型号而有所不同。有些路由器在高级部分有这个选项。
  4. Image titled Block a Specific Website Without Software Step 23
  5. 3输入要阻止的网站或关键字。您可以输入特定网站,或输入要扫描的关键字。当你知道要屏蔽什么时,屏蔽特定的网站,并使用关键字屏蔽一般主题。完成后,单击应用或保存按钮。
  6. Image titled Block a Specific Website Without Software Step 24
  7. 4.制定时间表。计划选项可以在同一页上,也可以在相关部分中。根据你的具体需要制定时间表。默认情况下,块将应用于所有连接的设备。完成后,单击应用或保存按钮。
  8. Image titled Block a Specific Website Without Software Step 25
  9. 5.添加例外情况。许多路由器允许您将计算机或设备设置为受信任的,这将允许该计算机访问任何被阻止的站点。如果您仍希望访问被阻止的站点,请输入您的私人计算机的IP地址。路由器的“设备”部分将告诉您每个连接计算机的IP地址。
  10. Image titled Block a Specific Website Without Software Step 26
  11. 6更改管理员密码。如果将管理员密码保留为默认设置,网络上的任何人都可以查找默认设置并更改路由器配置。如果你希望你的封锁规则是安全的,把路由器登录信息改成只有你知道的信息。您可以在“管理”部分找到这些选项,该部分可能位于“高级”部分。
  12. Image titled Block a Specific Website Without Software Step 27

方法4方法4/4:iphone/ipad/ipod touch

  1. 1打开设置应用程序并选择“常规”。这将打开iOS设备的常规设置。
  2. Image titled Block a Specific Website Without Software Step 28
  3. 2点击“限制”选项,然后点击“启用限制”。系统将提示您为限制创建密码。确保只有你知道,否则其他人将能够禁用限制
  4. Image titled Block a Specific Website Without Software Step 29
  5. 3向下滚动至“允许的内容”部分,点击“网站”。这将允许你调整网站屏蔽工具。
  6. Image titled Block a Specific Website Without Software Step 30
  7. 4选中“限制成人内容”选项。这将使你能够阻止特定的网站,以及自动阻止许多成人网站。
  8. Image titled Block a Specific Website Without Software Step 31
  9. 5点击“永不允许”部分中的“添加网站”。键入要阻止的网站地址。这将允许您指定要在设备上阻止的网站。你列出的网站将在任何浏览器应用程序中被屏蔽,包括Chrome。您可以添加多个站点。
  10. Image titled Block a Specific Website Without Software Step 32

提示

  • 发表于 2022-05-17 05:12
  • 阅读 ( 35 )
  • 分类:IT

你可能感兴趣的文章

要求(requirement)和软件工程规范(specification in software engineering)的区别

...规范的表格形式 6. 摘要 什么是软件工程需求(requirement in software engineering)? 整个项目取决于需求。开发软件的第一步是进行可行性研究。它专注于产品的技术方面。下一个过程是收集需求。通过与最终使用产品的客户、最终用...

  • 发布于 2020-10-18 18:32
  • 阅读 ( 528 )

下面是安装前10个下载.com应用程序

...software at any point during or after installation. Software that installs without notice and without the user’s c***ent. Software that includes or uses surreptitious data collection. Software that diverts or modifies end users’ default browsers, search-engine home pages, providers, security, or...

  • 发布于 2021-04-08 03:12
  • 阅读 ( 189 )

为什么扫描仪使用pdf作为默认文件格式?

...omatically as part of the scan process) Securable at the file level itself without using additional tools or relying on operating system specific features Cannot be altered without leaving digital footprints Can include metadata, which helps with filing and searching Compressible with good control o...

  • 发布于 2021-04-08 22:55
  • 阅读 ( 133 )

web服务器是否每个服务器只包含一个网站?

... then how does it all get resolved so that I can access the website I want without any problems or mix ups? web服务器是每个只容纳一个网站,还是容纳更多的网站? 答案 超级用户贡献者Bob为我们提供了答案: Basically, the browser includes the domain name in the HT...

  • 发布于 2021-04-09 11:57
  • 阅读 ( 254 )

谷歌现在正在屏蔽搜索结果、广告和chrome中的垃圾软件

...s. It is difficult to remove. It collects or tran**its private information without the user’s knowledge. It is bundled with other software and its presence is not disclosed. 我们确信,这些下流的垃圾软件供应商会试图找到一个解决办法,但希望谷歌会继续打击他...

  • 发布于 2021-04-11 00:04
  • 阅读 ( 189 )

保持Windows7的更新会使杀毒软件变得不必要吗?

...yload. You also state, “…if I keep myself logged in as a regular user without administrative privileges” but get a UAC prompt from a program and type in the administrator credentials, it does not matter that you are a regular user. Windows Update does not protect you from bugs in other softwa...

  • 发布于 2021-04-11 03:00
  • 阅读 ( 156 )

如何设置高级谷歌搜索标准?

在进行在线搜索时,很容易得到比你需要或想要的更多的结果,但是如果你真的想限制搜索的参数,你该怎么做(或使用)?今天的超级用户问答帖子给出了一位困惑读者求助的答案。 今天的问答环节是由SuperUser提供的,SuperUs...

  • 发布于 2021-04-11 06:38
  • 阅读 ( 203 )

网站如何记住你对它的偏好(以及关于cookies的选择)?

... not bring the pop-up back. Is there a way to get this kind of pop-up back without clearing the history and cookies? This also got me to thinking. How can a website remember if it is allowed to store cookies? By storing it in a cookie? 网站如何记住你对它的总体偏好,以及你对cookies...

  • 发布于 2021-04-11 07:03
  • 阅读 ( 220 )

现在在现代浏览器中,是否真的有必要将“www”添加到网站url中?

... services, you enter the appropriate host name: So why does it still work without ‘www’? Because most web-servers allow you to accept different URLs and redirect them as necessary. For the convenience of users, most companies and organizati*** set up a rule to have the web-server handle connect...

  • 发布于 2021-04-11 12:55
  • 阅读 ( 156 )

如何在所有应用程序中阻止不需要的广告,并使用hosts文件加速web浏览

...:127.0.0.1 localhost 127.0.1.1我的真实主机名::1 my-ipv6-addr如何使用社区创建的文件编辑主机文件首先,通过上面的路径找到hosts文件。hosts文件没有扩展名,如果您的计算机上还没有hosts文件,也没关系(在Mac上,在Finder go to go>go ...

  • 发布于 2021-07-24 05:03
  • 阅读 ( 144 )
x7mnwz68
x7mnwz68

0 篇文章