xfs文件还原工具_使用免费工具在Windows中编辑,删除或还原默认主机文件

xfs文件还原工具

xfs文件还原工具

00_lead_image_hosts_file_orig

The hosts file in Windows contains mappings of IP addresses to host names, like an address book for your computer. Your PC uses IP addresses to find websites, so it needs to translate the host names into IP addresses to access websites.

Windows中的主机文件包含IP地址到主机名的映射,例如计算机的通讯簿。 您的PC使用IP地址查找网站,因此需要将主机名转换为IP地址才能访问网站。

When you enter a host name in a browser to visit a website, that host name is looked up in DNS servers to find the IP address. If you enter IP addresses and host names for websites you visit often, these websites will load faster, because the hosts file is loaded into memory when Windows start and overrides DNS server queries, creating a shortcut to the sites.

当您在浏览器中输入主机名以访问网站时,该主机名将在DNS服务器中查找以找到IP地址。 如果您输入经常访问的网站的IP地址和主机名,则这些网站将加载得更快,因为Windows启动时将主机文件加载到内存中并覆盖DNS服务器查询,从而创建了网站的快捷方式。

Because the hosts file is checked first, you can also use it to block websites from tracking your activities on the internet, as well as block ads, banners, third-party cookies, and other intrusive elements on webpages. Your computer has its own host address, known as its “localhost” address. The IP address for localhost is 127.0.0.1. To block sites and website elements, you can enter the host name for the unwanted site in the hosts file and associate it with the localhost address. Blocking ads and other undesirable webpage elements, can also speed up the loading of websites. You don’t have to wait for all those items to load.

因为首先检查了主机文件,所以您还可以使用它来阻止网站跟踪您在Internet上的活动,以及阻止广告,横幅,第三方cookie以及网页上的其他侵入性元素。 您的计算机具有自己的主机地址,称为“本地主机”地址。 本地主机的IP地址是127.0.0.1。 要阻止站点和网站元素,可以在hosts文件中输入不需要的站点的主机名,并将其与本地主机地址关联。 屏蔽广告和其他不良网页元素也可以加快网站的加载速度。 您不必等待所有这些项目都加载。

The default hosts file that comes with Windows does not contain any host name/IP address mappings. You can add mappings manually, such as the IP address 74.125.224.72 for www.google.com. As an example of blocking an ad server website, you can enter the following line in your hosts file to block doubleclick.net from serving you ads.

Windows随附的默认主机文件不包含任何主机名/ IP地址映射。 您可以手动添加映射,例如www.google.com的IP地址74.125.224.72。 作为阻止广告服务器网站的示例,您可以在主机文件中输入以下行,以阻止doubleclick.net向您投放广告。

127.0.0.1    ad.doubleclick.net

127.0.0.1 ad.doubleclick.net

NOTE: You can use the entries in the hosts file to block entire sites, not portions of sites. If there are ads served to you by the site you are viewing, they cannot be blocked without blocking the whole site.

注意:您可以使用hosts文件中的条目来阻止整个站点,而不是部分站点。 如果您正在查看的站点向您投放了广告,则在不阻止整个站点的情况下就无法阻止它们。

To manually add entries to the hosts file, you can open the file (C:\Windows\System32\drivers\etc\hosts) in a text editor like Notepad.

要将条目手动添加到主机文件,可以在文本编辑器(如记事本)中打开文件(C:\ Windows \ System32 \ drivers \ etc \ hosts)。

NOTE: The hosts file has no extension.

注意:主机文件没有扩展名。

However, an easier way to edit the hosts file is to use a free tool called Host Mechanic. This tool allows you to add entries to the hosts file, revert back to the default hosts file, and delete the hosts file.

但是,编辑主机文件的一种简单方法是使用一个免费的工具,称为主机技工。 使用此工具,您可以将条目添加到主机文件,还原为默认主机文件,然后删除主机文件。

Host Mechanic does not need to be installed. Simply extract the .zip file you downloaded (see the link at the end of this article) and double-click on the Host Mechanic.exe file.

不需要安装Host Mechanic。 只需解压缩下载的.zip文件(请参阅本文结尾的链接),然后双击Host Mechanic.exe文件。

01_running_host_mechanic

If the User Account Control dialog box displays, click Yes to continue.

如果显示“用户帐户控制”对话框,请单击“是”继续。

NOTE: You may not see this dialog box, depending on your User Account Control settings.

