Whenever you want to control the admin access to certain websites or software, you need to edit the host file on Windows. You can do it to control some website from your child or family including Facebook, YouTube or any adult sites. At the same time, you need to set up some software or apps, but don’t want to give it the privileges for accessing the internet. Here you will need to modify the host file. It will help you to control the complete PC in your command. With this in mind, I will discuss here how to edit host file on Windows 7, 8, 8.1 and Windows 10.
Simply. the work of host file is controlling the computer and giving it the commands which site it will access or which site not. To be sure, you can keep the control among the whole website or network traffic.
If you are knowing about the host file today or trying to learn it, you will be surprised that you can give personal command by editing this host files. Though the tricks are really easy but need to follow some special techniques. Windows has kept the host file in all the versions of Windows. The procedures in all the versions and editions of Windows are same.
Now you may ask where is the location of host file on windows or other OS? Yes! You can easily see the location of host file on Windows from by following the command “C:\Windows\System32\drivers\etc.” (See the below screenshot which has pointed the location of host file on Windows) So, are you ready to get the tips? Let’s learn how can you edit the host file on Windows 7, 8, 8.1 and Windows 10.
How to edit host file on Windows 8/8.1 and Windows 10:
Editing the host file of Windows 10, 8 or 8.1 is same and it needs to open the Notepad as Administrator. That means if you open the notepad only, you will not be able to edit or save it. With this in mind, you must be remembered that when you are going to edit the host file on Windows, you have to run the Notepad with administrator access. How can you do that, let’s see the total process of editing the host file with the screenshot?
Step 1: Firstly open the host file on your windows. I have given you the location of the host file before. To repeat, follow the command “C:\Windows\System32\drivers\etc.” You will get the host file here. It is nearly 1k to 3k. You have to open it for editing the file. Before that, we need to follow the step 2.
Note: You can copy and paste the path in the Windows location address bar. It will carry you on the host file easily.
Step 2: Now Right Click on the host file, check if the Read Only option is unchecked. If not uncheck it now. (Most of the time, it stays as uncheck, so you have no need to do here).
Step 3: Open the Notepad on Windows 10, 8/8.1 with administrator access. How can you open it? Simple, just find/search the notepad from the start menu and right click on it and you will see here the run as administrator. Not click here. (See the screenshot if you can’t understand clearly)
Step 4: Now open the host file by clicking right click and giving the open with command. Similarly, you can open the file from the Open Options of Notepad.
Step 5: Now you add your desired IP address to control it with your needs. How looks the IP address. Yes! It will be like that “0.0.0.0 www.facebook.com” or “127.0.0.1 unwanted.domain” You can find out any IP address name form the internet.
Note: When you will save the file again, never forget to select All FIles instead of .txt. Otherwise, it will not save or work. For this reason, you can save the file as save as.
You have successfully edited the host file on Windows 10, 8/8.1. I think you have done it also. If seems anything problem you can share with us to get the instant solution.
Editing The Host File On Windows 7:
Now we will see how you can edit the host file on Windows 7. Unlike Windows 8 or 10, the process is easier. You can do it very easily and here has no need to open the file with administrator control. For this reason, you can easily edit or modify it without any hesitation.
Step 1: To access the host file on Windows 7, follow the same commands “C:\Windows\System32\drivers\etc.” or you can open the RUN by clicking CTRL+R and paste the commands here, press Enter. It will open the host file within seconds.
Step2: Now open the host file with notepad naturally add the IT address or domain name. For example, if you want to block facebook on your PC. Just add 0.0.0.0 www.facebook.com and click save.
If you visit the website now, it will show The browser it is possible to show the webpage or similar types of messages.
Now If you want to give the access again, you can edit the host file and remove the IP address, it will again get the access to browse.
Hope, You have realized the method for editing the host file on Windows 7 PC.
Editors Note From TechyPi:
Finally, I will tell, host file is the best ways to control the access to your internet and traffic. At the same time, it will help to stay in the safe position. I think you have successfully learned the tricks how to edit host file on Windows 10, 8/8.1 and Windows 7.
If you get any problem, you can ask us from the comment section. At the same time, if you get the article helpful express your love by sharing it. All the best wishes.