How to Edit the hosts File on Windows 10 or Windows 11 The hosts file is the first place Windows checks for IP addresses when connecting to websites and can be manually edited to block access to specific websites The hosts file is located in "C:\Windows\system32\drivers\etc" on both Windows 10 and 11, and you need administrative permissions to edit it