Skip to playerSkip to main content
In this video, you will learn how to edit the hosts file on Windows 11, 10, 8, and 7—a powerful tool for customizing domain-to-IP mappings, blocking websites, or redirecting URLs locally. Whether you’re troubleshooting network issues, blocking ads, or testing domains, this tutorial shows you how to access and modify the hosts file using Notepad with Administrator privileges.

🔧 What’s Covered:

Where the hosts file is located: C:\Windows\System32\drivers\etc\hosts

How to open Notepad as Administrator

How to safely make and save changes

Common examples like blocking websites (e.g. 127.0.0.1 facebook.com)

Tips to avoid access denied or permission errors

✅ This method works on all major Windows versions: Windows 11, Windows 10, Windows 8, and Windows 7.

🔍 Popular Search Terms & Related Keywords:

edit hosts file Windows 11

change hosts file Windows 10

how to open hosts file as administrator

hosts file location Windows

block website using hosts file

hosts file tutorial

redirect domain hosts file

Windows not saving hosts file

hosts file permission error

modify hosts file without software

unblock sites using hosts file

hosts file for beginners

🔖 Hashtags:
#Windows11 #HostsFile #WindowsTutorial #TechTips #NetworkFix #EditHostsFile

Category

🤖
Tech
Transcript
00:00Hi everyone welcome to our channel.
00:12In today's video is about how to edit the hosts file in Windows 11, 10, 8 and 7.
00:19Go to your search option and search for notepad.
00:27And then run the notepad application as administrator.
00:33Now here just click on file and then click on open.
00:40Now follow all my steps, go to your local disk C or where your windows is installed,
00:48Windows folder,
00:53System 32,
01:00Drivers folder,
01:05ETC folder.
01:10Click here and select all files.
01:12Now here just click on hosts file and then on open it.
01:24Now if you need to edit just press enter and add new lines.
01:29And then after editing, just click on file and then click on save and that's it.

Recommended