How to block adult websites on a computer
There are three places to block adult websites: the network, the operating system and the browser. The further down the list, the easier it is to set up and the easier it is to undo. This guide starts with the strongest free method and ends with what none of them can do.
Method 1: a family DNS filter (blocks in every browser)
Every time you open a website, your computer asks a DNS server where to find it. A family DNS server simply does not answer for adult sites, so the page never loads, whatever browser is used. These services are free and need no account:
| Service | DNS addresses | What it adds |
|---|---|---|
| Cloudflare for Families | 1.1.1.3 and 1.0.0.3 | Blocks malware and adult content |
| CleanBrowsing Family Filter | 185.228.168.168 and 185.228.169.168 | Also blocks proxy and VPN sites and mixed-content sites such as Reddit; sets Google, Bing and YouTube to safe mode |
| CleanBrowsing Adult Filter | 185.228.168.10 and 185.228.169.11 | Adult sites only; Google and Bing SafeSearch |
| OpenDNS FamilyShield | 208.67.222.123 and 208.67.220.123 | Preconfigured to block adult content |
| AdGuard DNS Family protection | 94.140.14.15 and 94.140.15.16 | Also blocks ads and trackers and enables safe search where possible |
On the router (the whole home)
Open your router's admin page in a browser, sign in, find the DNS settings, write down the addresses that are there now, replace them with the two addresses of the service you chose, and save. Every device on the Wi-Fi is then covered. Cloudflare has a short router guide; the menu names depend on the router model.
On Windows 11
Open Settings > Network & internet, choose Wi-Fi or Ethernet and open your connection. Select Edit for the DNS setting, switch to Manual, turn on IPv4, enter the two addresses as Preferred DNS and Alternate DNS, and save (Microsoft's network settings guide).
On a Mac
Open System Settings > Network, select your network service, click Details, then DNS, and add the two addresses to the DNS Servers list (Apple's guide).
Check the browser's secure DNS setting
Browsers can use their own encrypted DNS instead of the system's. In Chrome the setting is Use secure DNS under Settings > Privacy and security > Security. In its default mode Chrome keeps using your current provider, so the filter still works. If a different provider is selected there, the browser goes around your filter (Chrome help). Edge has the same setting under Privacy, search, and services, and Firefox calls it DNS over HTTPS. After setting up, open a site you expect to be blocked in each browser to check.
Method 2: the parental controls of the operating system
These are tied to a user account, can be locked by a parent, and follow that account rather than the network.
- Windows, Microsoft Family Safety: for a child's account, turn on Filter inappropriate websites and searches. It works in Microsoft Edge and blocks other browsers while it is on (Microsoft's instructions).
- Mac, Screen Time: System Settings > Screen Time > Content & Privacy > App Store, Media, Web, & Games > Limit Adult Websites (Apple's guide).
- Chrome with Google Family Link: Controls > Google Chrome and Web > Try to block explicit sites (Family Link help).
How these compare for families is covered in Safer browsing for children.
Method 3: a browser extension
Site-blocker extensions in the Chrome, Edge and Firefox stores keep a list of adult domains and stop those pages from opening. They install in a minute and need no network changes. Their weak points are that they cover one browser profile only, and that anyone who can open the extensions page can turn them off. For yourself, that small barrier is often enough. For a child, combine an extension with method 1 or 2.
What website blocking cannot do
All three methods decide per website. They cannot help with inappropriate pictures on websites you do not want to block: search engines, social networks, news sites, forums. A DNS service cannot see the content of a page at all.
That part needs a filter that looks at images. Halal View is a free extension for Chrome, Edge and Firefox that keeps photos hidden while an AI model on your device checks them and leaves porn, nude and suggestive photos hidden. Nothing is uploaded. It is the complement to a site blocker, not a replacement. More in How to block inappropriate images.
Frequently asked questions
How do I block adult websites on Chrome permanently?
Chrome has no built-in blocklist for a normal account. Use a family DNS filter on the computer or router, which works in every browser, or supervise the account with Google Family Link and choose "Try to block explicit sites".
Is Cloudflare 1.1.1.3 free?
Yes. 1.1.1.1 for Families is a free service with no account. 1.1.1.3 blocks malware and adult content; 1.1.1.2 blocks malware only.
Can I block adult websites without installing software?
Yes. Changing the DNS addresses on the router or in the computer's network settings installs nothing, and so does turning on the parental controls that come with Windows and macOS.
Why do I still see adult images after blocking adult websites?
Because they are on websites that are not adult sites, such as search engines and social networks. Turn on SafeSearch and the platforms' content settings, and add an image filter in the browser.