Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to access the website by modifying the hosts file

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to access the website by modifying the hosts file". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to access the website by modifying the hosts file.

Under normal circumstances, we can not visit some foreign websites such as google, of course, if you know some skills, it is also very easy to visit these sites, such as the library shared today, which is to modify the hosts file to achieve fq. The way to use it is to download the latest hosts file provided by this library and overwrite your previous hosts file. Friends who don't understand can follow the steps below.

Hosts file modification location

Different operating systems hosts have different paths. Here are the locations of some common operating system hosts files:

Windows system hosts is located at C:\ Windows\ System32\ drivers\ etc\ hosts

Android (Android) hosts is located at / etc/hosts

Mac (Apple computer) system hosts is located at / etc/hosts

IPhone (iOS) system hosts is located at / etc/hosts

Linux system hosts is located at / etc/hosts

The vast majority of Unix systems are in / etc/hosts.

How to modify a hosts file

Open the hosts file directly using a text editor (recommended notepad++), and then make changes and save it.

Modify the effective method of hosts

Windows

Start-> run-> enter cmd- > enter in the CMD window

Ipconfig/flushdns

Linux

Terminal input

Sudorcnscdrestart

For systemd distributions, use the command

SudosystemctlrestartNetworkManager

MacOSX

Terminal input

Sudokillall-HUPmDNSResponder

Android

Turn on flight mode-> turn off flight mode

General method

Disconnect the network-> reconnect the network

In short, find the hosts file and use notepad to open hosts, add the address in the following document and save it. Please back up your original hosts file before modifying the file. Of course, there are many ways to visit Google foreign websites by climbing the wall, and the timeliness of many wall-climbing methods is very short. If you want to visit foreign websites more freely, it is recommended to pay to buy an agent, which is relatively stable.

At this point, I believe you have a deeper understanding of "how to access the website by modifying hosts files". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report