How to Get Online by Editing the Hosts File on PC

windows-host-

This is a hosts file for accessing Google, YouTube, Twitter,
Facebook, and other websites by overriding Windows hosts

Automatic hosts replacement batch file…

Download link
Download win-hosts


The script will automatically run as administrator. After CMD starts, a prompt will pop up,

Please click “Yes/Y”

Follow the prompt and enter

Please enter: 1, then press Enter

It will automatically replace the system hosts file with the hosts file in the folder

in the C:WindowsSystem32driversetc directory


Please note:

The commands or instructions may overwrite the existing hosts file,

How to make the hosts changes take effect:

Windows Start -> Run -> Enter cmd ->
In the CMD window, enter

ipconfig /flushdns


In the Linux terminal, enter

sudo rcnscd restart


For systemd distributions, please use the command


sudo systemctl restart NetworkManager

In the Mac OS X terminal, enter


sudo killall -HUP mDNSResponder

Leave a Comment

Your email address will not be published. Required fields are marked *

中文 EN
🚀

RedGate VPN

免费节点太挤太慢?
升级高速稳定专线

立即体验 →

告别卡顿

RedGate VPN
全球高速节点

免费下载 →
Scroll to Top