Internal HTTP proxy · Allowlisted targets only

Proxy Service

An internal egress proxy for BizKitHub backend services. Requests are forwarded only to an allowlist of target hosts; caller credentials are never forwarded and responses are served inert (sandboxed, as attachments, never cached).

Endpoint

One URL, every method

ANY https://proxy.bizkithub.com/?url=<encoded-target-url>

Every HTTP method is accepted (GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS). The request is forwarded verbatim to the target URL and its full response is streamed back.

Parameters

Query parameters

One parameter, one job — the target URL. Everything else is your original request.

ParameterTypeBehavior
urlstring (required)Absolute HTTP(S) URL to proxy the request to. Must be URL-encoded so that its own query string is not mixed with proxy parameters. Only http: and https: schemes are accepted.

URL encoding matters. The target URL must be encoded — if you pass raw ?url=https://…?x=1&y=2, the trailing &y=2 becomes a parameter of the proxy, not of the target. Encode the target first (encodeURIComponent).

Forwarding rules

What is forwarded, what is stripped

Request → Upstream

Method, path, query, body (streamed) and every header except hop-by-hop headers and platform headers Vercel/Next inject:

Host, Content-Length, Accept-Encoding, Cookie, Authorization, X-BKH-Proxy-Key, Origin, Referer, Forwarded, Via, X-Forwarded-*, X-Real-IP, X-Vercel-*, X-Matched-Path, X-Invoke-*, X-Middleware-Invoke, Connection, Keep-Alive, Proxy-Authenticate, Proxy-Authorization, TE, Trailer, Transfer-Encoding, Upgrade

Everything else (for example Content-Type, custom User-Agent) is passed through. Request bodies are capped at 10 MB and the upstream call times out after 20 s.

Upstream → Response

Status code, status text, Content-Type and other informational headers (rate-limit headers, ETag, …) are returned.Set-Cookie and security-relevant headers are dropped, and every response carries Content-Security-Policy: sandbox; default-src 'none', X-Content-Type-Options: nosniff, Content-Disposition: attachment, Cache-Control: no-store and Referrer-Policy: no-referrer. Stripped headers:

Set-Cookie, Location (unless allowlisted), Access-Control-*, Content-Security-Policy, Content-Disposition, Cache-Control, Link, Refresh, Content-Encoding, Content-Length, Connection, Keep-Alive, Proxy-Authenticate, Proxy-Authorization, TE, Trailer, Transfer-Encoding, Upgrade

Redirects

Upstream 3xx responses are returned without being followed. When the redirect target is on the allowlist, Location is rewritten back into a proxy call so the next hop is checked again; any other Location is removed.

Body streaming

Response bodies are streamed and capped at 10 MB. Binary content arrives byte-identical.

Examples

Common usage

Copy, tweak, ship.

POST — internal batch lookup

Only allowlisted internal targets are accepted. The shared key header is required when the deployment has one configured, and is never forwarded to the target.

curl -X POST 'https://proxy.bizkithub.com/?url=http%3A%2F%2Fip-api.com%2Fbatch' \
  -H 'x-bkh-proxy-key: <shared key>' \
  -H 'Content-Type: application/json' \
  -d '["8.8.8.8"]'
Errors

Errors returned by the proxy itself

StatusWhen
400The url parameter is missing, empty, not a valid URL, or uses a scheme other than http/https.
403Missing or wrong x-bkh-proxy-key, target host not on the allowlist, non-default port, or credentials in the target URL.
413Request body larger than 10 MB.
504The upstream did not respond within 20 seconds.
502The upstream request itself failed at the network layer (DNS failure, TLS error, connection refused, upstream aborted). The body contains a plain-text explanation.

Any other status code you receive was produced by the upstream server, not by the proxy.

Scope

What this service is not

  • — Not an anonymizer. The upstream sees a normal request with your headers. IP address is the proxy's egress IP.
  • — Not a cache. Every request is dynamic (force-dynamic). Nothing is stored.
  • — Not an auth broker. Credentials you pass in headers are forwarded verbatim; the proxy does not attach or rewrite any.
  • — Not a WebSocket / SSE relay. HTTP/1.1 upgrades are not supported. Request/response streaming works for regular HTTP traffic only.
Open the platform documentation