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.

ADVERTISEMENT

Jump to steps ↓

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].

ADVERTISEMENT

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

  1. Open your web browser.
  2. Go to my.nextdns.io.
  3. Create a free account by clicking the Sign up button.
  4. Go to Denylist.
  5. Add the domain(s) you want to block in your browser by entering them and pressing Enter.
    NextDNS Denylist
  6. Go to Setup.
  7. Copy the DNS-over-HTTPS link.
    Copy the NextDNS 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.

  1. Click the three-dot menu button (Chrome/Edge) or three-line menu button (Brave) in the top right corner.
  2. Click Settings.
    Open Chrome, Edge, and Brave settings
  3. Click Privacy and security (Chrome/Brave) or Privacy, search, and services (Edge) in the left menu.
    Open Chrome, Edge, and Brave privacy and security settings
  4. Click Security.
    Open Chrome, Edge, and Brave security settings
  5. Ensure the Secure DNS option is enabled.
  6. Select Add custom DNS service provider (Chrome/Brave) or Choose a service provider (Edge).
  7. Paste the NextDNS link.
    Block websites in Chrome, Edge, and Brave using NextDNS
  8. 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

  1. Click the three-line menu button in the top right corner.
  2. Click Settings.
    Open Firefox settings
  3. Click Privacy and security in the left menu.
  4. Scroll down to the DNS over HTTPS section.
  5. Click Advanced settings.
  6. Select Custom.
  7. Under Choose provider, select Custom from the dropdown menu.
  8. Paste the NextDNS link.
    Block websites in Firefox using NextDNS
  9. 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.

NextDNS blocked website page example in browser

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.

2. Flush your Windows DNS

Sometimes the old data is in Windows, not just the browser. This command clears it:

  1. Right-click the Start button (Windows logo) on the taskbar.
  2. Click Terminal or Command Prompt.
  3. Type ipconfig /flushdns.
  4. 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:

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.

ADVERTISEMENT

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)


Internet