Skip to article
DeepZone
Blog / Stop the scroll / YouTube

How to Block YouTube During Work on Mac With DeepZone

SCREENSHOT TUTORIAL · YOUTUBE 01 Create profile 02 Check routes 03 Set study time DEEPZONE.APP

The setup: create a DeepZone profile called “YouTube Study Windows,” put youtube.com in its Sites blocklist, and reserve separate times for tutorials or courses. The rule applies to that whole site regardless of a video’s topic. It does not distinguish educational videos from entertainment or establish blocking of every separate embedded-player host.

Give the tutorial a time of its own

When a two-minute search becomes a succession of recommended videos, decide when you need YouTube before opening it. Write down one learning task, the direct video or course link, and the time you will stop. Keep that note with the work you are doing.

The “YouTube Study Windows” profile puts a boundary around the rest of the day. The example blocks weekdays from 09:00 to 17:00, leaving a planned learning window before 09:00 or after 17:00. Change those hours for your real timetable. If a course is essential throughout the morning, leave that period available and protect a different work block.

The recipe uses website blocking and basic schedules, which the official DeepZone plan page lists in Free. The captured installation had Pro Lifetime; Free entitlement was not tested separately. Use an available profile slot in your installed version. No keyword rule, native-app rule or Lock Mode was enabled.

1. Create “YouTube Study Windows”

Open DeepZone from the Mac menu bar, open Profiles, and add a profile named YouTube Study Windows. Leave it paused while setting it up. Check that no other active profile or category is already blocking YouTube; otherwise you cannot tell which setting caused the result.

DeepZone Profiles showing the YouTube Study Windows demonstration profile
The dedicated profile keeps this website list and its schedule together. Select any screenshot to open it at full size.

Leave Lock Mode off for the first test. A short, reversible test lets you correct the list or restore a needed lesson without waiting for a locked session to finish.

2. Add the parent domain, then check real links

In Blocklist → Sites, add youtube.com. Start with that parent domain. Test a normal watch link and the links you actually use before adding any other hosts.

YouTube Study Windows website blocklist in the installed DeepZone app
Use the Sites list for website domains. Keep this list small enough to explain every entry.

youtube.com is a domain; www.youtube.com and m.youtube.com are subdomains. /watch and /shorts/ are paths. .com is the top-level domain, or TLD. Adding the parent domain is a whole-site rule, not a way to distinguish videos by subject.

Route inventory for a whole-YouTube block
Host or routeTypeWhat to do
youtube.comParent domainAdd to Sites; test the homepage and a normal video.
www.youtube.com, m.youtube.comSubdomainsTest under the parent rule before adding redundant entries.
youtu.beSeparate domain used by short linksNot added: the root and the tested sample-video link both redirected to blocked YouTube.
youtube-nocookie.comSeparate embed domainNot added and not blocked in this test. Its reachable root does not establish whether a course player works.
Your course or tutorialRequired learning routeTest playback during an available window, including any embedded player.

YouTube’s official embed instructions document the separate youtube-nocookie.com host used for privacy-enhanced players. Blocking more hosts can also stop a video embedded inside a course website. Opening the course homepage alone is not a playback test.

3. Add the blocked hours

In Schedule → Add hours, select Monday through Friday and enter 09:00–17:00 for the example work block. Keep the intended learning time outside that range. A schedule describes when blocking runs; it is not a whitelist of educational videos.

YouTube Study Windows schedule set to weekdays from 09:00 to 17:00
The captured profile blocks weekdays from 09:00 to 17:00. Put your learning window outside those hours.

Before relying on a long schedule, use a short unlocked test near the current time. Check the profile state just before and after the end. Another running profile can keep YouTube blocked even when this one finishes.

4. Test the interruption and the return to learning

With the profile active, open a fresh YouTube tab, then a direct video link and a shared link. Try a lesson that was already open as well: loaded content and a new request are different cases. Open a site you need for work in the same session.

Installed DeepZone interruption page opened directly with youtube.com as its domain label
Reference from the installed DeepZone app’s own interruption page, opened directly with youtube.com as its label. This shows the real app UI; it is not a capture of an automatic redirect from a blocked route.
MDN Web Docs homepage loading during the YouTube blocking test
The MDN Web Docs homepage loaded while the demonstration profile was active.

Pause the unlocked profile or wait for the test window to finish, then revisit the same video and press Play. If you need a signed-in course, test that exact lesson in your normal browser too. A logged-out page loading does not establish signed-in course access.

Google for Developers video playing after the DeepZone test window ended
A cropped view of the official sample video after the test window ended. Playback was confirmed separately by observing the timer advance from 0:00 to 0:02 and a Pause control; those controls are not visible in this image.
Observed route checks, October 19, 2026
RouteBefore blockingWhile active
www.youtube.com/Returned HTTP 200.Fresh connection refused.
m.youtube.com/Redirected to the desktop site; HTTP 200.Fresh connection refused.
youtu.be/Redirected to the YouTube homepage; HTTP 200.Redirected to YouTube, then the connection was refused.
www.youtube.com/watch?v=M7lc1UVf-VENot separately recorded before activation.Fresh connection refused.
youtu.be/M7lc1UVf-VENot separately recorded before activation.Redirected to the sample watch route, then connection refused.
www.youtube.com/embed/M7lc1UVf-VENot separately recorded before activation.Fresh connection refused. This request does not test playback.
www.youtube-nocookie.com/Server returned HTTP 404.Server still returned HTTP 404: reachable, with no root page. No embed playback established.
developer.mozilla.org/en-US/, deepzone.app/Returned HTTP 200.Still returned HTTP 200.

A separate private-window check in Safari 26.6.2 (build 21624.5.1.11.3) also failed to connect to www.youtube.com/watch?v=M7lc1UVf-VE while the profile was active. That browser showed a connection error; the app-page reference above does not imply it redirected automatically to DeepZone’s interruption UI.

Test scope: fresh network requests, the public sample video in Codex’s browser and the specific Safari private-window route above were checked on macOS 26.6.2 with DeepZone 2.0.0 build 24. The Codex browser’s YouTube sign-in state was not separately established. Installed Chrome, account-specific courses, embedded-player playback and background playback were not validated. One public video playing does not establish every course or embed.

The scheduled end was observed. After capturing the example workweek, the demonstration used a short Monday 09:00–09:25 window. At 09:25 Paris time on October 19, the profile paused automatically. The homepage, mobile entry, shared root and sample watch/shared/embed routes returned HTTP 200 immediately afterward. A separate browser check then played the official sample video. This establishes the tested boundary and that video’s return, not a full week of scheduling.

If a video opens, or your lesson stays blocked

At the end of a week, review whether the learning windows were useful. Move the hours if needed, and keep a short list of the videos you intend to watch so the available window has a purpose.

Sources and related setups

Checked October 19, 2026: DeepZone’s official product page for profiles, website blocking, schedules and plan eligibility; YouTube Help: Embed videos and playlists for the separate embed host and playback caveats; and Google’s IFrame API reference for the official sample video used in the route probes. Product descriptions do not substitute for the route tests above. The configuration pictures are direct captures from the installed app. The interruption picture is a directly opened app-page reference, separate from the route probes.

For the wider setup, read how to block social media on Mac, scheduled website blocking, and the X and Twitter focus-time tutorial.

DeepZone for Mac

Set up YouTube Study Windows.

Download DeepZone, create “YouTube Study Windows,” and test the blocked and useful routes before scheduling your week.

Download free for Mac
← All articles