Skip to content
Shield

ExplainerDNS filtering limits

Why DNS filtering cannot see full URLs

You will be able to decide which web policies a DNS filter can enforce and which it cannot, because a DNS query carries only the hostname. You can then plan categories, encrypted DNS controls and outage behavior around that limit. You will also see where Purple Shield enforces policy on guest, staff and resident...

13 min read

Why DNS filtering cannot see full URLs

Watch the explainer

DNS filtering's URL blind spot is the fact that a DNS query carries only a hostname, never the path or query string behind it. Under RFC 1035 the resolver sees example.com. The full URL travels later inside HTTPS, encrypted by TLS 1.3 (RFC 8446). So every DNS policy decides per hostname, not per page.

What does it mean that DNS filtering cannot see full URLs?

A DNS filter is a recursive resolver that checks each name lookup against a policy before it answers. Protective DNS adds threat intelligence to that check. It blocks lookups for known malware, phishing and command-and-control domains. The UK National Cyber Security Centre runs a Protective DNS service for the UK public sector on the same principle.

Placement comes first. The filter sits at one point in the connection: the lookup that happens before any web traffic flows. That placement is both its strength and its limit. It can stop a device reaching a hostname at all. It cannot see what the device requests once it gets there.

RFC 3986 splits a URL into scheme, authority, path, query and fragment. Only the hostname inside the authority goes to DNS.

URL component Example Sent in the DNS query?
Scheme https No
Hostname news.example.com Yes
Port 443 No
Path /world/article No
Query string ?id=42&ref=mail No
Fragment #comments No, it never leaves the browser

A hostname-level view has one consequence for policy. Every rule you write is a decision about a whole hostname and everything served under it. "Block news.example.com" is a valid rule. "Block /world/article on news.example.com" cannot be expressed. That is the core of URL filtering vs DNS filtering. It shapes how you design categories, exceptions and allow lists. Our overview of DNS filtering limits covers the wider set of trade-offs.

How does a DNS filter see a web request?

Follow one request from start to finish. A guest on hotel WiFi taps a link to https://news.example.com/world/article?id=42. Five things happen, in this order.

  1. The browser passes the hostname, not the URL, to the device's stub resolver.
  2. The stub resolver sends a DNS query, defined in RFC 1035, to the resolver the network assigned. The query holds the name (QNAME) and a record type such as A, AAAA or HTTPS.
  3. The DNS filter checks the name against policy and threat feeds. It returns the real address, a block-page address, or a refusal such as NXDOMAIN.
  4. If the name is allowed, the browser opens a TLS connection to that address. The handshake repeats the hostname in the Server Name Indication (SNI) extension, defined in RFC 6066.
  5. Only now does the browser send the HTTP request with the path and query. Under TLS 1.3 that request is encrypted.
hostname onlyDNS querypolicy match: blockallow: real IP returnedsession keys agreedGET /world/article?id=42Browser opens linkhttps://news.example.com/world/article?id=42Stub resolverSends QNAMEnews.example.com, type Aor AAAADNS filterChecks the hostnameagainst policy andthreat feedsBlock page orNXDOMAINA blocked hostname nevergets a connectionTLS handshakeSNI repeats the hostnamein clear textEncrypted HTTPrequestPath and query hiddenfrom the DNS filterWeb serverReturns the page
The DNS filter decides at step 3; the path and query only appear at step 5, inside encrypted HTTPS.

Flow showing a browser lookup passing through a DNS filter that either blocks the hostname or allows a TLS connection whose encrypted request carries the path.

Connections

  1. Browser opens link to Stub resolver (hostname only)
  2. Stub resolver to DNS filter (DNS query)
  3. DNS filter to Block page or NXDOMAIN (policy match: block)
  4. DNS filter to TLS handshake (allow: real IP returned)
  5. TLS handshake to Encrypted HTTP request (session keys agreed)
  6. Encrypted HTTP request to Web server (GET /world/article?id=42)

The filter makes its decision at step three. The path and query appear at step five. They travel inside an encrypted channel, on a separate connection, to a different server. At no point could the DNS filter read them.

This explains both halves of DNS filtering HTTPS behavior. Filtering works without breaking encryption, because the lookup is finished before encryption starts. And the filter cannot see full URLs, for the same reason.

