How to block a website in Chrome on a Mac or Windows PC
By Emma Lampert. Updated 1 December 2026. 7 minute read.

To block websites on Chrome for a child, use Google’s Family Link app: select your child, tap Controls, then Google Chrome and Web, then Approved sites and Blocked sites, and add the site. For your own Chrome profile, Google’s help describes no block setting, and on work or school computers an administrator blocks sites with a policy. On a Windows PC, a line in the hosts file blocks a site in every browser, while on a Mac, Screen Time’s website limits are listed under Safari.
Can you block websites on Chrome without an extension?
Yes, in three cases: for a child whose Google Account is supervised with Family Link, on a computer where a school or company manages Chrome, and on a Windows PC through its hosts file, which blocks a site in every browser. For your own Chrome profile, Google’s Chrome Help describes no setting that blocks a site.
The nearest thing is Site settings, in the three-dot menu under Settings and Privacy and security. It can stop a site’s pop-ups, notifications, sound or JavaScript, and the site still opens.

How do I block a website on Chrome for my child?
Use Google’s Family Link app. It works once your child’s Google Account is supervised and they’re signed in to Chrome with it.
- Open the Family Link app and select your child.
- Tap Controls, then Google Chrome and Web.
- Under Manage sites, tap Approved sites and Blocked sites, then Add a website.
- Type a website, such as www.example.com, or a whole domain, such as example.
A website entry needs its www. part and covers that address only. A domain entry also covers addresses that begin or end differently: Google’s example is that google covers www.google.com and images.google.fr. The same screen offers Try to block explicit sites and Only allow approved sites. When your child meets a blocked site, they can ask to visit it, and the request reaches you in the app.
On a computer, Google warns that your child can sign out of Chrome or switch to another Chrome profile, and may have other browsers, where these settings don’t apply. While they’re signed in with the supervised account, Incognito is turned off. The same settings work in Chrome on Android, iPhone, iPad and Chromebooks.
How are websites blocked on a work or school computer?
An administrator sets a Chrome policy, Block access to a list of URLs (URLBlocklist), which stops pages at the listed addresses from loading. An entry of example.com blocks example.com, www.example.com and its other subdomains, and youtube.com/watch?v=xyz blocks that one video.
To see whether your Chrome is managed, open the three-dot menu. If Managed by your organization shows at the bottom, it is, and typing chrome://policy in the address bar lists the policies. Ask your administrator to block or unblock a site there. Google’s guide to setting policies with Windows Group Policy or Mac configuration tools is written for IT admins of company computers.
How do I block a website for every browser on Windows?
Add it to the hosts file. Microsoft describes it as a plain-text file that matches site names to IP addresses, one entry per line, and an entry there overrides the normal lookup. Point a site at 127.0.0.1, your own computer, and it stops loading in Chrome and every other browser.
- In File Explorer, go to
C:\Windows\System32\drivers\etc. - Copy the hosts file to your desktop, and open the copy with Notepad.
- At the end, add a line with the address, a space and the site’s names:
127.0.0.1 example.com www.example.com - Save it. A hosts file can’t have an extension, so keep the name hosts.
- Copy it back into the etc folder to replace the old one. If Windows asks for an administrator password, select Continue.
To unblock the site, delete the line the same way, or follow Microsoft’s steps to reset the hosts file.
Microsoft Family Safety can also block sites for a family member, under Content filters. Its filters work only in Microsoft Edge, though. While Filter inappropriate websites and searches is on, Chrome and the other browsers it doesn’t support are blocked, unless you unblock them in App and game filters.
How do I block websites on Safari on a Mac?
With Screen Time. Apple gives these steps for macOS 27 Golden Gate:
- Open the Apple menu, choose System Settings, and click Screen Time in the sidebar. Turn Screen Time on if it’s off.
- If you’re a parent in a Family Sharing group, choose your child from the Family Member pop-up menu.
- Click Content & Privacy, then App Store, Media, Web, & Games.
- For Safari, choose Limit Adult Websites and click Customize.
- Click the Add button below the Restricted list, enter the site’s address, and click Done.
Allowed Websites Only works the other way round: only the sites on its list open. Apple lists these settings under Safari and names no other browser, so for Chrome on a Mac, use Family Link or a policy.
How do I block YouTube on Chrome?
Block YouTube’s address with any of the ways above. In Family Link, add the domain youtube, which also covers www.youtube.com. In the Windows hosts file, put both names on the line: 127.0.0.1 youtube.com www.youtube.com. On a managed computer, an administrator can block youtube.com, or a single video.
Can an extension block websites in Chrome?
Yes. The Chrome Web Store has extensions made for it, and they work in your own profile. Some ask for permissions when you add them, and Google’s advice is to approve only extensions you trust. For one to work in Incognito windows as well, open Manage extensions, select its Details and turn on Allow in incognito. How to install, pin and remove Chrome extensions has the steps.
What if the block doesn’t work?
- If you changed the hosts file, close Chrome and open it again, and check that the line names both example.com and www.example.com.
- If your child still reaches a site, check that they’re signed in to Chrome with their supervised account. Family Link’s settings don’t follow them into another profile or another browser.
- If explicit sites still get through, add them under Manage sites yourself. Google says no filter is perfect.
- If Chrome blocks a site you never blocked, look for Managed by your organization at the bottom of the three-dot menu, then at
chrome://policy. On a personal computer, Google’s page on managed browsers lists what to check.
Where TabOverview fits
TabOverview blocks no sites. It takes a tab out of your tab bar without losing it, so the site you keep drifting back to is no longer one click away.
- Later closes the tab and keeps it ready to come back, as a real Chrome bookmark. In the grid, press Later on the tab’s card, or press ⌘ + Delete on a Mac and Ctrl + Delete elsewhere.
- Bring back, in the message that follows or in the set’s menu, reopens it when you choose: this evening, tomorrow morning, next week, or a date and time you pick.
- Put this window away, in a window’s ••• menu, closes all its tabs and keeps the window as a workspace. Press its button in Tabs, and the window comes back as it was.
To keep tabs open but out of sight, see how to hide tabs in Chrome.

