Zero Trust SWG: What a Zero Trust Secure Web Gateway Is and Where It Enforces Policy (2026)

Last updated: December 1, 2026
Direct answer: A zero trust SWG is a secure web gateway that applies zero trust rules to web and SaaS traffic: no request is trusted because of the network it comes from, every request is checked against the user's identity and policy, and traffic is decrypted and inspected before it's allowed. It protects outbound access to the internet and SaaS apps. It doesn't give anyone access to private internal apps; that's the job of zero trust network access (ZTNA).
One disclosure up front: dope.security wrote this piece, and we make an on-device secure web gateway, so read the comparison with that in mind. For the bigger picture (zero trust as a model, SASE as a bundle), see our SASE vs zero trust explainer. This post stays on one component: the web gateway, and what makes it zero trust.
Key takeaways
- "Zero trust SWG" isn't a separate category. It's a secure web gateway that follows the principles in NIST SP 800-207.
- The SWG enforces policy on outbound web and SaaS traffic. ZTNA enforces policy on access to private apps. They're different jobs, even when one vendor sells both.
- Three things separate a zero trust SWG from an old office proxy: identity-based policy, decryption and inspection of every allowed request, and the same policy on every network.
- Where the gateway enforces policy (a vendor data center or the device) changes latency, outage exposure, and where decrypted traffic lives.
What is a zero trust SWG?
A secure web gateway sits between users and the internet. It filters web traffic, blocks malicious and non-compliant destinations, and enforces acceptable use. Palo Alto Networks defines an SWG as "an on-premises or cloud-delivered network security technology that filters internet traffic and enforces corporate and regulatory policy compliance" (Palo Alto Networks).
The "zero trust" part describes how the gateway decides. A classic perimeter proxy trusted anyone inside the office network and mostly ignored laptops outside it. A zero trust SWG drops that assumption. NIST's second zero trust tenet says "network location alone does not imply trust," and its fourth says access is "determined by dynamic policy," including client identity and the state of the requesting asset (NIST SP 800-207). Applied to web traffic, that means the same checks for a user at headquarters, at home, and on hotel Wi-Fi.
Vendors phrase it differently. Microsoft calls Entra Internet Access "an identity-centric Secure Web Gateway (SWG) solution" (Microsoft Learn). The common thread is identity plus inspection, regardless of location.
How does an SWG apply zero trust principles to web and SaaS traffic?
NIST's tenets cover any resource. Here's how the key ones map onto a web gateway.
| NIST SP 800-207 tenet | What it means for a secure web gateway |
|---|---|
| Network location alone doesn't imply trust | The same web policy applies on the office network, at home, and on public Wi-Fi. No "inside" exemption. |
| Access is granted per session, with least privilege | Each request is checked. Allow the sites and SaaS apps a role needs, block the rest by category or app. |
| Access is set by dynamic policy, including identity | Policy is tied to the signed-in user and their groups, not to an IP address or subnet. |
| No asset is inherently trusted | Allowed traffic is still decrypted and inspected for malware, phishing and data leaving the company. |
| Authentication and authorization are dynamic and strictly enforced | Policy changes reach users quickly, and enforcement doesn't lapse when a user changes networks. |
In practice, that means five controls:
- User identity on every request, usually from the identity provider.
- TLS decryption and inspection. A gateway that only reads domain names can't see a malicious download or a file upload. Zscaler notes that "over 95% of web traffic is encrypted" (Zscaler).
- URL and category filtering, the baseline least-privilege control for the open web.
- Cloud app controls, such as allowing the company's Microsoft 365 tenant while blocking personal accounts.
- Data loss prevention on uploads, so trusted users on trusted apps don't send sensitive data to the wrong place.
What makes an SWG "zero trust" instead of a legacy proxy?
| Legacy perimeter proxy | Zero trust SWG | |
|---|---|---|
| Who gets checked | Users on the corporate network | Every user, on every network |
| What policy keys on | IP address or subnet | User identity and groups |
| Encrypted traffic | Often passed through uninspected | Decrypted and inspected, with privacy exceptions |
| Remote users | Backhauled over VPN or left unprotected | Protected wherever they connect |
| SaaS apps | Allowed or blocked as whole domains | Controlled by tenant, account, or activity |
If your gateway only protects people in the office, or only filters by domain, it isn't doing zero trust for the web.
How do vendors describe a zero trust SWG?
Here's how vendors describe their web gateways, ours first since we wrote this. Each competitor line comes from the vendor's own public page.
| Vendor | Web gateway | Where web traffic is inspected | How it describes zero trust or ZTNA |
|---|---|---|---|
| dope.security | dope.swg | On the device | No built-in ZTNA. dope.swg is a web gateway for web and SaaS traffic. |
| Zscaler | Zscaler Internet Access | Public Service Edges in Zscaler's cloud; an organization "can forward its traffic to any Public Service Edge in the world" (Zscaler Help) | Zero trust proxy architecture; private apps via Zscaler Private Access (Zscaler) |
| Microsoft | Entra Internet Access | "Microsoft globally distributed cloud proxies" (Microsoft Learn) | Filtering policies grouped into security profiles and delivered "through user aware Conditional Access policies" (Microsoft Learn) |
| Netskope | Netskope One SWG | Netskope's cloud | A Zero Trust Engine with "context-aware adaptive trust policies" that can trigger step-up authentication or remote browser isolation mid-session; it also powers Netskope Private Access (ZTNA) (Netskope) |
| Cloudflare | Cloudflare Gateway | Cloudflare's global network, at the DNS, network (Layer 4) and HTTP (Layer 7) layers (Cloudflare) | Treats the SWG and ZTNA as the two technologies in a typical zero trust architecture (Cloudflare) |
| Palo Alto Networks | Prisma Access | "On-premises or cloud-delivered" in its SWG definition (Palo Alto Networks) | Places SWG alongside ZTNA and CASB inside SSE and SASE |
| Fortinet | FortiSASE | Cloud or on-premises | Its Zero Trust Edge runs "in the cloud with SWG, CASB, and ZTNA" or on-premises with SD-WAN, firewall and ZTNA (Fortinet) |
| iboss | iboss SWG | iboss cloud gateways | Its "Zero Trust Core" plan covers web filtering and HTTPS decryption; "ZTNA Private Access to Internal Applications" is in the "Zero Trust Advanced" plan (iboss) |
The iboss packaging is a useful reminder: a plan with "zero trust" in its name can cover the web gateway without ZTNA. Check what the label includes.
Where does a zero trust SWG stop and ZTNA begin?
Both apply zero trust principles, but they protect different directions of traffic.
| Zero trust SWG | ZTNA | |
|---|---|---|
| Protects | Outbound access to the internet and SaaS apps | Access to private apps in your data center or cloud |
| Main question it answers | Is this user allowed to reach this site or app, and is this content safe? | Is this user and device allowed to connect to this internal app? |
| Typical controls | URL filtering, TLS inspection, anti-malware, cloud app controls, DLP | Per-app access, hiding apps from the internet, replacing remote access VPN |
| What it doesn't do | Connect users to internal apps | Inspect general web browsing |
Cloudflare's reference architecture says an SWG "filters outbound traffic destined for the Internet," and ZTNA services "provide access for remote users into private applications" (Cloudflare). Platforms that sell both still run them as separate controls. For how the SWG and ZTNA sit inside SSE, see SSE vs SWG.
If remote users don't need internal apps, or you already run a VPN or ZTNA product you're happy with, a zero trust SWG may be the piece you're missing. If you're retiring a VPN, you need ZTNA; an SWG won't replace it.
Does it matter where the SWG enforces policy?
Yes. In NIST's model, the policy enforcement point is the component that enables, monitors, and terminates connections (NIST SP 800-207). For a web gateway, there are two broad places to put it.
In a vendor data center. Most zero trust SWGs work this way. A client or tunnel sends web traffic to the vendor's nearest point of presence, where it's decrypted, inspected, and sent on. The trade-offs are an extra hop for every request, a dependency on that cloud being up, and decrypted traffic in a third party's facility.
On the device. The gateway runs on the device, decrypts and inspects web traffic there, and sends it straight to its destination. Policy still comes from a central console, but there's no stopover data center for web traffic.
| Cloud proxy SWG | On-device SWG | |
|---|---|---|
| Enforcement point | Vendor point of presence | The endpoint |
| Path for web traffic | Device → vendor cloud → site | Device → site |
| Where decryption happens | Vendor data center | On the device |
| What websites see | The vendor's egress IP addresses | The network the device is on |
| Coverage | Any device or site you can route through it | Devices with the software installed |
Neither design is more zero trust by definition; both can check identity and inspect every request. The choice is about performance, resilience, privacy, and your devices. For how two cloud-proxy vendors route traffic, see Netskope vs Cloudflare.
How do you evaluate a zero trust SWG?
Ask each vendor for documentation, not slides, on these points:
- Identity: which identity providers it supports, and whether policy can be assigned by group.
- TLS inspection: what's excluded by default, and whether you can add exceptions.
- Off-network policy: test on home and hotel Wi-Fi, not just the office.
- SaaS control: can it allow your company tenant and block personal accounts on the same app?
- DLP: uploads only, or prompts to AI apps too?
- Enforcement point: where inspection happens, and what happens when it's unavailable.
- ZTNA: is it included, and if not, what will you keep for private app access?
Where dope.security fits, and where it doesn't
dope.security takes the on-device path. dope.swg runs on the endpoint. In our own words from the dope.swg page: "We moved the Secure Web Gateway from the stopover data center to the endpoint. URL Filtering, SSL Inspection, Cloud App Control and more, all on your device." Web traffic goes straight from the device to its destination, with no stopover data center in between. We call this Fly Direct.
How that maps to the controls above:
- Identity. With endpoint authentication turned on, users sign in with their corporate email through Microsoft 365 or Google, and the right web policy is applied (dope.security docs). Policies can be assigned by user or by group (dope.security docs).
- Same policy on every network. Because dope.swg inspects on the device, the same policy applies on any network the device joins. There's no proxy hop for web traffic, and sites see the network the device is on.
- Least privilege inside SaaS. Cloud Application Control works on accounts: if a user tries to reach a cloud app account that hasn't been allowed, dope.swg blocks it. It covers 10 apps, including Microsoft 365, Google, ChatGPT and Claude.
- Data. Dopamine DLP, in the SWG + DLP and SSE+ tiers, extracts text on the device and has dope.security's cloud classify it. It covers uploads and, on supported AI apps, prompts.
Now the limits. dope.security has no built-in ZTNA, and nothing like ZPA. A zero trust SWG covers outbound web and SaaS traffic, not private app access, so if your team needs zero trust access to internal apps, you'll still need a ZTNA product or a VPN alongside us. Our top tier is named SSE+ on our pricing page, but it doesn't include ZTNA. dope.swg is a web gateway, not a cloud firewall (FWaaS). And it covers Mac and Windows devices with the endpoint installed. It doesn't cover phones.
If you want to try the no-stopover path on your own laptops, you can start free on our pricing page.
Frequently asked questions
What is a zero trust SWG?
A zero trust SWG is a secure web gateway that applies zero trust principles to web and SaaS traffic. It checks every request against the user's identity and policy, decrypts and inspects allowed traffic, and applies the same rules on every network.
Is a secure web gateway part of zero trust?
Yes. A secure web gateway is the enforcement point for outbound web and SaaS traffic in a zero trust architecture. It works alongside identity, device security, and ZTNA, which handles access to private apps.
What is the difference between a zero trust SWG and ZTNA?
A zero trust SWG controls and inspects traffic going out to the internet and SaaS apps. ZTNA controls access to private apps inside your network or cloud. They solve different problems, and many teams need both.
Can an SWG replace a VPN?
Not for private app access. A VPN or ZTNA product connects remote users to internal apps, and a secure web gateway doesn't. An SWG can remove the need to backhaul web traffic through a VPN so it can be inspected.
Does a zero trust SWG have to run in the cloud?
No. Most zero trust SWGs inspect traffic in a vendor's data centers, but a gateway can also run on the device itself. Both can enforce identity-based policy and inspect every request. They differ in latency, outage exposure, and where decrypted traffic lives.
Does dope.security include ZTNA?
No. dope.security has no built-in ZTNA, and nothing like ZPA. dope.swg is an on-device secure web gateway for Mac and Windows devices with the endpoint installed, and it doesn't cover phones. Teams that need zero trust access to internal apps keep a ZTNA product or a VPN alongside it.
Email sales@dope.security and we'll set up a walkthrough.



