Windows 10 has a special file called hosts in the system folder. This file allows IP addresses to be assigned to hostnames. If you z. For example, if you want the hostname to resolve to the IP address, you can add a mapping to the hosts file. For example, when an application tries to access, it goes to the IP address

The host file is mainly used to block certain programs or programs from reaching a particular hostname or to redirect the hostname request to a different IP address. It’s also often used to block (or redirect) certain websites that you don’t want someone with access to the same computer (or one of your programs) to be able to contact the hostname if they need to.

If you were asked to edit the Hosts file to block a specific hostname or redirect to an IP address, this guide will show you where the Hosts file is located, how to properly edit the Hosts file in Windows 10, and why you couldn’t save the Hosts file after editing it.

To edit a host file in Windows 10

Pay attention: Modify the hosts file carefully and at your own risk. Adding and reloading an important hostname may cause certain programs to stop running or certain features to become unavailable if the hostname they need to connect to becomes unavailable or invalid as a result of reloading a hostname in the Hosts file.

To edit or add an item to the Hosts file in Windows 10, follow these steps.

  1. Search for Notepad in the Windows 10 search bar. Right-click Notepad in the search results and select Run as Administrator.

  1. In Notepad, click File and select Open.

  1. In the Open window, click the drop-down menu that displays the text (.txt) documents at the bottom and then select All Files. So you can see all the files, not just the txt files.

  1. Then switch to C:WindowsSystem32driversetc (switch to C: if your Windows operating system is on another drive). Select the file named hosts and click the Open button.

  1. To convert a host name to a specific IP address, type the IP address (for example,, then a space (or TAB), and then the host name (for example, on a new line.

  1. When you’re done editing, press CTRL + S (or File > Save) to save your changes.

What are the rules for editing the Hosts file?

You can add as many cards as you want. Make sure only one card is drawn per row. Also, make sure there is no # sign at the beginning of the line where you enter your cartography, because # (comment) means you are ignoring the line.

Also, the host file does not have and should not have an extension. Therefore, it cannot be opened normally with a double click. You need to open it with Notepad or another text editor. We recommend Notepad because it is the easiest to use.

The Hosts file cannot be saved because access is denied?

This is a common error that users get when they try to edit the Hosts file without administrator privileges and cannot save the Hosts file after editing. You must have permission to modify the Hosts file in Windows 10.

You can do this by first starting Notepad as administrator, then browsing for the Hosts file and opening it from Notepad. If Notepad has administrator privileges, you should be able to save the Hosts file normally by pressing CTRL+S.

Which IP address should I use in the hosts file?

If you have no idea what you are trying to do, please do not add mappings to the host file, as this may hinder some programs that need to access the host name. This will also block access to the displayed hostname or website address.

However, if you already have a set of mappings that you want to add ahead of time, just follow the steps above to add them to the hosts file.

If you just want to block a website or hostname from being accessed by software or programs, you can use the address followed by the hostname or website you want to block. The hostname or website address is thus resolved to the IP address, which is normally inaccessible.

Description to share : The file hosted in Windows 10 does not work, cannot be saved or access is denied. Here’s how to properly edit the Hosts file in Windows 10.

don’t have permission to save hosts file windows 10edit hosts file windows 10ampps access denied: you dont have permissions to edit hosts file. entry wont be added to host file.cannot edit hosts file used by another processcan’t edit hosts file windows 7windows hosts file no permissionhost file access denied windows 7how to disable hosts file windows 10

You May Also Like

BBC iPlayer detecting/blocking VPN [How to fix]

Error: The file name is not specified. Milan Stanojevic – deputy editor-in-chief…

How to Turn On Camera or Microphone on Facebook Messenger Windows 10

Unlike the Facebook Messenger application on our smartphones or tablets where you…

How to Hard Reset Vivo U3 Android Phone (If Forgot Password)

Here is the complete guide to reset Vivo U3 Android phone without…

Aggressive Insurance Login & Password Recovery [Make a Claim Here]

Connection with Aggressive Insurance: Aggressive Insurance is a reputable organization that offers…