Questions
Does Chrome have a built-in website blocker?
Chrome blocks sites in two cases: for a child’s Google Account supervised with Family Link, and through the Block access to a list of URLs policy that an administrator sets on a managed computer. Google’s help describes no blocker for your own profile. Site settings can stop a site’s pop-ups or notifications, and the site still opens.
How do I block a website on Chrome without an extension?
For a child, open the Family Link app, tap Controls, then Google Chrome and Web, then Approved sites and Blocked sites, and add the site. On a Windows PC, a line such as 127.0.0.1 example.com www.example.com in the hosts file blocks the site in every browser. On a work or school computer, ask your administrator.
Can I block YouTube in Chrome for my child?
Yes. In the Family Link app, select your child, tap Controls, then Google Chrome and Web, then Approved sites and Blocked sites, and add the domain youtube, which also covers www.youtube.com. On a Windows PC, the line 127.0.0.1 youtube.com www.youtube.com in the hosts file blocks it in every browser.
Does Screen Time block websites in Chrome on a Mac?
Apple’s guide lists Screen Time’s website limits, Limit Adult Websites and Allowed Websites Only, under Safari and names no other browser. To block a site in Chrome on a Mac for a child, use Family Link.
Read next
- How to hide tabs in Chrome: the tab bar, Windows 11, Mac
- How to pin, install and remove Chrome extensions
- How to change wallpaper on a Chromebook and use your own photo
Sources
- Chrome & your child’s Google Account, Google For Families Help
- Change site settings permissions, Google Chrome Help
- Check if your Chrome browser is managed, Google Chrome Help
- URL blocklist filter format, Chrome Enterprise and Education Help
- Set Chrome browser policies on managed PCs, Chrome Enterprise and Education Help
- URLBlocklist policy definition, Chromium source code
- Install and manage extensions, Chrome Web Store Help
- How to reset the Hosts file back to the default, Microsoft Support
- Filter websites and searches using Microsoft Family Safety, Microsoft Support
- Change App Store, Media, Web, & Games settings in Screen Time on Mac, Apple Support
