本教程向您展示如何在 Microsoft Edge 中阻止网站(block a website in Microsoft Edge)。尽管在Edge(Edge –)中没有阻止网站的本机功能( Edge Kids 模式(Edge Kids Mode)除外),但到目前为止,您仍然可以阻止您不想访问的网站。避免查看包含恶意或不当内容的网站尤其有用。在本文中,我将提到在Microsoft Edge中阻止网站的两种方法。
如何在Microsoft Edge中阻止网站(Microsoft Edge)
在Windows 11或 Windows 10上的Microsoft Edge中阻止网站的两种方法是:
- (Block)使用Hosts文件阻止网站。
- 安装专用扩展程序以阻止Edge中的网站。
1]使用Hosts文件阻止网站(Block)
您可以通过对Hosts 文件(Hosts file)进行简单编辑来阻止Microsoft Edge或任何其他 Web 浏览器中的网站。
为此,请以管理员身份打开 CMD(open CMD as administrator),然后在其中键入以下命令:
notepad c:\WINDOWS\system32\drivers\etc\hosts
Hosts文件将在(Hosts)记事本(Notepad)中打开。
向下滚动(Scroll)到文件末尾,然后在要阻止的网站后面输入127.0.0.1 。例如:
127.0.0.1 www.blockthissite.com
现在,转到“文件(File)”菜单并单击“保存(Save)”选项。然后,关闭记事本(Notepad)和命令提示符(Command Prompt)。输入的网站将在Edge以及其他浏览器中被阻止。
当您想从阻止列表中删除该网站时,只需使用与上述类似的过程从 Hosts 文件中删除添加的行。
阅读(Read):如何使用密码锁定 Edge 或 Chrome 浏览器(lock the Edge or Chrome browser with a password)。
2 ]在(] Install)Edge中安装Block Site扩展
扩展服务可以让你在Microsoft Edge中阻止网站。您可以尝试一些适用于Edge的免费网站拦截器扩展。在这里,我将讨论这个名为Block Site的扩展。这个网络扩展的优点是它提供了一些额外的有用功能。
首先,将此扩展安装到您的Edge浏览器。为此,请转到三点菜单并单击扩展(Extension)选项。现在,单击Get extensions for Microsoft Edge选项,然后在Add-ons窗口中的搜索框中输入Block Sites。您将看到来自Free Simple Apps的(Free Simple Apps)Block Sites扩展。单击旁边的Get选项并将其添加到Edge。现在,您可以从Edge浏览器上的扩展徽章访问它。
现在,如果您在要阻止的网站上,请单击阻止站点(Block Sites)图标,然后按阻止当前站点(Block current site)选项。
您可以手动输入要阻止的网站。只需(Just)转到其图标,然后单击“管理被阻止的站点(Manage blocked sites)”选项。
现在,在阻止站点(Block Sites)选项卡中,在框中键入网站名称,然后点击+选项。您可以在此选项卡中查看和管理所有被阻止的网站。如果您想从阻止列表中删除一个网站,只需单击它旁边的x图标。(x)
它提供了一些其他不错的功能,其中之一包括Block Words。您可以添加单词或短语来阻止包含这些单词或短语的所有域。输入单词/短语,然后单击 + 按钮。你不会看到任何包含这些词的网站。
此Edge扩展的另一个值得一提的功能是阻塞计划(Blocking Schedule )选项。您可以为网站添加阻止时间表,以在特定日期和持续时间内阻止它。
转到管理被阻止的站点(Manage blocked sites)选项 >阻止计划(Blocking Schedule)选项卡并输入网址。之后,设置阻止时间表,包括阻止日期和时间选项。您可以添加多个时间间隔来安排阻止网站。
它还提供了一个站点白名单(Site White List)选项卡,您可以在其中添加要避免阻止的网站。
本文旨在向您展示如何在Edge中阻止网站。如果您正在寻找阻止成人网站(block adult websites)的方法,以确保孩子们的安全浏览,您可以使用Open DNS Family Shield、 Cloudflare for Families或基于 DNS 的 Clean Browsing 解决方案(Clean Browsing DNS-based solution)——甚至是免费的家长控制软件(Free parental control software)。
How to block a website in Microsoft Edge on Windows 11/10
Thiѕ tutorial shows yoυ how to block a website in Microsoft Edge. Although there is no native feature to block a website in Edge – except in Edge Kids Mode – as of now, you can still block a website that you don’t want to visit. It is especially helpful to avoid viewing websites with malicious or inappropriate content. In this article, I am going to mention two methods to block a website in Microsoft Edge.
How to block a website in Microsoft Edge
The two methods to block a website in Microsoft Edge on Windows 11 or Windows 10 are:
- Block a website by using the Hosts file.
- Install a dedicated extension to block a website in Edge.
1] Block a website by using the Hosts file
You can block a website in Microsoft Edge or any other web browser by making a simple edit to the Hosts file.
To do so, open CMD as administrator and then type the below command in it:
notepad c:\WINDOWS\system32\drivers\etc\hosts
The Hosts file will open up in the Notepad.
Scroll down to the end of the file and then enter 127.0.0.1 following with the website you want to block. For example:
127.0.0.1 www.blockthissite.com
Now, go to the File menu and click on the Save option. Then, close Notepad and Command Prompt. The entered website will be blocked in Edge as well as other browsers.
When you want to remove the website from the block list, simply remove the added line from the Hosts file using a similar procedure as above.
Read: How to lock the Edge or Chrome browser with a password.
2] Install a Block Site extension in Edge
An extension service can enable you to block a website in Microsoft Edge. There are some free website blocker extensions available for Edge that you can try. Here, I will be talking about this extension called Block Site. The advantage of this web extension is that it provides some additional useful features.
Firstly, install this extension to your Edge browser. To do so, go to the three-dot menu and click on the Extension option. Now, click on the Get extensions for Microsoft Edge option, and in the Add-ons window, enter Block Sites in the search box. You will see a Block Sites extension from Free Simple Apps. Click on the Get option present beside it and add it to Edge. Now, you can access it from the extension badge on the Edge browser.
Now, if you are on the website that you want to block, click on the Block Sites icon and then press the Block current site option.
You can manually enter the website that you want to block. Just go to its icon and then click on the Manage blocked sites option.
Now, in the Block Sites tab, type the website name in the box and then tap on the + option. You can view and manage all your blocked websites in this tab. In case you want to remove a website from the block list, simply click the x icon present beside it.
It provides some other nice features one of which includes Block Words. You can add words or phrases to block all domains containing those words or phrases. Enter the word/ phrase and then click the + button. You won’t see any website containing those words onwards.
One more feature of this Edge extension that is worth mentioning is the Blocking Schedule option. You can add a blocking schedule for a website to block it for a specific day and duration.
Go to Manage blocked sites option > Blocking Schedule tab and enter a web address. After that, set up the blocking schedule including blocking days and time options. You can add multiple time intervals to schedule block websites.
It also provides a Site White List tab where you can add websites that you want to avoid blocking.
This article was about showing you how to block a website in Edge. If you are looking for ways to block adult websites in general to ensure safe browsing for the kids, you could use Open DNS Family Shield, Cloudflare for Families or Clean Browsing DNS-based solution – or even a Free parental control software.