3Eyes / Blog

How to Block YouTube on a Laptop (HP, Dell, Lenovo, Any Brand)

There is no HP method, no Dell method and no Lenovo method. A laptop runs Windows, macOS or Chrome OS, and YouTube gets blocked at the operating system or the network — the brand on the lid changes nothing. If you searched for your specific brand, you are in the right place; you just need the section that matches the operating system.

What genuinely is different about a laptop is that it leaves the house. Every network-level method — router blocking, DNS filtering, OpenDNS — stops the moment your child joins school Wi-Fi, a friend's network, or their own phone hotspot. That single fact rules out most of the advice written for desktops, and it is what this guide is organised around.

This is the laptop-specific companion to our main guide on blocking YouTube on a child's computer.

The Only Table That Matters: Does It Travel?

Method Works at home Works on school Wi-Fi Works on a hotspot Bypass difficulty
Router URL filtering Yes No No Medium
Router DNS filtering (OpenDNS etc.) Yes No No Medium
Hosts file Yes Yes Yes Easy (needs admin)
Windows Family Safety / macOS Screen Time Yes Yes Yes Medium
Browser extension Yes Yes Yes Trivial
Standard (non-admin) account Underpins all of the above
Installed allowlist software Yes Yes Yes Hard

Two conclusions fall out of it. First, anything configured on your router is a second layer for a laptop, never the only layer. Second, a browser extension is not a control — it is uninstalled from the same menu it was installed from, in two clicks, by a nine-year-old.

Step 0: Make the Account a Standard User

Do this before anything else, on every operating system. On Windows: Settings > Accounts > Other users (or Family), select your child's account, Change account type, choose Standard User. On macOS: System Settings > Users & Groups, click , and switch off Allow this user to administer this computer.

On a Standard account your child cannot edit the hosts file, install a VPN, install a different browser, or switch off the parental controls. On an Administrator account they can do all four in under two minutes, and every method below becomes a polite suggestion. This one change does more than everything else on this page combined.

How to Block YouTube on a Windows 11 or Windows 10 Laptop

Windows gives you two device-level routes. Use both.

The hosts file (works in every browser, travels with the laptop):

  1. Press Start, type Notepad, right-click it and choose Run as administrator
  2. File > Open, set the file-type dropdown to All Files, and open C:\Windows\System32\drivers\etc\hosts
  3. Add these lines at the bottom:
127.0.0.1 youtube.com
127.0.0.1 www.youtube.com
127.0.0.1 m.youtube.com
127.0.0.1 youtu.be
127.0.0.1 youtube-nocookie.com
127.0.0.1 www.youtube-nocookie.com
127.0.0.1 youtubei.googleapis.com
  1. Save, then open Command Prompt and run ipconfig /flushdns

youtubei.googleapis.com is the entry most guides miss — it is the API behind embedded players and the YouTube app, and leaving it open means embeds keep working. The step-by-step detail is in our hosts file guide.

Microsoft Family Safety (adds schedules and reporting):

  1. Go to family.microsoft.com and sign in, or open the Family Safety app
  2. Select your child > Content filters > Web and search
  3. Turn on Filter inappropriate websites
  4. Under Blocked sites, add youtube.com, m.youtube.com and youtu.be

Family Safety's web filtering only enforces in Microsoft Edge, and it blocks other browsers wholesale rather than filtering them. That is workable — if Chrome and Firefox are blocked entirely, Edge-only filtering is complete — but check that the "Only allow these browsers" behaviour is actually on. Our Family Safety setup guide covers the gaps in full.

How to Block YouTube on a MacBook

Same as any other Mac: Screen Time's content restrictions plus, ideally, its Allowed Websites Only mode, backed by the hosts file. The complete walkthrough with current menu paths is in how to block YouTube on a Mac or MacBook.

The MacBook-specific point is the portability one: Screen Time travels with the laptop, router filtering does not. If your Mac block relies on OpenDNS at home, it does nothing at school.

