Get started (53)
Last updated Apr 21, 2026 This guide walks you through connecting to Privacy Proxy and verifying that traffic is proxied correctly.
Before you begin
Privacy Proxy is a managed service. Before you can connect, Cloudflare will provision an endpoint and provide you with:
- Proxy endpoint URL: The hostname for your Privacy Proxy instance (for example,
https://your-proxy.example.com). - Pre-shared key (PSK): A secret key for proof-of-concept authentication.
- Egress IP ranges: The IP addresses that destination servers will see for proxied traffic.
Contact us ↗︎ to request access and receive your configuration details.
1. Configure your client
Privacy Proxy accepts connections over HTTP/2 and HTTP/3 using the HTTP CONNECT method. Because Privacy Proxy requires authentication headers, you cannot configure browsers to connect directly. Instead, use one of the following approaches:
Use curl for testing locally
For quick tests, use curl with the --proxy and --proxy-header flags to pass authentication directly:
curl -v \
--proxy https://your-proxy.example.com \
--proxy-header "Proxy-Authorization: Preshared <YOUR_PSK>" \
https://example.com
Use Chaussette
Chaussette is a local SOCKS5 proxy that handles authentication and forwards requests to Privacy Proxy.
- Start Chaussette with your PSK and proxy endpoint:
sh
MASQUE_PRESHARED_KEY=<YOUR_PSK> chaussette \
--listen 127.0.0.1:1987 \
--proxy https://your-proxy.example.com:443
- Configure your browser to use the local SOCKS5 proxy:
sh
google-chrome --proxy-server="socks5://127.0.0.1:1987"
2. Verify the connection
To confirm that traffic is routing through Privacy Proxy, check your apparent IP address:
curl -v \
--proxy https://your-proxy.example.com \
--proxy-header "Proxy-Authorization: Preshared <YOUR_PSK>" \
https://cloudflare.com/cdn-cgi/trace
The response includes connection metadata. Look for the ip field, which should show a Cloudflare egress IP address rather than your real IP.
Example responsetxt
fl=123f456
h=cloudflare.com
ip=162.159.xxx.xxx
ts=1234567890.123
visit_scheme=https
uag=curl/8.0.0
colo=SJC
http=http/2
loc=US
tls=TLSv1.3
The ip value confirms the egress IP address used by the proxy.
3. (Optional) Test geolocation
Privacy Proxy preserves user geolocation by selecting egress IP addresses based on the client's location. You can specify a geohash to test this behavior:
curl -v \
--proxy https://your-proxy.example.com \
--proxy-header "Proxy-Authorization: Preshared <YOUR_PSK>" \
--proxy-header "sec-ch-geohash: xn76c-JP" \
https://cloudflare.com/cdn-cgi/trace
The sec-ch-geohash header provides a geohash ↗︎ that the proxy uses to select an appropriate egress IP. The format is <geohash>-<country_code>.
The response should show a loc value corresponding to the geohash region.
Next steps
- Learn about deployment models to understand single-hop versus double-hop architectures.
- Review authentication methods for production deployments using Privacy Pass.
- Configure observability to monitor proxy traffic with GraphQL Analytics and OpenTelemetry.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/privacy-proxy/get-started/#page","headline":"Get started","description":"Connect to Privacy Proxy, configure your client, and verify that traffic is proxied correctly.","url":"https://developers.cloudflare.com/privacy-proxy/get-started/","inLanguage":"en","image":"https://developers.cloudflare.com/privacy-proxy/get-started/og.png?v=5351ef71c7115d50","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Privacy Proxy authentication methods, including pre-shared keys, Privacy Pass tokens, and mutual TLS. title: Authentication image: https://developers.cloudflare.com/privacy-proxy/concepts/authentication/og.png?v=5e39997311d369f0
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/privacy-proxy/llms.txt
Use this file to discover all available pages before exploring further.
Docs