How to Limit Time on Websites in Chrome (YouTube, Any Site)
Most people who want a time limit already know which site costs them the most. What fails is enforcement. Willpower at 11 pm rarely wins against an autoplay queue, and a rule that lives only in your head is easy to renegotiate.
This guide shows how to set an automatic time limit for any website — YouTube, Reddit, the news, a shop or a work tool you keep reopening — using a free, open-source extension for Chrome, Edge and Firefox.
Why not install a single-site limiter?
The store is full of single-purpose limiters: one for YouTube, another for TikTok, a third for Instagram.
- One extension per site means five sites, five tools, five sets of permissions
- Most of them only know their one target site; a news habit or a Reddit habit is out of scope
- Each extra extension is extra memory and one more party your browser must trust
A general-purpose rule engine handles all of them with one tool: the same extension that tracks your time can also enforce limits on any URL pattern.
How the limiting rules work
In Time Tracker - Web Habit Builder, each rule combines a target URL with one or more constraints (see the full control guide):
| Constraint | What it does |
|---|---|
| Daily limit | Maximum time per day on the site; once the budget is used up, the site is covered by a blocking mask until the next day |
| Time limit per visit | Caps each single visit, so "just checking quickly" can't become an hour |
| Blocked periods | Blocks the site during defined windows, e.g. 9:00–12:00 on workdays |
| Weekly limit | Maximum time per week, for patterns where a daily cap doesn't fit |
| Focus sessions | While a Focus or Pomodoro session runs, restricted sites stay blocked |
URLs support expressions, so one rule can cover a whole domain or specific sections of it.
Setting a YouTube limit, step by step
- Install the extension from your browser's store; it's free and needs no account
- Open the dashboard and go to the control section
- Create a rule with
https://www.youtube.comas the restricted URL - Set a daily limit — for example 30 minutes
- Optionally add a per-visit cap of 10 minutes, and blocked periods for your deep-work window
From now on, when the daily budget is spent, the page gets covered by a blocking mask, and it stays blocked until the next day unless you deliberately change the rule. The optional unlock verification (a question, a password or two-factor) makes bypassing the rule a deliberate act rather than a one-click one.
Blocking YouTube without losing YouTube Music
A rule that covers youtube.com and every subdomain also covers music.youtube.com. A reviewer of the Limit extension asks for a way around exactly that: YouTube limited, YouTube Music left open because it plays during work. The URL field matches patterns rather than one fixed site, so the fix is to narrow the rule instead of widening the block:
- Restrict
www.youtube.comonly, andmusic.youtube.comstays outside the rule - Restrict a path such as
www.youtube.com/shorts, and the watch page keeps working - Use
+as a prefix to exclude specific subpages from a rule that covers a wider pattern
The same approach separates a distracting feed from a work tool on the same domain, which no site-level cap can do.
What happens when the budget runs out
The page is covered by a blocking mask until the budget resets. Before that point, an optional reminder can show "Less than N minutes until the time limit!" inside the page so a long task is not interrupted mid-edit. It is off by default; turn it on in the options and set the lead time in minutes.
Two settings decide how firm the block is. Delay count allows a fixed number of postponements per rule. Under verification, the extension can require a password, a custom question, text retyped within a time limit, a six-digit authenticator code, digits from the decimal part of π, or a set phrase before the site opens again. A rule marked Locked asks for the same verification even when the limit has not been reached yet.
The same rule works for everything else
Because the rule engine matches URL patterns rather than a hardcoded site list, the same approach limits social media, news, shopping or gaming sites. It also runs on Chrome, Edge and Firefox, so your rules cover every browser you use.
A practical starter set:
- Social feeds and news: 20 minutes/day, plus blocked periods during work
- Reddit during work hours: a blocked period of 9:00–12:00 beats a daily number, because it removes the decision
- Video streaming: daily limit in the evening window you actually want
All data, your rules and usage history alike, stays local in your browser. You can export it anytime or answer common questions in the FAQ.
Start with one rule for the site that costs you the most time; the rest can wait. The install page has the store links.
