Step-by-Step

Опубликовано: 30 Июнь 2023
на канале: MKRC LABS
70
0

To edit the Windows host file, you can follow these step
Open File Explorer: Press the Windows key + E on your keyboard, or click on the File Explorer icon in the taskbar.
https://github.com/robot78p/TFT

Navigate to the Hosts File Location: Go to the following path in File Explorer: C:\Windows\System32\drivers\etc. You may need administrative privileges to access this folder.
Open the Hosts File: In the etc folder, you'll find a file named "hosts" without any file extension. Right-click on the file and choose "Open with" and then select a text editor like Notepad or Notepad++.
Edit the Hosts File: Make the necessary changes to the hosts file using the text editor. Each line in the file represents a mapping of an IP address to a host name. You can add or modify entries by typing the IP address followed by a space or tab, and then the corresponding host name.
For example:
Copy code
127.0.0.1 local host
192.168.0.100 example.com
You can also comment out lines by placing a "#" symbol at the beginning of the line.
Save the Changes: After making the desired edits, save the hosts file by selecting "File" and then "Save" or using the keyboard shortcut Ctrl + S.
Close the Text Editor and File Explorer: Close the text editor window and exit File Explorer.
Note: Editing the hosts file requires administrative privileges. If you're unable to save the changes, make sure you have the necessary permissions or try running the text editor as an administrator.
It's important to exercise caution when editing the hosts file as incorrect entries or modifications may affect network connectivity or prevent access to websites. Always make a backup of the original hosts file before making any changes, so you can easily restore it if needed
host file edit
How to edit the Windows 10 and 11 hosts file
GOTO start menu type NOTEPAD than Run as administrator
Run your text editor as an administrator
Find your hosts file
hosts file is located at C:\Windows\System32\drivers\etc.
Add lines to block websites
Save and confirm your changes
Edit host file in a minute ti hide TCP IP mapping of ip addresses to the host name with in DNS
The hosts file is the location your PC that checks when first time connecting to a website. If you have a custom IP address stored in your hosts file, the PC will connect to the specified IP address instead of the typical DNS server readout broadcast by the website. By assigning a false IP address such as 0.0.0.0 to a website in your hosts file, you can prevent your PC from ever accessing the website’s true IP address.
To edit your hosts file, you will need to use text editing software like Notepad
use Notepad since it is already installed on Windows by default.
Run your text editor as an administrator
GOTO start menu type NOTEPAD than Run as administrator
hosts file is located at C:\Windows\System32\drivers\etc.
hosts file is located at C:\Windows\System32\drivers\etc.
the reason
Add lines to block websites
how to
Once you have your hosts file open in a text editor, you can type lines of code to block websites. Each line is broken into three sections
1. The IP Address: This tells the PC where to go.
2. Web address: This is the typed name of the website you are blocking.
3. The Comment: This explains what the line does. It requires a hashtag behind it.
as you watch in video
click File, then Save before closing your hosts file. This finalizes all the changes you made