For security reason, some Antivirus programs including Windows Defender doesn’t allow you to modify hosts file in Windows 10. Note: Before going to the procedure, make sure that you are the administrator of your that system you want to modify the hosts file. But don’t worry, I have two working methods to edit Hosts file in Windows 10 or Windows 8.1 successfully. Because, the edit command requires 16-bit QBASIC.EXE, that’s why it will not work.
The ‘edit’ command works on the 32-bit Windows OS, but it is not possible to run in a 64-bit OS. ‘edit’ is not recognized as an internal or external command, operable program or batch file. When you type edit on these operating systems, it shows The reason behind the problem is, the ‘edit’ command is not a part of Windows 8.1/10. But, this procedure doesn’t work on Windows 8.1 and 10.
You just need to open the command prompt windows with “ Administrator” privilege and go to the location of the Hosts file and edit it by using ‘edit’ command. One can easily modify the Hosts file in early Windows operating systems by the ‘ edit’ command in command prompt.
There are many things you can do with the Hosts file, such as it allows you to