Android · Mac

YouTube Block

Blocks YouTube on an Android phone or a Mac: the YouTube app, YouTube in every browser, and YouTube videos embedded in other sites. It also stops videos in Pinterest, while the pictures still load. It runs quietly in the background, and turning it off takes a parent PIN on Android, or your admin password on a Mac.

Android · 1.3

2.4 MB

Debug-signed, so the phone will ask you to allow installs from your browser or file manager. Newer builds install over older ones.

Download APK

Mac · 1.2

220 KB

For macOS 12 or later. Not signed by Apple, so open it with right-click → Open the first time.

Download installer

Android

How it works

The app runs a VPN that never leaves the phone and carries nothing but address lookups. When anything asks for a YouTube address, including googlevideo.com, where the video actually streams from, it answers “no such site”. Every other lookup goes through untouched.

Pinterest keeps its pictures and its videos on separate servers, so the app blocks only the video ones (v.pinimg.com, v1.pinimg.com and the rest). Pictures still come through from i.pinimg.com.

What she’ll see

Set up

  1. Install the APK. From this page on the phone, allow installs from the browser when asked. Or from a computer: adb install youtube-block.apk
  2. Open YouTube Block, set a parent PIN, tap Turn blocking on and accept the VPN prompt. That’s basic mode. It works, but the VPN can still be switched off in Settings.
  3. For full mode, which hides the YouTube apps and removes the switches from Settings, turn on USB debugging, temporarily remove every account from the phone (Android requires it), connect a computer and run adb shell dpm set-device-owner dev.oneoff.ytblock/.AdminReceiver Then add the accounts back and turn USB debugging off.
  4. Optionally, tap Hide app icon. To get back in, use Settings → Apps → YouTube Block → its settings link, or dial *#*#9825#*#*.

What it doesn’t cover

Removing it: open the app → Remove full mode → PIN, then uninstall. Full notes are in youtube-block/README.md.

Mac

It relies on her account being Standard

On a Mac an administrator can undo anything, so this works when her account is a Standard account and yours is the administrator. Installing, turning it off and uninstalling all ask for your admin password. Check in System Settings → Users & Groups: her account should say Standard.

How it works

The installer tells macOS to send lookups for YouTube’s addresses and Pinterest’s video servers, the same list as on Android, to a tiny responder on the Mac itself that answers “no such site”. Every other lookup goes out as before. It also turns off Firefox’s own secure DNS and iCloud Private Relay, which would otherwise go around it. An optional browser settings profile makes Chrome, Edge, Brave and Firefox block YouTube themselves too.

What she’ll see

Set up

  1. Download the installer on her Mac, then right-click it → Open → Open. On macOS 15 and later, if there’s no Open button: System Settings → Privacy & Security → Open Anyway.
  2. Click through and enter your admin name and password. Blocking is on as soon as it finishes.
  3. Open Applications → Utilities → YouTube Block → Install browser settings, then approve it in System Settings → General → Device Management.
  4. Quit and reopen any browser that was open.

What it doesn’t cover

Removing it: Utilities → YouTube Block → Uninstall, with your admin password. Full notes are in youtube-block-mac/README.md.

Visit log

Optional, on both. Once connected, the phone and the Mac record the sites they look up while blocking is on, and the last five show on the visits page, behind the Reading Comp parent login, with the picture and video servers each one used.

  1. On the visits page, tap Make a code.
  2. On the phone: YouTube Block → Connect visit log → parent PIN → the code. On the Mac: Utilities → YouTube Block → Connect visit log… → the code → your admin password.

It records server names, like i.pinimg.com, never the page or the picture: everything after the name travels encrypted. Kept 30 days.