HTTP/2 and HTTP/3 change nothing here

Modern browsers rarely send HTTP/1.1 requests. HTTP/2 (RFC 9113) carries the path in a :path pseudo-header. HTTP/3 (RFC 9114) does the same over QUIC (RFC 9000). In each case the path sits inside the encrypted session. The DNS lookup that precedes it looks the same.

Caching thins the view further

Every DNS answer carries a time to live (TTL). The operating system and the browser cache the answer for that period. A visitor who reads 30 pages on one news site may trigger a single lookup. DNS logs record which hostnames a device resolved, and roughly when. They do not record page views, time on page, or downloads.

HTTP requestMethod, path, query, headers, cookies: all encryptedTLS handshakeSNI hostname in clear text unless ECH is usedTransport: TCP or QUICDestination port, usually 443IP packetSource and destination addressesDNS lookupHostname and record type: all the DNS filter reads
Each layer of a web request exposes different fields; the DNS filter reads only the bottom layer.

Layered diagram showing DNS lookup, IP, transport, TLS handshake and HTTP request, with the URL path only in the encrypted top layer.

Connections

  1. DNS lookup to IP packet (answer supplies the address)
  2. IP packet to Transport: TCP or QUIC (carries)
  3. Transport: TCP or QUIC to TLS handshake (carries)
  4. TLS handshake to HTTP request (encrypts)

DNS filtering vs SNI filtering vs URL filtering: which term means what?

Three terms get used interchangeably in vendor sheets and RFP documents. They read different fields at different points in the connection. As a result, they enforce different policies.

Filtering methods compared by what they read and where they sit Data as of 2026-06-10
TermWhat it readsWhere it sitsSees the full URL?Works on unmanaged devices?
DNS filteringHostname in the DNS queryRecursive resolver the network points toNoYes, nothing installed on the device
Protective DNSHostname, scored against threat intelligenceRecursive resolverNoYes
SNI filteringHostname in the TLS ClientHelloFirewall or gateway in the traffic pathNo, and nothing at all if ECH is usedYes
URL filtering (secure web gateway)Full URL, headers and content after TLS decryptionProxy in the traffic path, on-premises or in the cloudYesNo, the device must trust the proxy's root certificate
IP blocklistDestination IP addressFirewallNoYes
Category filteringHostname or URL mapped to a content categoryResolver or proxyOnly when it runs on a decrypting proxyDepends on where it runs
SNI is defined in RFC 6066. A proxy that does not decrypt TLS sees only the hostname in the CONNECT request, the same granularity as DNS.

Where people get it wrong

"HTTPS makes DNS filtering useless." It does not. The lookup completes before TLS begins, so the filter still decides. What does change the picture is encrypted DNS sent to a resolver you do not control. That is a resolver problem, not an HTTPS problem.

"SNI filtering sees the URL." SNI carries the hostname, the same field DNS carries. A firewall reading SNI has the same granularity as a DNS filter. It can also lose that field once Encrypted Client Hello (ECH) hides it.

"A domain rule covers every subdomain." mail.example.com and docs.example.com are separate hostnames with separate lookups. Confirm how your filter treats subdomains before you write an allow or block rule. Otherwise a rule can be wider or narrower than intended.

"DNS logs are browsing history." They are a list of hostname lookups, thinned by caching. They show that a device resolved a name. They do not show which pages it read.

Where does the hostname-level view show up in a real network?

Most venues meet this limit in four places. Each one is a policy question, not a fault.

Guest WiFi in hospitality and retail

A hotel, bar or shopping center wants to block adult content, gambling and malware on guest WiFi. Hostname granularity fits this well. Those sites usually sit on hostnames dedicated to that content, so a category rule catches them cleanly.

The placement matters more than the granularity here. You cannot install a root certificate on a guest's or shopper's phone. Any filter that needs TLS decryption is therefore off the table for unmanaged devices. The DNS lookup is the layer you can enforce on every device that joins.

Shared platforms and the one-page problem

Large services host millions of pages under a few hostnames. Video sites, social networks and cloud storage all work this way. A DNS filter can allow the hostname or block it, and nothing in between. A library that wants to block one video cannot do so at the DNS layer.

