Go · uTLS MIT License macOS & Linux Docker

Control your TLS & HTTP/2 fingerprint
from one config file

A local MITM proxy for authorized WAF and bot-detection testing. Shape JA3/JA4, HTTP/2 SETTINGS, header order, User-Agent, and source IP — per connection, no target-side changes needed.

Route curl, a browser, or Playwright through it and watch how different fingerprint combinations get classified.

How it works

One proxy, three tunable layers

Traffic tunnels through the proxy via HTTP CONNECT. The proxy terminates TLS with its own MITM CA, then re-establishes an outbound connection to the target using a custom TLS ClientHello and HTTP/2 framing.

Client
curl / browser / Playwright
impersonate-proxy
MITM TLS our CA cert ◄──► uTLS (custom JA3/4)
Header rewriter UA, order, add/del
HTTP/2 framer SETTINGS, WINDOW_UPDATE, pseudo-headers
Target server / WAF
LayerWhat you can control
TLSCipher suites, extensions, and their order (JA3 / JA4) via uTLS presets or a fully custom custom_hello spec
HTTP/1.1Header order, User-Agent, add/remove any header, IP spoofing (X-Forwarded-For / True-Client-IP)
HTTP/2SETTINGS values & order, WINDOW_UPDATE, pseudo-header order (HTTP/2 fingerprint)
Features

Everything a WAF sees, in your control

◈

TLS presets (JA3 / JA4)

Ship as Chrome, Firefox, Safari, Edge, iOS, or a fully custom ClientHello spec — cipher suites, curves, extensions, and order.

⇄

HTTP/2 fingerprint

Hand-built framer controls SETTINGS values & order, WINDOW_UPDATE, PRIORITY and pseudo-header order — and each TLS preset brings its own browser's HTTP/2 fingerprint.

≡

Header order & UA

Reorder any HTTP/1.1 header, override the User-Agent, or add/remove headers before they leave the proxy.

◎

Source IP spoofing

Set X-Forwarded-For and True-Client-IP to test IP-based rules without changing your network path.

⚙

Live management API

A lightweight HTTP API (/api/config) reads and updates the running config — switch presets without restarting.

▣

Chrome extension

Toggle the proxy and switch fingerprint profiles from the toolbar — including a live JA3/JA4 custom-fingerprint builder.

Quick start

Up and running in four steps

Requires Go 1.22+ on macOS or Linux (amd64/arm64) — or skip the Go install entirely with Docker. See the README for full install and Linux instructions.

1

Clone and build

git clone https://github.com/ytkoka/impersonate-proxy.git
cd impersonate-proxy
make build
2

Start the proxy

The MITM CA (ca.crt / ca.key) is generated automatically on first run.

$ make run
listening on 127.0.0.1:8080  preset=chrome
3

Trust the CA certificate

Clients need to trust the proxy-generated leaf certificates.

# macOS system keychain
make trust-ca

# curl only, no system-wide change
curl --cacert ca.crt ...
4

Route traffic through it

curl --proxy http://127.0.0.1:8080 --cacert ca.crt \
  https://tls.peet.ws/api/all
Prefer Docker? No local Go/Make install needed — clone the repo and run docker compose up -d to build and start the proxy in a container, with the CA persisted across restarts. See Docker setup →
Configuration

One YAML file, safe defaults

Every field has a default — override only what you need. Edit config.yaml, then make run.

tls:
  preset: "chrome"          # chrome | firefox | safari | edge | ios | random | golang | custom

http:
  header_order:
    - "Host"
    - "User-Agent"
    - "Accept"
  # client_ip: "1.2.3.4"   # spoof X-Forwarded-For / True-Client-IP

http2:
  enabled: true
  # SETTINGS, WINDOW_UPDATE and pseudo-header order follow tls.preset:
  # chrome/edge, firefox, safari and ios each send their own browser's values.
  # Set settings / window_update / pseudo_header_order only to pin them for every preset.
Chrome extension

Switch fingerprints from the toolbar

A Manifest V3 extension in chrome-extension/ talks to the proxy's management API — no restart required.

impersonate-proxy Chrome extension popup showing proxy toggle, TLS preset selector, and Apply button
Proxy toggleEnables / disables Chrome's proxy setting (routes traffic through :8080)
TLS Presetchrome / firefox / safari / edge / ios / random / golang / custom
Custom JA3/JA4Cipher suites, curves, TLS versions, and extensions — shown when Custom is selected
Client IPSets X-Forwarded-For and True-Client-IP on every request
User-AgentOverrides the HTTP User-Agent header (not navigator.userAgent)
ApplyPOSTs the new settings to the management API — takes effect immediately
Option A — Chrome Web Store (recommended): install directly, updates automatically. Get it here →
Option B — Load unpacked: open chrome://extensions, enable Developer mode, click Load unpacked, select the chrome-extension/ folder.
MCP server · optional

Let an AI agent drive the proxy

A stdio MCP server in impersonate-mcp/ wraps the management API, so an agent can switch fingerprints and check the result in one conversation.

ToolWhat it does
get_configShow the active runtime settings
set_tls_presetSwitch the TLS preset (chrome, firefox, safari, …)
set_custom_helloSet an arbitrary ClientHello and switch to the custom preset
set_user_agentSet the User-Agent ("auto" derives it from the preset)
set_client_ipSet the spoofed client IP
set_upstreamEnable/disable the upstream proxy and select one by name
verify_fingerprintFetch tls.peet.ws through the proxy and summarise ja3_hash, ja4, akamai_fingerprint, user_agent and ip
fetch_urlFetch any http(s) URL through the proxy with the current preset, User-Agent, client IP and upstream, and return status, headers and body. Loopback and private addresses are refused; fetch_allow_hosts can limit it to chosen hosts
# build — prints the binary's absolute path
make build-mcp

# register with Claude Code (command = the binary, not the directory)
claude mcp add impersonate -- /path/to/impersonate-proxy/impersonate-mcp/impersonate-mcp \
  --ca-cert /path/to/impersonate-proxy/ca.crt
Opt-in: a separate Go module — make build and the Docker image don't include it.
Read-only mode: pass --read-only to hide every tool that changes settings; fetch_url is then limited to GET/HEAD/OPTIONS. The management API has no authentication, so keep it on loopback. Full MCP docs →
Verifying fingerprints

Confirm what the server actually sees

tls.peet.ws echoes back the full fingerprint breakdown for any request it receives.

curl -s --proxy http://127.0.0.1:8080 --cacert ca.crt \
  https://tls.peet.ws/api/all | python3 -m json.tool
FieldDescription
tls.ja3_hashJA3 fingerprint hash
tls.ja4JA4 fingerprint string
http2.akamai_fingerprintHTTP/2 fingerprint (SETTINGS + WINDOW_UPDATE + pseudo-header order)
http1.headersHeader names in the order received by the server
ipSource IP as seen by the server