How to Block Porn on Your Computer (Windows, Mac, and Chromebook)

Updated · 10 min read

How to Block Porn on Your Computer (Windows, Mac, and Chromebook)
In this article

Most of the advice about quitting porn is about your phone, and the laptop kind of gets forgotten. Then it’s late, you’re on your bed with the laptop open “just to watch something”, and a private window is one shortcut away with nothing in between.

The good news is that you can block porn on your computer in about 10 minutes, and you don’t need to be a tech person to do it. Willpower is pretty unreliable when you’re tired, stressed or bored, and a blocker means you don’t have to count on it in that exact moment. This guide is for your own laptop or desktop: how to set it up on Windows, Mac and Chromebook, what each tool can’t do, and the router setting that covers every device in the house at once. If you’re setting up a Mac for your kid, parental controls on Mac is written for that instead.

Stack two or three layers

No single blocker is impossible to get around, and if you go looking hard enough you’ll find a way past any one of them. That’s fine, because the goal is to put enough in the way that you can’t act on an impulse in ten seconds at midnight.

The setups that hold up best use a few of these together:

  1. A DNS filter: your computer can’t even look up porn sites, in any browser or app.
  2. System settings someone else controls: a Screen Time passcode on a Mac, or a Family Safety organizer on Windows.
  3. A blocker app or extension: catches what the others miss, and some can lock themselves for a set time.
  4. A router filter: covers every device on your home Wi-Fi.

Two or three of these is way stronger than one. Whatever you pick, the part that makes it hold is someone else knowing the passwords, so you can’t quietly undo it on a bad night.

The DNS filter (the same on every computer)

A good free one is CleanBrowsing, and every section below uses it, so here’s the difference between its two filters (CleanBrowsing):

Filter IPv4 addresses IPv6 addresses What it blocks
Family 185.228.168.168 and 185.228.169.168 2a0d:2a00:1:: and 2a0d:2a00:2:: Adult sites, the proxy and VPN sites people use to get around filters, and mixed-content sites like Reddit. Forces SafeSearch on Google, Bing and YouTube.
Adult 185.228.168.10 and 185.228.169.11 2a0d:2a00:1::1 and 2a0d:2a00:2::1 Adult sites, with SafeSearch on Google and Bing. Leaves proxies, VPNs and sites like Reddit open.

If you’re doing this to quit porn, use the Family filter (the steps below use its addresses). The Adult filter leaves Reddit and the usual workarounds open, and those are exactly what you’d go looking for on a bad night. The trade-off is that Family also blocks some normal stuff, Reddit included.

Put in the IPv6 addresses as well as the IPv4 ones. If your network uses IPv6 and you only set the IPv4 pair, your computer can keep using your internet provider’s IPv6 servers and skip the filter.

Once it’s set, have the person who holds your passwords test it by trying a site that should be blocked in every browser you use. If one still loads, look in that browser’s settings for a “secure DNS” option and make sure it isn’t set to a different provider.

Blocking porn on Windows

DNS filtering (Windows 10 and 11)

  1. Press Windows + R, type ncpa.cpl and press Enter to open your network connections.
  2. Right-click your Wi-Fi or Ethernet connection and choose Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4), click Properties, choose Use the following DNS server addresses, and type the two IPv4 addresses.
  4. Do the same for Internet Protocol Version 6 (TCP/IPv6) with the two IPv6 addresses, then click OK.

Windows 11 also has these fields in the Settings app, under your connection in Network & internet (Microsoft’s guide).

Microsoft Family Safety

Family Safety is Microsoft’s parental control, and it works a bit differently from how it’s often described:

  • The web filter only works in Microsoft Edge, while you’re signed in to your Microsoft account. When it’s on, other browsers are blocked so they can’t be used to get around it (Microsoft).
  • The family organizer is the one who turns it on: in their Microsoft account they open Family Safety, pick your name, select Go to overview, then Edge, and turn on Filter inappropriate websites and searches. So for your own account, someone else has to be the organizer (a friend, your brother, your wife), and you join their family as a member.
  • Right now an adult member can’t switch these filters off themselves and has to ask the organizer. Microsoft says it’s working on an update that lets adults opt out (Microsoft), so check that page before you count on it.

Blocker apps and extensions

  • Cold Turkey Blocker (Windows and Mac): the free version blocks websites and runs timed blocks. Locking a block so it can’t be changed, schedules and passwords are in Pro, which is a one-time purchase (Cold Turkey).
  • BlockSite (browser extension and app): simple to set up, but password protection is a paid Premium feature (BlockSite’s App Store listing). Without it, you can open the settings and take a site off the list whenever you want.

Blocking porn on a Mac

Screen Time

