The hosts file can be found in the following locations depending on your operating system: Windows: C:\Windows\System32\Drivers\etc\hosts. Linux: /etc/hosts.
Where do I find my host file?
The hosts file is a plain text file used to map host names to IP addresses. On Windows, it is located in the C:\Windows\System32\drivers\etc folder.
Where is the hosts file on Windows 10?
In Windows 10 the hosts file is located at c:\Windows\System32\Drivers\etc\hosts. Right click on Notepad in your start menu and select “Run as Administrator”. This is crucial to ensure you can make the required changes to the file. Now click File > Open and browse to : c:\Windows\System32\Drivers\etc\hosts.