In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "introduction of hosts file and method of modifying hosts file". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
1) What is a host file?
Hosts is a system file without extension, which can be opened with Notepad and other tools. Its function is to establish an association "database" between some commonly used URL domain names and their corresponding IP addresses. When a user enters a URL to log in in the browser, the system will first automatically find the corresponding IP address from the Hosts file. Once found, the system will immediately open the corresponding web page. If not found, The DNS domain name resolution server is responsible for the IP address resolution.
(2) Why do Hosts file repairs?
A lot of viruses will modify the Hosts file, for example: Baidu, Google and other commonly used addresses are pointed to virus sites, as long as you search online, naturally poisoned! It will also use the modified Hosts file to point shopping, banking and other websites to phishing websites and steal your account password. What's more, the virus will make you unable to access the official website of anti-virus software by modifying Hosts, and you cannot download anti-virus software for killing, so it is very important to repair Hosts files.
hosts file location:
Windows system: C:\WINDOWS\system32\drivers\etc
Contents of hosts file:
The code is as follows:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
If you suspect that your hosts file has been modified by a virus trojan, you can copy the above content to repair the hosts file.
Locally block websites through hosts. For example, we want to block or you want local traffic cctv.com to be a local website. You can add it later.
127.0.0.1 cctv.com
Note: IP and domain name need to be separated by tab key directly. If the hosts file indicates that it cannot be modified, you need to cancel the read-only option. (Right-click on the hosts file and cancel the read-only option.)
"Introduction to hosts file and how to modify hosts file" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.