Developers

Datacenter proxies

Technical guide

Datacenter proxy authentication

Use product credentials or source-IP authentication.

Credentials

Use your product’s proxy username and password. These credentials are separate from your dashboard login and API credentials. Keep username and password in separate client fields. Encode them only when constructing a URL. Choose credential authentication or source-IP authentication for a connection; do not combine both methods. For IP-authenticated connections, register the public egress address of the machine sending the request, including any NAT or VPN.

cURL
: "${PROXY_PASSWORD:?Set your proxy password}"

curl --proxy "http://proxy.crawlhub.ai:8000" \
  --proxy-user "user-USERNAME:$PROXY_PASSWORD" \
  --connect-timeout 10 --max-time 60 \
  https://example.com/

IP allowlisting

For source-IP authentication, allow the public IPv4 address of the machine sending traffic and use its assigned IP-authenticated connection. A VPN or NAT can change the apparent source. Remove entries when a machine no longer needs access. Do not share an allowlisted connection through an untrusted relay.

Search documentation

Search guides, products and reference pages.