---
title: WebSocket traffic · Cloudflare Zero Trust docs
description: Gateway does not inspect or log WebSocket traffic. Instead, Gateway will only log the HTTP details used to make the WebSocket connection, as well as network session information. To filter your WebSocket traffic, create a policy with the 101 HTTP response code.
source_url:
  html: https://e68be143.preview.developers.cloudflare.com/cloudflare-one/policies/gateway/http-policies/websocket/index.md
  md: https://e68be143.preview.developers.cloudflare.com/cloudflare-one/policies/gateway/http-policies/websocket/
---

Gateway does not inspect or log [WebSocket](https://datatracker.ietf.org/doc/html/rfc6455) traffic. Instead, Gateway will only log the HTTP details used to make the WebSocket connection, as well as [network session information](https://developers.cloudflare.com/logs/reference/log-fields/account/zero_trust_network_sessions/). To filter your WebSocket traffic, create a policy with the `101` HTTP response code.

| Selector | Operator | Value | Action |
| - | - | - | - |
| HTTP Response | is | *101 SWITCHING\_PROTOCOLS* | Allow |