How to Block YouTube on a Chromebook Laptop

Chrome OS has no hosts file, so the method is entirely different — Google Family Link, plus closing the Android app, Guest mode and second-account gaps that let most Chromebook blocks fail. That is covered in how to block YouTube on a Chromebook.

HP, Dell, Lenovo, Acer and Asus: What Actually Differs

Nothing, for blocking purposes — but three brand-level things are worth knowing.

Pre-installed "parental control" trialware. Many consumer laptops ship with a bundled security suite that includes a web filter on a 30-day trial. It will stop filtering when the trial lapses, usually without an obvious warning, and parents often discover months later that the block quietly expired. Either pay for it deliberately or uninstall it and use a method above.

Manufacturer recovery partitions. A factory reset from the recovery partition wipes your parental controls along with everything else, and on most laptops it is reachable from the boot menu without a password. This is a real bypass route for a determined teenager. A BIOS/UEFI supervisor password blocks access to the boot menu, and is set in the firmware setup screen (F2, F10 or Del at power-on, brand depending).

BIOS access generally. The same supervisor password prevents booting from a USB stick, which otherwise lets a child run an entirely different operating system off a thumb drive and ignore everything you configured.

Add the Network Layer Too — Just Don't Rely On It

At home, router-level filtering is still worth setting up. It covers the devices you cannot install anything on — the console, the smart TV, a visiting friend's tablet — and it catches the laptop whenever it is on your Wi-Fi.

Set the router's DNS to a filtering resolver, or use its built-in URL filter. The full procedure by router brand is in our router blocking guide — the menus are identical, only the domains change.

Then remember what the table at the top said: none of it applies at 8:40am on the school network.

How Kids Bypass Laptop Blocks

  • A phone hotspot. The most common bypass, and it defeats every network method instantly. Only a device-level control survives it.
  • A VPN. Tunnels past hosts file, DNS and router blocking together. Blocked by a Standard account, since they cannot install one. See can a VPN bypass parental controls.
  • A portable browser. Firefox and Chrome both have versions that run from a USB stick without installation, carrying their own settings and ignoring yours.
  • DNS-over-HTTPS. Chrome and Firefox can route DNS lookups directly to Cloudflare, silently skipping your hosts file and router. Turn it off in each browser's security settings.
  • Web proxies and YouTube front-ends. Endless mirror sites relay YouTube from domains you have never seen. This is the structural failure of blocklists, and the reason allowlisting exists.
  • Editing the hosts file back. Thirty seconds, if they have admin rights.

The through-line is that a blocklist requires you to know every route in advance, and a laptop that travels gives your child networks you do not control on which to look for the ones you missed. An allowlist reverses it: nothing loads unless approved, so an unknown proxy is blocked by default, on any network. That is the reasoning in parental controls kids can't bypass, and how 3Eyes approaches it.

Frequently Asked Questions

How do I block YouTube on an HP laptop?

Identify the operating system — almost always Windows 11 or Windows 10 — and follow the Windows section above. HP-specific software is not involved. The only HP-specific step worth taking is setting a BIOS supervisor password to block recovery-partition resets.

How do I block YouTube on a laptop for kids without them knowing?

You can, technically — a hosts-file block looks like a site outage. Most parents find that counterproductive: an unexplained failure invites troubleshooting, and troubleshooting is how bypasses get discovered. Telling a child the site is blocked and why usually holds longer than hiding it.

Can I block YouTube on a laptop for free?

Yes. The hosts file, Microsoft Family Safety, macOS Screen Time and Google Family Link are all free and all travel with the device. Paid software buys channel-level approval and bypass resistance, not basic blocking. See free parental control software.

Will blocking YouTube on the laptop stop it on their phone?

No. Every method here is per-device. The phone needs its own setup.

How do I block YouTube on a laptop only during homework hours?

Use scheduling rather than blocking: Microsoft Family Safety and macOS Screen Time both support time windows. The approach is covered in temporary vs permanent blocking and setting a bedtime on the computer.