Hostname-level control can still change behavior on these platforms. Google publishes forcesafesearch.google.com for enforced SafeSearch. YouTube publishes restrict.youtube.com for Restricted Mode. A DNS filter that points lookups for the main hostnames at these applies the setting across the whole network. The policy is still expressed per hostname.

Phishing on legitimate hosting

Attackers sometimes host a phishing page on a widely used file-sharing or form-builder hostname. A DNS filter cannot block that single page without blocking the whole service. Protective DNS is strongest where attackers register their own domains. Those names are new, unknown and often short-lived, which threat intelligence picks up quickly.

Staff and guest networks with different rules

Staff and guest networks need different policies. Staff may need webmail and collaboration tools that a guest network has no reason to allow. Distinct hostnames help here. Gmail resolves through mail.google.com and Google Docs through docs.google.com, so you can split them. A separate policy per network and VLAN lets one site run both rule sets.

What are the limits and edge cases of a hostname-level view?

Beyond the missing path, five edge cases decide how a DNS filter behaves in production. None is rare on a public network.

Block pages and certificate warnings

A filter that answers with a block page address sends the browser to the wrong server. The browser expects a certificate for the blocked hostname, and the block page cannot present a valid one. The visitor sees a certificate error instead of an explanation. Sites that use HTTP Strict Transport Security, defined in RFC 6797, give no option to click through. The block holds, but the message is lost.

Encrypted DNS sent to another resolver

DNS over HTTPS (DoH), defined in RFC 8484, sends lookups inside HTTPS on port 443. DNS over TLS (DoT), defined in RFC 7858, uses port 853. If a browser or app sends lookups to a resolver you did not assign, your filter never sees them. Firefox checks the canary domain use-application-dns.net and turns off its default DoH when the network signals filtering. Our guide to DNS over TLS and port 853 covers the controls in detail.

Hard-coded addresses

An app that connects straight to an IP address never makes a lookup. A DNS filter has nothing to decide on. A firewall rule or IP blocklist is the layer that sees that traffic.

Encrypted Client Hello

ECH, being standardized by the IETF TLS working group, encrypts the SNI field. It removes the hostname from the TLS handshake, which affects SNI filtering on firewalls. It does not hide the DNS lookup itself. ECH keys are published in HTTPS records (RFC 9460), which the device fetches through DNS.

When the filter is unreachable

A hostname-level view only helps while the resolver answers. What happens during an outage is a design choice. A filter that fails open hands lookups to an unfiltered resolver. A filter that fails closed stops resolution. Read DNS filtering fail open vs fail closed before you sign off a design.

How does Purple Shield work with a hostname-level view?

Purple Shield is protective DNS and content filtering for every network. It works at the DNS lookup, the layer you can enforce on every device without touching the device. That placement suits guest WiFi, where you will never install a certificate on a visitor's cell phone. It also covers staff WiFi and multi-tenant networks.

Shield needs no new hardware. You point the network's DNS at Shield, and it runs on the access points you already have. That includes Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist, Ubiquiti UniFi, Cambium, Extreme and Fortinet. You can run it standalone or on Purple Access. You set a policy per network and per VLAN, so guest, staff and resident networks each get their own rules. Shield fails closed, so an outage never leaves a network unfiltered.

  • ~241,000threats blocked a weekSt George's Healthcare NHS Trust
  • 80,000+venues on PurplePurple's own data
  • 90countriesPurple's own data

Whitbread and AGS Airports run Shield across their networks. The policy model is the one this guide describes. Each rule decides on a hostname and its category, at the lookup, before any connection opens.

How Cisco Umbrella and Cloudflare Gateway reach the URL

Cisco Umbrella and Cloudflare Gateway also filter at the DNS layer, with the same hostname-only view. Both reach the full URL only by adding a proxy. Umbrella's selective proxy routes lookups for risky domains to a proxy that can inspect URLs. HTTPS inspection then needs the Cisco root certificate on the device. Cloudflare Gateway's HTTP policies inspect full URLs once traffic flows through its proxy, usually via the WARP client. TLS decryption needs the Cloudflare root certificate installed on the device.