Apple redesigned Screen Time in macOS 27, so the path depends on your version (Apple menu > About This Mac tells you which one you have):

  • macOS 27: go to System Settings > Screen Time > Apps & Websites and click Restrictions, which is where adult-website filtering lives. The Blocked list on the same screen lets you add specific sites (Apple).
  • macOS 26 and earlier: go to System Settings > Screen Time > Content & Privacy > App Store, Media, Web, & Games, choose Limit Adult Websites under Safari, and click Customize to add sites you want blocked (Apple).

Then turn on Lock Screen Time Settings, which you’ll find by scrolling down in Screen Time settings (Apple’s guides for macOS 27 and macOS 26). Have someone you trust type the passcode so you never see it. If it asks for an Apple Account for passcode recovery, have them use theirs, because that’s the account that can reset the passcode later (it works the same way as on iPhone).

One more gap: an administrator can add a new user account (Apple), and a new account has none of these restrictions. The strongest version is making your own account a standard user and letting someone else keep the admin password. That makes installing apps more of a hassle, so it’s a step for when the lighter setup keeps failing.

DNS filtering

Go to System Settings > Network, click your network service (usually Wi-Fi), then Details > DNS, and use the + button under the DNS servers list to add the four Family filter addresses (Apple). This covers every browser and app on the Mac.

If you use iCloud Private Relay, test Safari afterwards. Private Relay handles Safari’s DNS lookups itself and encrypts them (Apple), which can get in the way of a DNS filter, so if a blocked site still loads in Safari, try again with Private Relay turned off.

Blocker apps

  • Obex Desktop (macOS 15 or later): free, and it blocks adult content at the network level across every browser and app on your Mac. There’s no switch in the app to turn the adult-content block off.
  • SelfControl (Mac, free and open source): you add sites and set a timer, and they stay blocked until the timer runs out, even if you restart the Mac or delete the app (SelfControl).
  • Freedom (Mac, Windows, iPhone, Android, Chromebook): the free plan has custom blocklists. Scheduled sessions and Locked Mode, which stops you quitting a session, are paid (Freedom). With a schedule, the block is already running before the risky hours start.
  • Cold Turkey works on Mac too, with the same free and Pro split as on Windows.

Blocking porn on a Chromebook

On a Chromebook pretty much everything happens in Chrome, but Chrome’s own site settings won’t help here. They control what sites are allowed to do, like showing pop-ups or using your camera (Chrome Help), and nothing in there blocks adult sites. These do:

DNS filtering

Select the time at the bottom right, select the Wi-Fi icon, then your network’s name, then Network. Under Name servers, choose Custom name servers and enter the Family filter addresses (Google). The setting belongs to that Wi-Fi network, so repeat it for each network you use, like home and school.

If the Chromebook belongs to your kid or teen, Family Link lets you filter Chrome. In the Family Link app, select your child, then Controls > Google Chrome and Web, and choose Try to block explicit sites or Only allow approved sites. You can add specific sites under Manage sites, and incognito mode is turned off on a supervised account. Google is upfront that no filter is perfect (Google).

It doesn’t work as a lock on your own adult account, though. Family Link supervision is built for under-18s, and once you’re 18 you can stop supervision without the parent’s approval (Google).

Extensions

Freedom and BlockSite both have Chrome extensions. On a Chromebook you manage yourself, an extension is easy to remove, so treat it as an extra layer on top of DNS, and give any password (BlockSite’s is a paid feature) to someone else.

Blocking porn on your router

If you mostly use one home network, this is the most complete option, because it covers your laptop, phone, tablet and TV at the same time. Log in to your router’s admin page (the address and login are usually on a sticker on the router, or in its app), find the DNS settings, and enter the CleanBrowsing Family addresses. Some routers also come with their own parental controls or content filter, which is worth a look while you’re in there.

Two things decide whether it holds. Someone else should keep the router’s admin password, otherwise the setting is one login away from being undone. And it only covers that Wi-Fi: mobile data, a friend’s Wi-Fi or a VPN skip it, and a device with its own DNS settings uses those instead.

If you only do two things tonight, set the CleanBrowsing Family filter on your computer or router, and have someone else hold the Screen Time passcode or be your Family Safety organizer.

What about your phone?

If your computer is locked down but your phone is wide open, you’ve only solved half of it. For a lot of guys the phone is the bigger problem anyway, because it’s the thing in bed with you at 11pm with everything one tap away. The same layers work there: Screen Time on iPhone (safe search on Safari has the steps for each iOS version), the router filter at home, and a blocker app. Apps to limit phone use covers the phone side in more detail.

Do it tonight, and tell someone

The best time to set up blockers is when you’re not in a high-urge state, which is pretty much right now while you’re reading this. Set them up while the decision feels easy, so on a bad night it’s already done.

A blocker handles access, but it can’t tell anyone you’ve been fighting it. That part needs a person, and the same person can hold your passwords. A good rhythm is a quick daily check-in, even one text, plus a longer conversation once a week. For tools that combine blocking with accountability, the Covenant Eyes alternatives post compares the main options, and how to quit porn addiction has the whole plan beyond the technical setup.