ComparisonDNS filtering limits
DNS filtering vs secure web gateway: when you need the heavier tool
Decide whether your networks need DNS filtering, a secure web gateway or both, using eight criteria from placement to privacy footprint. You will be able to put protective DNS on every network, including guest WiFi, and scope a gateway to the managed devices where you must inspect URLs, files or uploads.
Watch the explainer
Choose DNS filtering at resolution under RFC 1035 when protecting unmanaged WiFi devices across 80,000+ venues in 90 countries without installing hardware. Choose a secure web gateway when inspecting full URLs, downloads, or uploads on managed devices using platforms like Microsoft Entra ID. DNS filtering stops malicious destinations before connections open, while gateways proxy and decrypt traffic.
DNS filtering vs secure web gateway: the short answer
The answer turns on one question: do you need to see inside the connection, or only where it is going?
DNS filtering decides at the domain name. It refuses to resolve a malicious or unwanted destination, so the device never connects. A secure web gateway (SWG) is a proxy that sits in the traffic path. It can read the full URL, the file and the page, but only after it decrypts TLS.
On guest WiFi, the question settles itself. You cannot install a root certificate on a guest's cell phone. Without that certificate, a gateway cannot decrypt traffic without causing certificate errors. DNS filtering protects every device on the network with nothing installed. That is why it is the default for hospitality, retail, travel hubs and events.
On managed staff laptops that handle regulated data, the gateway earns its cost. You need it to inspect uploads, enforce rules on URL paths or apply data loss prevention (DLP). DLP stops sensitive data from leaving your network.
Most venues need protective DNS on every network and a gateway on a minority of managed devices, if they need one at all. Purple Shield delivers the first part. It runs standalone on any WiFi or alongside Purple Access, with a policy per network and VLAN. For the wider boundaries of the DNS approach, see our DNS filtering limits overview.
What we compared, and why these criteria decide the choice
We scored both approaches on eight criteria. Each one maps to a decision an IT security manager or venue operations manager makes when scoping filtering. We drew each option's capabilities from its own public material and from deploying both.
Placement comes first because it shapes the other seven. DNS filtering sits at name resolution, the lookup defined in RFC 1035. Every device asks a resolver for an address before it connects. A protective DNS resolver checks the domain against threat intelligence and category policy, then answers or refuses.
Because that check happens before any connection, it catches what a firewall misses. Firewall rules key on IP addresses and ports. Malicious domains move across shared cloud addresses that a firewall cannot safely block.
A secure web gateway sits later, inside the connection. Traffic reaches it through an endpoint agent, a proxy auto-config (PAC) file or an inline appliance. To read HTTPS, the gateway terminates TLS, inspects the content and re-encrypts it. That depth needs a trusted root certificate on every device it inspects.
The eight criteria:
- Placement: where in the connection the filter makes its decision.
- Visibility: what the filter can see, from the domain name to the page content.
- Unmanaged devices: whether guest and BYOD (bring your own device) traffic is covered.
- Deployment footprint: the hardware, agents and certificates required.
- Performance: the latency and bandwidth the filter adds.
- Failure behavior: what happens when the service is unreachable.
- Bypass resistance: how easily a device routes around the filter, for example through DNS over TLS (DoT) or DNS over HTTPS (DoH).
- Privacy footprint: how much personal data the filter processes.
In the market, the line is not always clean. DNSFilter is a protective DNS service, the same category as Shield. Cisco Umbrella sells DNS-layer security and, in its higher packages, a full secure web gateway, so it spans both sides of this comparison. When you assess any vendor, check which layer each package delivers rather than relying on the product name.
Two lanes compare a DNS filtering path that blocks at the lookup with a gateway path that decrypts and inspects traffic.
Connections
- Device looks up a domain to Shield checks policy
- Shield checks policy to Blocked: no connection made (threat or blocked category)
- Shield checks policy to Allowed: device connects directly (allowed)
- Device sends traffic to proxy to Proxy decrypts TLS
- Proxy decrypts TLS to Inspects URL, files and content
- Inspects URL, files and content to Re-encrypts, forwards or blocks
How do DNS filtering and a secure web gateway compare?
| Criterion | Purple Shield (DNS filtering) | Secure web gateway |
|---|---|---|
| Placement | At DNS resolution, before any connection opens | In the traffic path, after the connection opens |
| Visibility | Domain names, checked against threat and category policy | Full URLs, files and page content once TLS is decrypted |
| Unmanaged and guest devices | Covered with nothing installed | No TLS inspection without a trusted certificate on the device |
| Deployment footprint | No new hardware: change the DNS server per network | Agent, PAC file or appliance, plus a root certificate per device |
| Performance | One lookup per new domain; ad blocking reduces overall bandwidth usage | Every web request passes through the proxy |
| Failure behavior | Fails closed, so no network runs unfiltered | Fail open or fail closed, set and tested per deployment |
| Bypass resistance | Block DoT on port 853 and known DoH resolvers at the firewall | Block direct outbound web traffic that skips the proxy |
| Privacy footprint | Processes domain names, not content | Decrypts content, so staff inspection needs a CCPA/CPRA DPIA |
Two rows deserve a closer read. On visibility, the gateway wins outright. A DNS filter sees example.com but never the path to a file on that site. We explain why in why DNS filtering cannot see full URLs. On unmanaged devices, DNS filtering wins outright, because guest coverage needs no certificate and no agent.
The remaining rows are trade-offs you can manage. You can close the encrypted DNS bypass with firewall rules. Gateway latency is tolerable on a well-sized cloud service. Failure behavior depends on the product, which is why we state Shield's plainly: it fails closed.
Where DNS filtering wins
Guest WiFi and unmanaged devices
Every device on a WiFi network uses the DNS server that DHCP hands it. Point that server at a protective resolver and every phone, laptop, gaming console and smart TV is covered. Nobody installs anything. The captive portal, the sign-in page shown before network access, stays as it is. At scale, this is the only practical way to filter guests, residents, passengers and fans.
Many sites, no new hardware
Switching to DNS filtering is a configuration change, not a project. Shield works on the WiFi you already run, including Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist, Ubiquiti UniFi, Cambium, Extreme and Fortinet.
You set a policy per network and per VLAN. A family-friendly guest network and a staff network at the same site can therefore run different rules. Your staff network may assign VLANs by role through IEEE 802.1X, the port-based network authentication standard. If so, role-specific DNS policy follows without a proxy.
Earlier threat blocking
DNS sees intent before any traffic flows. A phished device must look up a domain before it can connect. So must an infected device calling home to a command-and-control server. Shield flags threats earlier in their lifecycle, before a web connection establishes. That lead time can decide whether a phishing domain is blocked before the first click or after it.
Lighter networks
Ad blocking happens at the same layer. Ad blocking reduces bandwidth usage and lowers DNS query volume when switched on. On a busy venue network with limited backhaul, that capacity comes back without new spend.
Failure that stays safe
Shield fails closed, so an outage never leaves a network unfiltered. That matters on guest networks, where you carry the reputational risk of whatever loads. We set out the trade-offs in DNS filtering fail open vs fail closed.
Smaller privacy footprint
A DNS filter processes domain names, not page content. Under CCPA/CPRA, that is a narrower set of personal data than decrypted browsing sessions. Your records of processing stay simpler as a result.
- 241,000threats blocked a weekSt George's Healthcare NHS Trust
- 500Musers and logins a yearPurple data
- 99.999%service uptime SLAPurple data
- 80,000+live venues in 90 countriesPurple data
Where a secure web gateway wins
Be precise about the gateway's strengths. If you assume DNS filtering covers them, your security program will have real gaps.
Full URL and path control
Some policies live below the domain. You may want to allow a cloud storage service but block one shared folder. You may want to allow a news site but block its comment pages. Only a proxy that sees the full URL can enforce rules like these. Shared platforms are the hard case, because a DNS filter must allow or block the whole domain.
File and content inspection
A gateway can scan downloads for malware, block file types and sandbox unknown executables. DNS filtering stops connections to known-bad domains. A malicious file hosted on a trusted domain still passes through.
Data loss prevention
Your staff may handle payment card data in scope for PCI DSS, or patient records. If so, you may need to inspect uploads for sensitive content. That requires decrypted traffic and either a gateway or a dedicated DLP tool.
Per-person policy off the network
A gateway agent applies policy by named identity, synced from Microsoft Entra ID, Okta or Google Workspace. That policy follows a managed laptop onto home broadband or hotel WiFi. Shield's policy is set per network and VLAN, which suits venues and fixed sites. A remote workforce on managed devices may need per-person enforcement wherever people connect.
Application controls
Many gateways decode traffic for named applications. For example, they can let staff read a file-sharing service but block uploads to it. DNS filtering can allow or block an application's domains, but not individual actions inside the application.
If you are weighing these gaps against your risk register, read is DNS filtering enough? for the controls that sit alongside protective DNS.
What does each cost to run?
The two approaches are priced differently, so compare their cost structures rather than headline figures. We do not quote competitor prices. Confirm current terms with each vendor.
| Cost element | Purple Shield (DNS filtering) | Secure web gateway |
|---|---|---|
| Licensing basis | Category commonly prices per network, per site or per seat | Category commonly prices per seat, per device or by throughput |
| Hardware | None: works on the WiFi you already run | None for cloud services; appliances for on-premises proxies |
| Endpoint agents | None on the network | Required for off-network devices and full inspection |
| Certificates | None | Root certificate deployed and renewed on every managed device |
| Policy upkeep | Category, allow and block lists per network and VLAN | URL, file, application and exception rules |
| Bandwidth | Lower data usage with ad blocking enabled | All inspected traffic routed through the proxy |
| Support load | Allow requests and category reviews | Certificate errors, broken pinned apps and exception requests |
| Compliance work | Domain log retention under CCPA/CPRA | Data privacy impact assessment and staff notice for decrypted content |
The hidden cost of a gateway is certificate and exception management. Apps that pin their certificates break under TLS inspection, so each one needs an exception. Most deployments exempt banking and health sites for privacy reasons. Every exemption becomes a rule someone must maintain. Agents also need updating across the device fleet. None of this is a flaw. It is the price of seeing inside traffic.
The running cost of DNS filtering sits in policy upkeep and bypass control. You review category decisions and handle allow requests. You also keep firewall rules for encrypted DNS current as new public resolvers appear.
What does moving between DNS filtering and a gateway involve?
From a proxy to DNS filtering on guest networks
This is the most common move. Teams often find a proxy on guest WiFi filtering little beyond hostnames, because it cannot decrypt guest traffic. The steps are:
- Export your current proxy categories and your allow and block lists.
- Map them to DNS categories. URL-path rules have no DNS equivalent, so decide per rule whether to allow or block the whole domain.
- Point the DNS server in each network's DHCP scope at the protective resolver.
- Block outbound DNS to other resolvers, DoT on port 853 and known DoH endpoints.
- Test from a real guest device, then retire the proxy rule set for that network.
Shield's setup steps are covered on how Shield works. The encrypted DNS standards are RFC 7858 for DoT and RFC 8484 for DoH.
Adding a gateway for managed devices
This move is heavier, and it should be scoped to the devices that need it. Deploy the root certificate through your mobile device management (MDM) platform. Roll out the agent or PAC file, then build exceptions for pinned apps and privacy-sensitive categories. Complete a privacy risk assessment before inspection starts. Keep Shield in place underneath, because it still covers every device the gateway does not.
Running both
Layering the two is the strongest design on mixed sites. Shield blocks known-bad domains at resolution, across guest and staff networks alike. The gateway then inspects managed traffic in depth. Because DNS removes malicious destinations first, less hostile traffic ever reaches the proxy. Align the two category policies so a domain blocked at one layer is not allowed at the other.
How to decide between DNS filtering and a secure web gateway
Use this decision rule. If you do not own the devices, use DNS filtering. If you own the devices and must see inside the traffic, add a gateway on those devices only. Everywhere else, protective DNS is the right-sized tool.
Which tool fits your network?
Purple Shield (DNS filtering)
Fits when
- Guests, residents or passengers bring their own devices
- You need protection across many sites without new hardware
- You want a policy per network and VLAN
- An outage must never leave a network unfiltered
Not when
- You must enforce rules on URL paths or file types
Secure web gateway
Fits when
- You manage the devices and can deploy a root certificate
- You must inspect uploads for DLP or scan downloads
- Policy must follow named staff onto any network
Not when
- Most traffic comes from unmanaged guest devices
Both, layered
Fits when
- A site serves guests and handles regulated data on managed staff devices
- You want DNS to cut the volume the gateway inspects
Not when
- No managed device needs content inspection
Our recommendation: Deploy Shield on every network first, then add a gateway only on managed devices where you must see inside the traffic.
Your next step is to list your networks and VLANs, and mark which carry unmanaged devices. Those networks get protective DNS now. Then see how Shield works for deployment. For the wider controls around identity, encryption and segmentation, read our enterprise WiFi security guide.
Key terms
- DNS filtering (protective DNS)
- A resolver that checks each queried domain against threat intelligence and category policy before answering, using the name resolution defined in RFC 1035. It refuses to resolve blocked domains, so no connection opens. You meet it when you change the DNS server handed out by DHCP on each network. It covers guest and BYOD devices with nothing installed, which makes it the default on venue WiFi.
- Secure web gateway (SWG)
- A forward proxy in the traffic path that terminates TLS, inspects full URLs, files and page content, then re-encrypts or blocks. Traffic reaches it through an endpoint agent, a PAC file or an inline appliance. You meet it when scoping filtering for managed staff devices. It earns its cost only where you must see inside traffic, and it needs a root certificate on every inspected device.
- TLS inspection
- Decrypting HTTPS sessions, specified by the Transport Layer Security protocol (RFC 8446 for TLS 1.3), by presenting a proxy certificate signed by a root the device trusts, then re-encrypting after inspection. It is the reason a gateway cannot inspect guest cell phones, and the source of pinned-app breakage, exception rules and CCPA/CPRA governance on staff devices.
- DNS over TLS (DoT)
- RFC 7858, which carries DNS queries inside a TLS session on TCP port 853, encrypting lookups between device and resolver. A device using DoT to another resolver skips your DNS filter. Block port 853 at the firewall before you retire a proxy.
- DNS over HTTPS (DoH)
- RFC 8484, which sends DNS queries as HTTPS requests to a resolver endpoint, making them hard to distinguish from ordinary web traffic. Hard-coded DoH resolvers are a common bypass. You keep firewall rules for known DoH endpoints current as new public resolvers appear.
- Proxy auto-config (PAC) file
- A JavaScript file that tells a browser which proxy to use for each URL, one of the three ways traffic is steered to a secure web gateway alongside agents and inline appliances. You deploy it when rolling out a gateway to managed devices. It does nothing for guest devices you do not control.
- Data loss prevention (DLP)
- Controls that inspect outbound content, such as uploads, for sensitive data like payment card data in scope for PCI DSS or patient records, and block it from leaving the network. DLP requires decrypted traffic, so it needs a gateway or a dedicated DLP tool. DNS filtering cannot provide it.
- Data protection impact assessment (DPIA)
- An assessment required under CCPA/CPRA regulations before processing likely to result in high risk to individuals' rights and freedoms. Decrypting staff traffic processes the content of their communications, so you complete a DPIA and give staff notice before TLS inspection begins.
- IEEE 802.1X
- The IEEE port-based network access control standard, which authenticates a device through EAP against a RADIUS (Remote Authentication Dial-In User Service) server before granting access, and can assign a VLAN per user or role. If your staff network assigns VLANs by role through 802.1X, a DNS policy per VLAN gives you role-specific filtering without a proxy.
- VLAN
- A virtual LAN as defined by IEEE 802.1Q, which tags Ethernet frames to segment one physical network into isolated logical networks. Shield sets policy per network and per VLAN, so a family-friendly guest network and a staff network at the same site can run different rules.
- Fail closed
- A failure mode in which a filtering service blocks resolution when unreachable, rather than failing open to an unfiltered resolver to keep traffic flowing. On guest networks you carry the reputational risk of whatever loads. Shield fails closed, so no network runs unfiltered during an outage.
- Captive portal
- The sign-in page shown to a device before network access is granted, typically used on guest WiFi for terms acceptance and authentication. Moving guest filtering to protective DNS leaves your captive portal as it is, so the guest sign-in experience does not change.
Worked examples
A venue runs a proxy on its guest WiFi, but because it cannot decrypt guest traffic it filters little beyond hostnames. How do you move that network to DNS filtering?
Export the proxy categories and the allow and block lists, then map them to DNS categories. URL-path rules have no DNS equivalent, so decide per rule whether to allow or block the whole domain. Point the DNS server in each network's DHCP scope at the protective resolver. Block outbound DNS to other resolvers, DNS over TLS on port 853 and known DNS over HTTPS endpoints at the firewall. Test from a real guest device, then retire the proxy rule set for that network. This works because the cutover is a DNS change per network, and protective DNS covers every guest device with nothing installed.
A site serves guests on WiFi and its staff handle regulated data, such as payment card data in scope for PCI DSS, on managed laptops. Which design fits?
Layer the two. Deploy Shield on every network first, so guest and staff devices are filtered at DNS resolution. Then add a gateway only on the managed laptops: deploy the root certificate through your MDM platform, roll out the agent or PAC file, and build exceptions for pinned apps and privacy-sensitive categories. Complete a privacy impact assessment before inspection starts. Shield removes known-bad domains first, so less hostile traffic reaches the proxy. Align both category policies so a domain blocked at one layer is not allowed at the other.
Frequently asked questions
Is DNS filtering cheaper to run than a secure web gateway?
Usually, yes, because DNS filtering needs no hardware, no endpoint agents and no certificate management. A gateway adds licensing per seat or device, agent upkeep, root certificate renewal and exception rules for apps that break under inspection. The running cost of DNS filtering is policy upkeep and firewall rules for encrypted DNS. Compare total running cost rather than license lines, and confirm current terms with each vendor.
Does Purple Shield work with the WiFi hardware I already own?
Yes. Shield works at the DNS layer, so it runs on any WiFi, including Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist, Ubiquiti UniFi, Cambium, Extreme and Fortinet. You point each network's DNS at Shield and set a policy per network and VLAN. It runs standalone or alongside Purple Access, with no new hardware on site.
Can DNS filtering replace a secure web gateway?
It can on guest and venue networks, but not where you must see inside traffic. DNS filtering blocks malicious and unwanted domains before any connection opens, which covers most threat and content needs for visitors. It cannot enforce rules on URL paths, scan files on trusted domains or inspect uploads for data loss prevention. Keep a gateway for the managed devices that need those controls.
Can I run DNS filtering and a secure web gateway together?
Yes, and on mixed sites that is the strongest design. Shield filters every device at DNS resolution, including the guest devices a gateway cannot inspect. The gateway then inspects managed staff devices in depth. Because DNS blocks known-bad domains first, less malicious traffic reaches the proxy. Keep the two category policies aligned so a domain blocked at one layer is not allowed at the other.
Does a secure web gateway work on guest WiFi?
Only partially. Without a trusted root certificate on the device, a gateway cannot decrypt HTTPS without causing certificate errors. You cannot install certificates on guests' phones. A gateway can still filter on the hostname sent in the TLS handshake, which is close to what DNS filtering already does with less infrastructure. For guest WiFi, protective DNS is the practical choice.
What happens to filtering if the DNS service goes down?
With Shield, filtering stays on. Shield fails closed, so an outage never leaves a network unfiltered. Services that fail open send devices to an unfiltered resolver to keep traffic flowing, which leaves the network exposed for the length of the outage. Ask every vendor to state its failure behavior in writing, and test it before go-live.
Is TLS inspection compatible with CCPA/CPRA?
It can be, but it needs more governance than DNS filtering. Decrypting staff traffic processes the content of their communications. You therefore need a lawful basis, a privacy impact assessment and clear notice to staff. Most deployments also exempt banking and health sites. DNS filtering processes domain names only, a narrower footprint that is simpler to justify and document.
How much effort does moving from a proxy to DNS filtering take?
Less than most teams expect, because the cutover is a DNS change per network. The work sits in three places. You map proxy categories to DNS categories, decide what to do with URL-path rules that have no DNS equivalent, and block encrypted DNS at the firewall. Test each network from a real device before you retire the old rule set.