On a managed laptop that is possible. On guest, passenger or resident devices it is not. Shield's DNS-layer placement covers every device on those networks with nothing to install.

The hostname-level view bites at three moments in a real deployment. A request comes in to block one page on a shared platform. A phishing page appears on legitimate hosting. Or a device bypasses the assigned resolver. Plan your categories, your encrypted DNS controls and your outage behavior around those three. See how Shield works, and the enterprise WiFi security guide for the wider network picture.

Shield is priced on a tailored quote, with a 30-day free trial. The next guide in this series is Is DNS filtering enough?. For managed devices that need page-level control, read DNS filtering vs secure web gateway.

Key terms

DNS query
A name lookup defined in RFC 1035 that carries the queried name (QNAME) and a record type such as A, AAAA or HTTPS. It never carries the URL path, query string or fragment. This is the only message a DNS filter reads, so it sets the hostname-only granularity of every rule you write.
Protective DNS
A recursive resolver that scores each lookup against threat intelligence and blocks known malware, phishing and command-and-control domains. The UK NCSC runs a Protective DNS service for the UK public sector. It is strongest against domains attackers register themselves, which threat intelligence picks up quickly, and weaker against phishing on legitimate hosting.
URL components
RFC 3986 splits a URL into scheme, authority, path, query and fragment. Only the hostname inside the authority is sent to DNS; the fragment never leaves the browser. Mapping each component to where it travels shows why a rule such as blocking one article path cannot be expressed in a DNS filter.
TLS 1.3
The transport security protocol specified in RFC 8446. The HTTP request, including method, path, query, headers and cookies, is encrypted inside the session it establishes. The DNS lookup completes before the TLS handshake starts, which is why DNS filtering works without breaking encryption and also why it cannot read the path.
Server Name Indication (SNI)
A TLS extension defined in RFC 6066 that repeats the hostname in clear text in the ClientHello. Firewalls that filter on SNI have the same hostname-only granularity as a DNS filter, not URL-level visibility.
Encrypted Client Hello (ECH)
A mechanism being standardized by the IETF TLS working group that encrypts the SNI field in the TLS handshake. Its keys are published in HTTPS records (RFC 9460) fetched through DNS. ECH removes the hostname from SNI filtering on firewalls but does not hide the DNS lookup a DNS filter decides on.
DNS over HTTPS (DoH)
Encrypted DNS defined in RFC 8484 that sends lookups inside HTTPS on port 443. If a browser or app sends DoH to a resolver you did not assign, your filter never sees those lookups; the canary domain use-application-dns.net signals Firefox to turn off its default DoH.
DNS over TLS (DoT)
Encrypted DNS defined in RFC 7858 that carries lookups over TLS on port 853. Blocking outbound port 853 at the firewall keeps devices on the resolver you assigned.
HTTP Strict Transport Security (HSTS)
A policy defined in RFC 6797 under which the browser gives no option to click through a certificate error for that site. When a DNS filter answers with a block-page address, HSTS sites show a certificate error with no explanation, so the block holds but the message is lost.
HTTP/2 and HTTP/3
HTTP/2 (RFC 9113) carries the path in a :path pseudo-header; HTTP/3 (RFC 9114) does the same over QUIC (RFC 9000). In both the path sits inside the encrypted session. Newer HTTP versions do not change what a DNS filter sees, because the preceding lookup looks the same.
Time to live (TTL)
A value carried with every DNS answer that sets how long the operating system and browser cache it. Caching means 30 page views on one site may trigger a single lookup, so DNS logs record resolved hostnames, not browsing history.
Secure web gateway (URL filtering)
A proxy in the traffic path that reads the full URL, headers and content after TLS decryption, which requires the device to trust the proxy's root certificate. It reaches page-level control on managed devices but cannot be enforced on guest, passenger or resident phones where no certificate can be installed.
Fail closed
An outage behavior in which a filter stops resolution rather than handing lookups to an unfiltered resolver, which is failing open. Purple Shield fails closed, so no device on guest, staff or resident networks browses without policy during an outage.

Worked examples

A hotel, bar or shopping center wants to block adult content, gambling and malware on guest WiFi, where it cannot install anything on guests' or shoppers' cell phones.

