How to block any website with NextDNS (no extension needed)
If you want to take control of your internet experience, you don't need a dozen different browser extensions. NextDNS blocks distracting social media sites, ads, or dangerous content without an extension.
NextDNS works before a site loads, not after. Use the built-in Secure DNS setting in Chrome, Edge, Brave, or Firefox to point your browser at your NextDNS dashboard.
Why use NextDNS instead of an extension?
Extensions are clunky. Here's how NextDNS is different:
1. No extra memory used
Extensions run in the background and use memory. NextDNS uses a browser setting, so it adds nothing.
2. Superior privacy
Many free site-blocking extensions track your browsing and sell that data to advertisers. Your connection to NextDNS is encrypted, so your ISP can't see which sites you visit.
3. Better performance & speed
Extensions block a site after the browser starts loading it, which causes a brief flash before the page disappears. NextDNS blocks the site before any data downloads. The page never loads, so there's nothing to wait for.
4. Security
Some extensions are malicious from the start, while others become malicious after a new developer buys them. Malicious extensions can capture your passwords, track your browsing activity, insert ads into the pages you visit, or even infect your computer with malware. [1] [2] [3].
Comparison at a glance
| Feature | Browser extension | NextDNS method |
|---|---|---|
| RAM usage | Increases with every extension | Zero |
| Privacy | Can track your data | Encrypted & private |
| Speed | Can cause browser lag | Faster |
| Difficulty to bypass | Easy (just disable it) | Harder (hidden in settings) |
| Security | Can be or become malicious | No extension to be compromised |
Note: Because this method doesn't rely on an extension, it even works in "Incognito" or "Private" mode by default. Most extensions are disabled in private windows, but NextDNS keeps your filters active in private windows too.
Step 1: Set up your Denylist
- Open your web browser.
- Go to my.nextdns.io.
- Create a free account by clicking the Sign up button.
- Go to Denylist.
-
Add the domain(s) you want to block in your browser by entering them and pressing Enter.

- Go to Setup.
-
Copy the DNS-over-HTTPS link.

Tip: NextDNS also lets you block entire categories — including adult content, dating, gambling, social media, piracy, and video streaming — by going to Parental Control > Categories.
Now it's time to put that link in your browser.
The steps for Firefox are below the Chrome, Edge, and Brave steps.
Chrome, Edge & Brave
The steps below are the same for all three.
- Click the three-dot menu button (Chrome/Edge) or three-line menu button (Brave) in the top right corner.
-
Click Settings.

-
Click Privacy and security (Chrome/Brave) or Privacy, search, and services (Edge) in the left menu.

-
Click Security.

- Ensure the Secure DNS option is enabled.
- Select Add custom DNS service provider (Chrome/Brave) or Choose a service provider (Edge).
-
Paste the NextDNS link.

- Try to visit the site you’ve blocked to test whether the blocking is working.
Note: It might take a minute for the cache to clear, or you may need to restart your browser.
Firefox
- Click the three-line menu button in the top right corner.
-
Click Settings.

- Click Privacy and security in the left menu.
- Scroll down to the DNS over HTTPS section.
- Click Advanced settings.
- Select Custom.
- Under Choose provider, select Custom from the dropdown menu.
-
Paste the NextDNS link.

- Try to visit the site you’ve blocked to test whether the blocking is working.
Note: It might take a minute for the cache to clear, or you may need to restart your browser.
How to test your settings
Open a new tab and try to visit one of the websites you added to your NextDNS 'Denylist.' If everything is set up correctly, your browser will show the 'This site can’t be reached' message.

Still seeing the website? Check the troubleshooting section below.
Troubleshooting: Why is the site still loading?
If you’ve set up NextDNS but can still access your "blocked" sites. You probably don't need to redo the process. Your browser is holding onto old data. Here's how to fix it:
1. Old cached data (most common)
Your browser saves the address of recently visited sites. Even after you block a site, the browser uses that saved address instead of checking NextDNS.
- The fix: Close your browser completely and reopen it.
- Faster fix: Open a Private/Incognito window. If the site is blocked there but not in your normal window, you definitely have a cache issue. You may need to clear your "Browsing History" and "Cached images and files" in your browser settings.
2. Flush your Windows DNS
Sometimes the old data is in Windows, not just the browser. This command clears it:
- Right-click the Start button (Windows logo) on the taskbar.
- Click Terminal or Command Prompt.
-
Type
ipconfig /flushdns. - Press Enter.
You should see a message saying "Successfully flushed the DNS Resolver Cache."
3. Check for typos in the NextDNS DoH link
NextDNS gives you a very specific DNS-over-HTTPS URL. If even one character is missing, the browser will either ignore it or fail to connect.
The fix: Go back to your NextDNS Setup tab, copy the link again, and re-paste it into your browser settings. Make sure there are no extra spaces at the beginning or end.
4. Conflict with VPNs or other DNS apps
If you use a VPN (like NordVPN or ExpressVPN) or another DNS app (like 1.1.1.1), they override your browser's DNS settings.
The fix: Disable your VPN temporarily to see if NextDNS starts working. If you want to use both, you usually have to configure the VPN itself to use NextDNS, rather than just the browser.
5. Check the NextDNS status
Not sure if you’re actually connected? NextDNS makes it easy to check:
- The fix: Go to test.nextdns.io.
- Look for the line that says "status": "ok". If it says "unconfigured", your browser isn't correctly sending requests to your NextDNS account yet.
Wait a minute. DNS changes can take 30–60 seconds. If the site still loads right after you paste the link, wait a minute and refresh.
Related:
How to block a website in Windows 10 and 11
How to block adult content websites on Windows 11 (easy way)
How to block a program from accessing the internet
How to unblock blocked websites (5 safe and free methods)