Guide · Windows 11 and 10

How to block porn on Windows.

There are four free ways, and each takes a few minutes to set up. Each one can also be switched off again in a few clicks by whoever set it up, which on your own PC is you. Here is each one, how to set it up, and how it comes off.

Checked 26 November 2026 against Microsoft’s, Cloudflare’s, Cisco’s, Google’s and Mozilla’s own help pages, listed at the end.

The short answer.

For yourself, the quickest start is a family DNS filter plus SafeSearch: a few minutes, and nothing to install. For a child’s account, Microsoft Family Safety is the most complete free option, as long as the child has a standard account and you keep the passwords. None of the four can stop the person who runs the PC as administrator, and that is the part most guides leave out.

1. Use a family DNS filter.

Every site name your PC looks up goes to a DNS server. A family DNS server does not hand out the real address of a site it has classed as adult, so the site fails to load in every browser that uses the PC’s DNS. Two free ones:

  • Cloudflare 1.1.1.1 for Families blocks malware and adult content at 1.1.1.3 and 1.0.0.3 (IPv6: 2606:4700:4700::1113 and 2606:4700:4700::1003).
  • OpenDNS FamilyShield blocks sites commonly categorised as adult content at 208.67.222.123 and 208.67.220.123.

On Windows 11

  1. Open Start, then Settings, then Network & internet.
  2. Select the connection you use, Wi-Fi or Ethernet.
  3. Find DNS server assignment and select Edit. If it is not there, Microsoft’s own page puts the DNS boxes under Wi-Fi, Manage known networks, your network, then Edit next to IP assignment.
  4. Change Automatic (DHCP) to Manual.
  5. Turn on IPv4 and enter 1.1.1.3 and 1.0.0.3. Turn on IPv6 and enter the two IPv6 addresses above.
  6. Select Save.

On Windows 10

  1. Open Settings, then Network and Internet, then Change adapter options.
  2. Right-click your Wi-Fi or Ethernet connection and select Properties.
  3. Select Internet Protocol Version 4, then Properties, then Use the following DNS server addresses, and enter the two IPv4 addresses. Select OK.
  4. Do the same for Internet Protocol Version 6.

Windows 10 reached the end of Microsoft’s support on 14 October 2025.

To cover every device in the house at once, put the same addresses in your router’s DNS settings instead. That needs the router’s admin login.

How it comes offThe same screen, set back to Automatic. Cisco’s own FamilyShield document says DNS filtering can be bypassed by changing the DNS settings, by a VPN, or by DNS over HTTPS in the browser. Chrome has a Use secure DNS switch (Settings, Privacy and security, Security) that can send lookups to a different provider, Firefox has the same under DNS over HTTPS, and Windows 11 has its own DNS over HTTPS setting in the same dialog as above. A router filter is skipped by any device that sets its own DNS.

2. Turn on SafeSearch.

SafeSearch keeps explicit results out of search. In Google, open the SafeSearch settings and choose Filter (the other choices are Blur and Off). In Bing, open the menu at the top right, then Settings, then More, choose Strict and Save.

Google says SafeSearch only works on Google Search: it does not affect other search engines or websites, so a site you open directly is not covered. Treat it as a second layer, never the only one.

How it comes offThe same menu, set to Off, unless someone else has locked it: Google shows a lock when the setting is managed by a parent, a school, or the administrator of the device or network. Google’s way to lock it on one PC is a line in the hosts file, and Google says administrators on the device can undo that line.

3. Block sites in the hosts file.

The hosts file is a plain-text system file that maps site names to addresses, and Microsoft says its entries can override normal name lookups. It lives in C:\Windows\System32\drivers\etc. A line such as 0.0.0.0 example.com points that name at an address that goes nowhere, so the site does not load.

  1. Open the file as administrator. Microsoft’s free PowerToys includes a Hosts File Editor that starts as administrator by default. If its Open as administrator setting is off, it runs read-only, and saving a change says Failed to save hosts file.
  2. Add one line per site name you want to block, and save.

You write every line yourself, so the list is only as long as you make it. It suits a handful of sites, not the whole category.

How it comes offDelete the lines. Microsoft and Google both say that users who are administrators on the PC can undo a hosts file change.

4. Use Microsoft Family Safety, for a child’s account.

Family Safety is Microsoft’s free parental control. The organizer of a Microsoft family group manages the filters for the other members, and the child has to be signed in with their own Microsoft account.

  1. Sign in at account.microsoft.com/family and select Family Safety.
  2. Find the family member, open the more options menu, then select Go to overview.
  3. Select Edge as the platform.
  4. Turn on Filter inappropriate websites and searches. You can also add sites to Blocked sites or Allowed sites, or turn on Only use allowed websites.

The filter works in Microsoft Edge. With it on, Microsoft blocks the browsers it does not support, so that filtering cannot be bypassed by opening another one. Give the child a standard Windows account: Microsoft says a child who is an administrator on the device can change or break the Family Safety settings.

Microsoft has also announced that the Family Safety app for Windows is deprecated. Managing it continues on the web at account.microsoft.com/family and in the mobile app.

How it comes offThe organizer turns the filter off, or unblocks another browser under App and game filters. Family Safety is built for a parent and a child. We found no Microsoft page that describes filtering your own adult account, and the organizer, the one person who can switch the filter off, is the administrator of the group.

What all four have in common.

Each one is a setting, and whoever set it can unset it, in about the same few clicks it took to set it up. Between a parent and a child, that is fine: the parent holds the password. Blocking it for yourself, it is the whole problem. The person who wants it off at one in the morning is the person who has the password.

Only two things change that. Someone else holds the password, and you never learn it. Or there is a long enough wait between deciding to turn it off and it actually coming off, that the decision passes.

What Basalt does differently.

Basalt is a porn blocker for Windows 10 and 11 (64-bit), and for iPhone. On a PC it is built to refuse adult site names underneath the browser, so it covers every browser, including ones you have not installed yet. On a PC, turning it off or uninstalling it takes a waiting period you choose when you install it. You can make the period longer at any time, in about two minutes. There is no path that makes it shorter. On an iPhone you own, nothing can make it unremovable; the iPhone guide explains why.

It is built for the eight things people try at one in the morning, from uninstalling to moving the system clock, and the front page lists each one and what happens. Its main stated limit on a PC is a VPN that was already installed and running before Basalt, which can carry a request past it. The others are on the questions page.

Checkout is not open yet. The support page says when it opens.

On an iPhone too?

Apple builds a filter into Screen Time. The iPhone guide covers it, the Screen Time passcode that locks it, and how each comes off.

Sources.

Found a step that has changed? Write to support@basaltblocker.com and it gets fixed.