The venue filters at the DNS lookup with category rules. Hostname granularity fits this policy because adult, gambling and malware sites usually sit on hostnames dedicated to that content, so a category rule catches them cleanly. Placement decides the design: any filter that needs TLS decryption requires a root certificate on each device, which is impossible on unmanaged cell phones. The DNS lookup is the layer the venue can enforce on every device that joins. The team also briefs front-of-house staff that a blocked HTTPS hostname usually shows a browser certificate warning rather than a block page, so they recognize it as the filter working.

A library wants to stop inappropriate content on a video platform that hosts millions of pages under a few hostnames, including blocking one specific video.

A DNS filter can only allow or block the platform's hostname as a whole, so blocking one video is not possible at the DNS layer. Instead the library shapes behavior per hostname. It points lookups for the main YouTube hostnames at restrict.youtube.com to apply Restricted Mode, and Google lookups at forcesafesearch.google.com to enforce SafeSearch. The setting then applies across the whole network on every device, with nothing installed. Page-level blocking would need a proxy that decrypts TLS, which in turn requires a trusted certificate on each device, so the library keeps its policy expressed per hostname.

Frequently asked questions

Can DNS filtering block one page on a site I otherwise allow?

No. A DNS filter receives only the hostname, so it can allow or block `video.example.com` as a whole, never one path under it. You can still shape behavior per hostname. For example, you can redirect Google lookups to `forcesafesearch.google.com` or YouTube lookups to `restrict.youtube.com`. Page-level blocking needs a proxy that decrypts TLS, and that requires a trusted certificate on each device.

Does HTTPS stop DNS filtering from working?

No. The DNS lookup completes before the TLS handshake starts, so the filter decides before encryption begins. HTTPS hides the path and query, not the lookup. The real risk is encrypted DNS, either DoH (RFC 8484) or DoT (RFC 7858), sent to a resolver you did not assign. That bypasses any DNS filter, so control it at the network edge.

How do Cisco Umbrella and Cloudflare Gateway handle full URLs?

Both see hostnames only at the DNS layer, like any DNS filter. Umbrella's selective proxy and Cloudflare Gateway's HTTP policies reach full URLs by proxying traffic. HTTPS inspection then needs each vendor's root certificate installed on the device. That works for managed devices. Shield filters at the DNS layer with nothing installed, so it covers guest and visitor devices on the same network.

Does Purple Shield work with the access points I already own?

Yes. Shield works at the DNS layer, so it needs no new hardware and no change to your access points. It runs on networks built on Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist, Ubiquiti UniFi, Cambium, Extreme, and Fortinet. You point the network's DNS at Shield and set a policy per network and VLAN. Shield runs standalone or on Purple Access.

Do DNS filter logs count as browsing history under CCPA/CPRA?

They are personal data when linked to a device or person, so CCPA/CPRA applies. They hold far less than URL logs, though. A DNS log records which hostnames a device resolved and roughly when. Caching means many page loads produce no lookup at all. That narrower record supports the data minimization principle. It also gives you less to protect and retain.

Can guests bypass a DNS filter with encrypted DNS?

Some can, if their browser or app sends DoH or DoT to its own resolver. Block outbound DoT on port 853 at your firewall. Also answer the canary domain `use-application-dns.net` so Firefox disables its default DoH. Block lookups for known public DoH resolvers as a category, too. Together these keep most lookups on the resolver you assigned.

What happens to filtering if Shield goes down?

Shield fails closed, so an outage never leaves a network unfiltered. A filter that fails open hands lookups to an unfiltered resolver. That keeps browsing running but drops all protection until the filter recovers. Failing closed stops resolution instead. For guest, staff, and resident networks it means no device browses without the policy you set.

How is Shield priced, and can we test it out?

Shield is priced on a tailored quote, built around your networks, VLANs, and venues. You can run a 30-day free trial on your own network first. A trial shows the hostnames your devices resolve and the threats Shield blocks. It shows where the hostname-level view meets your policy before you commit.

Sources

Decide what your network reaches, free for 30 days

Tell us your networks and who uses them, and we map a policy to each. Point one at Shield and see what it stops for 30 days.

Tell us your networks. We map a policy to each one.

DNS filtering cannot see full URLs: what it sees