Where to add YouTube blocking rules in Regedit
To block YouTube in Windows using Regedit, you add entries to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains. This path tells Windows to treat YouTube as a restricted zone, which prevents it from loading in most browsers. The process takes about five minutes and requires you to restart your browser afterward.
This method works because Windows maintains a central list of websites and their security zones. By adding YouTube to this list and marking it as a restricted zone, you're telling Windows to block access at the system level rather than relying on individual browser settings. This approach is more difficult to bypass than browser-level blocks, which is why parents and IT administrators use it.
You will need administrator access to your Windows account to make changes in Regedit. If you do not have administrator rights, you cannot complete these steps. Standard user accounts cannot modify the registry in this location.
Key Takeaways
- YouTube blocking in Regedit happens in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains, where you create a new entry for youtube.com.
- You must set the value to 4 (restricted zone) for the block to work across most browsers on that Windows account.
- This method blocks YouTube at the system level, making it harder to bypass than browser-only restrictions.
- Changes take effect after you close and reopen your browser, and they explore to all browsers on that Windows installation.
- You can remove the entry later by deleting the youtube.com key from the same registry location if you want to restore access.
Step-by-step: Adding YouTube to the restricted zone
Open Regedit by pressing Windows key + R, typing regedit, and pressing Enter. Windows will ask for permission to make changes to your computer — click Yes. Once Regedit opens, you will see a folder tree on the left side.
Navigate to the path by clicking the arrow next to HKEY_LOCAL_MACHINE, then SOFTWARE, then Policies, then Microsoft, then Windows, then CurrentVersion, then Internet Settings, then ZoneMap. When you reach ZoneMap, look for a folder called Domains. If Domains does not exist, right-click on ZoneMap, select New, then Key, and name it Domains.
Right-click inside the Domains folder and select New, then Key. Name this new key youtube.com. Once you have created the youtube.com key, right-click inside it and select New, then DWORD (32-bit) Value. Name this value http and set its value to 4. Repeat this step to create another DWORD called https and also set it to 4. The number 4 represents the restricted zone in Windows security settings.
Why the restricted zone blocks YouTube
Windows organizes websites into four security zones: Local Intranet, Trusted Sites, Internet, and Restricted Sites. Each zone has different permissions for what scripts and content can do. The restricted zone is the most locked-down — it prevents most active content from running and blocks many features that websites normally use.
When you set YouTube to zone 4 (restricted), Windows tells your browser not to load certain features that YouTube depends on. YouTube's video player, login system, and recommendation engine all rely on JavaScript and other active content that the restricted zone blocks. This makes the site unusable rather than just hiding it.
The reason you create both http and https entries is that YouTube uses both protocols. The http entry blocks the non-encrypted version, and the https entry blocks the encrypted version. If you only block one, a user could potentially access YouTube through the other protocol.
What happens when someone tries to access YouTube
When a user tries to visit YouTube after you have made these changes, their browser will load a page that says the site is in the restricted zone and cannot be accessed. The exact message varies by browser — Chrome, Firefox, and Edge all display slightly different warnings — but the result is the same: the site does not load.
The block applies to all browsers on that Windows installation, not just one. If you block YouTube in Regedit, it stays blocked in Chrome, Firefox, Edge, and any other browser the user opens. This is different from browser extensions, which only work in the browser where you installed them.
Removing the YouTube block later
If you want to restore access to YouTube, open Regedit again and navigate back to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains. Right-click on the youtube.com key and select Delete. Confirm the deletion, close Regedit, and restart your browser. YouTube will be accessible again.
You can also modify the block instead of removing it entirely. If you want to allow YouTube but restrict certain features, you can change the zone number to something less restrictive. Zone 3 (Internet) allows most content, while zone 2 (Trusted Sites) allows everything. However, if your goal is to block YouTube completely, deleting the entry is the cleanest approach.
Why Regedit blocking is stronger than browser settings
Browser extensions and parental controls work only within that specific browser. A user who wants to bypass them can straightforward open a different browser or use incognito mode. Registry-level blocks work across all browsers because they operate at the Windows system level, before the browser even tries to connect to the site.
This does not make the block unbreakable — a determined user with administrator access can open Regedit and delete the entry themselves. However, it does prevent casual bypassing and makes it clear that the restriction is intentional and system-wide. For monitoring purposes, you can also check the registry periodically to see if the youtube.com key is still there.
Common mistakes when editing the registry for YouTube
The most common mistake is typing the path incorrectly. The correct path includes Policies (not Policy), CurrentVersion (not Current Version), and Internet Settings (not InternetSettings). If you cannot find the path, copy and paste it directly into Regedit's address bar at the top of the window rather than navigating manually.
Another mistake is forgetting to create both the http and https entries. If you only create one, YouTube may still load through the other protocol. Both entries must be set to 4 for the block to work completely. A third mistake is setting the value to something other than 4 — make sure both the http and https values are exactly 4, not 3 or 2.
Some users also forget to restart their browser after making the change. The registry change takes effect when ready at the system level, but your browser may have already cached the site or loaded it before the change. Close the browser completely and reopen it to see the block in action.
Frequently Asked Questions
Can I block other websites the same way?
Yes. The process is identical for any website. Instead of creating a youtube.com key, create a key with the domain name of the site you want to block — for example, facebook.com or twitter.com. Create http and https DWORD values set to 4 inside each key. You can block multiple sites by creating multiple keys in the Domains folder.
Will this block YouTube on my phone or tablet?
No. Registry edits only affect Windows computers. If you want to block YouTube on phones or tablets, you will need to use parental controls built into those devices or use a network-level filter on your router. Those methods are separate from Regedit and work differently.
What if I do not see the Domains folder in ZoneMap?
The Domains folder may not exist if no sites have been added to the restricted zone before. Right-click on ZoneMap, select New, then Key, and type Domains. Windows will create the folder for you. Then proceed with creating the youtube.com key inside it.
Can a user undo this block if they have administrator access?
Yes. Anyone with administrator access can open Regedit, navigate to the same location, and delete the youtube.com key. If you want to prevent this, you can use Group Policy (on Windows Pro and Enterprise editions) to lock the registry and prevent changes, but that requires additional setup beyond Regedit alone.
Does this method work on all versions of Windows?
This method works on Windows 10 and Windows 11. The registry path and process are the same on both versions. Older versions of Windows have slightly different paths, but the principle is identical. If you are using Windows 7 or earlier, the ZoneMap location may be in a different place — check your Windows version documentation.