注意:根据您的“ 用户帐户控制”设置 ,您可能看不到此对话框。

02_uac_dialog

To add an entry to the hosts file, enter the host name for the site in the Site edit box. If you’re entering a site you want to block, click the 127.0.0.1 check box. Otherwise, enter the IP address for the site in the IP Address edit box. Click Add to Host.

要将条目添加到主机文件,请在“站点”编辑框中输入站点的主机名。 如果要输入要阻止的站点,请单击127.0.0.1复选框。 否则,请在“ IP地址”编辑框中输入站点的IP地址。 单击添加到主机。

03_adding_site_to_hosts_file

The following confirmation dialog box displays. Click OK to close it.

显示以下确认对话框。 单击确定将其关闭。

04_changes_applied_successfully

If you scroll down in the Host File Content box, you’ll see the new entry at the bottom of the hosts file.

如果在“主机文件内容”框中向下滚动,您将在主机文件的底部看到新条目。

05_new_site_at_bottom_of_file

To revert back to the default hosts file that came with Windows, click Restore Default Host File.

要恢复为Windows附带的默认主机文件,请单击“还原默认主机文件”。

06_clicking_restore_default_host_file

Another confirmation dialog box displays.

显示另一个确认对话框。

07_default_host_file_successfully_restored

NOTE: All your changes to the hosts file are removed, and the host file is empty again, except for the commented instructions for its use.

注意:对主机文件所做的所有更改都将被删除,并且主机文件将再次为空,但注释中的使用说明除外。

08_default_host_file

The hosts file may get hijacked by malware programs, that insert entries directing your computer to their webpage. If this happens, you can restore the default hosts file. However, if this doesn’t work, you can delete the hosts file by clicking Delete Host File in Host Mechanic and then create a new one in the C:\Windows\System32\drivers\etc directory. See Microsoft’s page about resetting the hosts file for the initial text that should be in the default hosts file for the different versions of Windows (XP, Vista, 7, Server 2003, and Server 2008).

主机文件可能会受到恶意软件程序的劫持,这些恶意软件程序会插入将您的计算机定向到其网页的条目。 如果发生这种情况,您可以还原默认的主机文件。 但是,如果这不起作用,则可以通过在Host Mechanic中单击Delete Host File删除主机文件,然后在C:\ Windows \ System32 \ drivers \ etc目录中创建一个新文件。 请参阅Microsoft有关重设主机文件的页面,以获取初始文本,初始文本应位于不同版本的Windows(XP,Vista,7,Server 2003和Server 2008)的默认主机文件中。

NOTE: Remember the hosts file should just be named “hosts” with no extension.

注意:请记住,hosts文件应仅命名为“ hosts”,没有扩展名。

09_clicking_delete_host_file

Once you delete the hosts file, the following confirmation dialog box displays.

删除主机文件后,将显示以下确认对话框。

10_successfully_deleted_hosts_file

To close Host Mechanic, click the X in the upper, right corner of the window.

要关闭Host Mechanic,请单击窗口右上角的X。

11_closing_host_mechanic

Download Host Mechanic from http://browse.deviantart.com/?q=host+mechanic#/d4g95l7.

http://browse.deviantart.com/?q=host+mechanic#/d4g95l7下载Host Mechanic。

NOTE: When using Host Mechanic, you might see a malware warning message. The AskVG website, who provides this software, says it’s a false positive. It modifies a system file, so some security software programs might incorrectly detect it as being suspicious. However, it seems safe to use.

注意:使用Host Mechanic时,您可能会看到恶意软件警告消息。 提供此软件的AskVG网站表示这是一个误报。 它会修改系统文件,因此某些安全软件程序可能会错误地将其检测为可疑文件。 但是,使用起来似乎很安全。

For more information about ways to edit and use the hosts file, see the following articles:

有关编辑和使用hosts文件的方法的更多信息,请参见以下文章:

You can also download a ready-made hosts file that contains entries that will block most major parasites, hijackers, ad servers, and unwanted adware/spyware programs.

您还可以下载现成的主机文件 ,该文件包含的条目将阻止大多数主要的寄生虫,劫机者,广告服务器以及有害的广告软件/间谍软件程序。

翻译自: https://www.howtogeek.com/129951/use-a-free-tool-to-edit-delete-or-restore-the-default-hosts-file-in-windows/

xfs文件还原工具

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值