Home System Tutorial Windows Series Where is the location of the Hosts file in Win10 system?

Where is the location of the Hosts file in Win10 system?

Jan 19, 2024 pm 09:15 PM

Where is the location of the Hosts file in Win10 system?

Where is the Win10 system Hosts file

Where is the Win10 system hosts file:

In Windows systems, including XP, Win7, Win8 and the latest Win10 systems, the hosts file is located in the Windows folder of the system disk, and the file location path is as follows.

C:WINDOWSsystem32driversetc

The first C: The C in represents the system C drive. If the system is installed on a non-C drive, such as D/E/F drive, etc., please refer to the drive letter of the system installation.

How to quickly open the hosts file location in Win10:

1. First use the Win R shortcut key combination to open the run command box, and then type or paste the above Hosts file path after opening, as shown in the figure.

2. After typing the Hosts file path, click "OK" at the bottom to quickly open the hosts file location, as shown in the figure.

If you want to open the hosts file, you can directly use Notepad to open it. If there is no Hosts file in the etc folder, it may be that the file is hidden. You can set it to display it.

How to find the hosts file permissions in win10

1. Open the "Run" dialog box (you can directly use the Win R shortcut key combination to open it quickly), and then type the hosts file path: C:\WINDOWS\system32\drivers\etc. After completion, click "OK" below Open,

2. After finding the location of the hosts file, do not modify the file directly, otherwise the problem of insufficient permissions and inability to modify will occur. The specific method is to right-click the hosts file, and in the pop-up options, click to open "Properties",

search

3. After opening the hosts file properties, switch to the "Security" tab, then click to select the current user name that needs to be changed, and then click "Edit" below. In the pop-up editing permissions interface, first click to select the user name that needs to be higher. The account name of the permission. For example, the user named "Computer Pepsi Network" needs to be assigned the permission to modify the hosts file. After selecting the user, check the "Modify" and "Write" permissions above and below. After completion, click on the lower right corner. "Apply" on it,

After clicking Apply, a "Windows Security" prompt box will pop up. The general idea is that modifying the system folder permissions may reduce system security. We don't need to pay attention here, just click "Yes",

4. After setting the permission to write and modify the hosts file for the current user, you can easily modify the Win10 hosts file. The specific method is to right-click the hosts file and click "Open with" in the pop-up menu,

How to use HOSTS

Host is a system file without an extension. It can be opened with tools such as Notepad. Its function is to establish an associated "database" between some commonly used URL domain names and their corresponding IP addresses. When the user enters a When you need to log in to a website, the system will first automatically look for the corresponding IP address from the Hosts file. Once

If found, the system will immediately open the corresponding web page. If not found, the system will submit the URL to the DNS domain name resolution server for IP address resolution.

The functions of the hosts file are as follows:

1. Speed ​​up domain name resolution

For websites that you visit frequently, you can configure the mapping relationship between domain names and IPs in Hosts, so that when you enter the domain name, the computer can quickly resolve the IP without having to ask the DNS server on the network.

2. Convenient for LAN users

In the local area network of many units, there will be servers available for users to use. However, since DNS servers are rarely installed in local area networks, accessing these services requires entering IP addresses that are difficult to remember, which is quite troublesome for many people.

Now you can give these servers an easy-to-remember name, and then establish IP mapping in Hosts, so that you can just enter the name of the server when you visit in the future.

3. Block websites

Nowadays, many websites install various plug-ins into the computer without the user's consent, and some of them may be Trojan horses or viruses. For these websites, you can use Hosts to map the domain name of the website to the wrong IP or the IP of your own computer, so that you do not need to access it. Write the following content in Hosts:

127.0.0.1 #Blocked website

0.0.0.0 #Blocked website

In this way, the computer resolves the domain name to the local machine or the wrong IP, achieving the purpose of shielding.

The above is the detailed content of Where is the location of the Hosts file in Win10 system?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

ReactOS, the Open-Source Windows, Just Got an Update ReactOS, the Open-Source Windows, Just Got an Update Mar 25, 2025 am 03:02 AM

ReactOS 0.4.15 includes new storage drivers, which should help with overall stability and UDB drive compatibility, as well as new drivers for networking. There are also many updates to fonts support, the desktop shell, Windows APIs, themes, and file

Microsoft's New PowerToys Search Is the Missing Feature Windows 11 Needs Microsoft's New PowerToys Search Is the Missing Feature Windows 11 Needs Apr 03, 2025 am 03:53 AM

Microsoft's latest PowerToys update introduces a game-changing search feature reminiscent of macOS' Spotlight. This improved "Command Palette" (formerly PowerToys Run) surpasses the functionality of the Windows R Run command and the task

New to Multi-Monitors? Don't Make These Mistakes New to Multi-Monitors? Don't Make These Mistakes Mar 25, 2025 am 03:12 AM

Multi-monitor setups boost your productivity and deliver a more immersive experience. However, it's easy for a novice to stumble while assembling the setup and make mistakes. Here are some of the most common ones and how to avoid them.

How to Disable Windows 11 Round Corners: 4 Easy Methods! How to Disable Windows 11 Round Corners: 4 Easy Methods! Mar 27, 2025 pm 03:27 PM

This guide provides four methods to remove the rounded corners in Windows 11, restoring the classic square-edged look. While the rounded corners offer a modern aesthetic, some users prefer the sharper look for reasons including improved screenshot a

Windows kb5054979 update information Update content list Windows kb5054979 update information Update content list Apr 15, 2025 pm 05:36 PM

KB5054979 is a cumulative security update released on March 27, 2025, for Windows 11 version 24H2. It targets .NET Framework versions 3.5 and 4.8.1, enhancing security and overall stability. Notably, the update addresses an issue with file and directory operations on UNC shares using System.IO APIs. Two installation methods are provided: one through Windows Settings by checking for updates under Windows Update, and the other via a manual download from the Microsoft Update Catalog.

Why Do Some Keyboards Have Coiled Cables? Why Do Some Keyboards Have Coiled Cables? Mar 27, 2025 pm 09:01 PM

For mechanical keyboard enthusiasts, those intriguing coiled cables are a common sight. But why the coil? Let's delve into the reasons. Coiled Cables: Primarily Aesthetics The main draw of coiled cables is their visual appeal. They enhance the look

These Are My Go-To Free Alternatives for Paid Windows Apps These Are My Go-To Free Alternatives for Paid Windows Apps Apr 04, 2025 am 03:42 AM

Many free apps rival their paid counterparts in functionality. This list showcases excellent free Windows alternatives to popular paid software. I firmly believe in using free software unless a paid option offers a crucial, missing feature. These

The Pixel 9a and Your Non-Private Smart Home: Weekly Roundup The Pixel 9a and Your Non-Private Smart Home: Weekly Roundup Mar 25, 2025 am 03:09 AM

Smart Home Privacy Takes a Blow as Amazon Kills Alexa Local Processing Alexa devices will no longer offer a "do not send voice recordings" setting after March 28th. Future Alexa recordings must be sent to the Amazon cloud, though you can

See all articles