Key Takeaways

  • 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.
  • To block a website with the hosts file, direct the URL to either 0.0.0.0 or 192.168.0.1.