A redirect from an approved URL is a new target decision, not a free pass to continue the proxy trial. Before a client follows each Location, resolve it, check the resulting exact origin against the written scope, and record whether the redirect changes the source, purpose, or credential boundary.
This guide covers authorized, read-only GET observations by a developer or data lead. Its worksheet uses Location responses from 301, 302, 303, 307 or 308 redirects; it does not treat every 3xx response as a new request. POST, sign-in and payment flows require a separate design. It does not automate sign-in, evade controls, or grant access. If an official API, licensed feed, approved direct integration, or manual review answers the task, use that route first. A proxy only supplies a network route; it does not make a redirected target permitted.
Make the redirect rule part of trial scope
Write the starting URL, allowed HTTPS origins (scheme, host and effective port; an omitted HTTPS port and explicit 443 identify the same origin), permitted purpose and fields, method, maximum observations, maximum redirect hops, deadline and owner. Treat a change of origin as a new source boundary even when the brand looks familiar. A subdomain, a different port, an identity provider, a CDN download host and a payment host can each have a different agreement, data class, retention rule or owner.
| Observed redirect | Required evidence before following | Decision when absent |
|---|---|---|
Relative Location | Resolved absolute target, using the URL that returned this response; resolved origin remains in the written scope. | Hold; do not compare the literal relative text to an allowlist. |
| Same exact HTTPS origin | Target remains within the declared origin, purpose and method boundary; hop count remains available. | Hold on an unlisted port, unsupported scheme or changed purpose. |
| Different origin | That exact target origin and intended observation are explicitly approved for this trial. | Hold; obtain a narrower written approval or use the approved alternative. |
| Userinfo or a query string in the Location value | A separate reviewed design. This narrow example holds every query string, including harmless ones; it does not attempt secret detection. | Hold and do not copy the value to shared logs. |
| Repeated target, missing Location, or hop cap reached | A documented source correction or a newly approved bounded route. | Stop this run; neither retries nor a different proxy make it admissible. |
RFC 9110 defines Location as a URI reference and says a relative reference is resolved against the target URI. In a 3xx response it identifies the preferred target for automatic redirection; it does not turn that target into an authorization decision. The standard also leaves proxy selection implementation-dependent. Therefore resolve every hop first, then apply your own scope rule to the resolved target—not to a hostname guessed from the first request.
Do not carry a credential boundary across a redirect by assumption
Keep proxy authentication, origin authentication, cookies, signed URLs and application credentials as separate inventories. A successful first hop does not prove that the next host should receive any of them. For a cross-origin target, re-check its owner, approved data class, purpose, method, retention and logging rule. Capture only redacted identifiers in the trial ledger: start URL alias, resolved-origin alias, response status, hop number, policy revision and decision. Do not store a raw credential-bearing URL or response body in an ordinary report.
Client defaults make this an integration issue, not a universal promise. Requests documents automatic redirects except for HEAD, response history, and removal of Authorization on off-host redirects. These behaviors can change by version and do not replace a deliberate target policy; confirm the actual client and version in the approved test environment. For the first controlled acceptance run, disable automatic redirects if the client permits it, inspect one response at a time, and only issue the next request after the decision is recorded.
Run an offline admission fixture before the live acceptance run
Download the Python 3 standard-library redirect-admission fixture. It has fourteen fictional cases, opens no network connection, reads no credentials, files or environment variables, and does not contact IPHTML or any target. Run:
python3 proxy-redirect-admission.py
Its deterministic stdout is:
offline_synthetic_proxy_redirect_admission
network_requests=0 credential_reads=0 method=GET target_checks_only
relative=TARGET_ONLY_ACCEPTED evaluated_hops=1
listed_cross_origin=TARGET_ONLY_ACCEPTED evaluated_hops=1
explicit_default_port=TARGET_ONLY_ACCEPTED evaluated_hops=1
unapproved_host=HOLD_TARGET_UNAPPROVED evaluated_hops=1
downgrade=HOLD_SCHEME evaluated_hops=1
location_userinfo=HOLD_CREDENTIAL_IN_LOCATION evaluated_hops=1
query_needs_review=HOLD_QUERY_REVIEW evaluated_hops=1
malformed_port=HOLD_MALFORMED_LOCATION evaluated_hops=1
cycle=HOLD_CYCLE evaluated_hops=2
hop_limit=HOLD_HOP_LIMIT evaluated_hops=2
missing_location=HOLD_MISSING_LOCATION evaluated_hops=1
unapproved_start=HOLD_START_UNAPPROVED evaluated_hops=0
empty_chain=HOLD_NO_REDIRECT_EVIDENCE evaluated_hops=0
non_get=HOLD_METHOD evaluated_hops=0
summary=TARGET_ONLY_ACCEPTED:3 HOLD:11 total:14
limits=no_auth_cookie_route_dns_tls_permission_or_provider_verification
Three cases pass the limited target checks; eleven are held. TARGET_ONLY_ACCEPTED means only that the supplied fictional target passes these URL rules. It never means that Authorization, cookies, ownership, permission, proxy routing or the whole workflow passed. The cross-origin case still needs the separate credential and purpose review below. An empty chain provides no redirect evidence. evaluated_hops counts inspected candidate values, not network requests; at the cap, the next candidate is not evaluated. All stdout uses case aliases and decisions, never raw Location values.
The demonstration rejects malformed ports, controls and backslashes, validates the start origin, removes fragments for cycle comparison and normalizes the default HTTPS port. It does not implement a general URL validator, DNS/IP checks, browser canonicalization or encoded-path equivalence. Treat unusual inputs as a separate review; never deploy it as a complete security filter. Its HTTPS-only, no-query rule is an example policy, not a requirement imposed by the HTTP standard.
Record the evidence needed for the full workflow
| Phase | Record | Pass condition | Otherwise |
|---|---|---|---|
| Before request | Written authorization, approved start and target origins, purpose, fields, method, client/version, route policy, hop cap and stop owner. | Every required target is named or a safe no-follow test is authorized. | Use API/licensed/manual route or hold. |
| Per 3xx response | Status, redacted Location classification, resolved origin, hop count, prior-target fingerprint and policy revision. | Effective HTTPS origin is listed; no userinfo or query under this policy; no cycle; cap available. Credential and purpose review remain separate. | Stop before the next request and preserve a redacted hold record. |
| Boundary change | New owner/source, credential and cookie rule, data class, retention/logging rule, purpose and success evidence. | The new boundary has written approval and an independently useful acceptance test. | Exclude it from this trial; do not make first-hop success a coverage claim. |
| Final decision | Accepted-hop ledger, required fields observed, explicit held targets and any direct/official alternative. | The bounded authorized workflow answers the stated business question. | Do not expand or buy based on partial redirect coverage. |
Count all intended redirect paths in the denominator. If a workflow needs four target origins and two remain held, report two of four admitted targets—not a fully accepted workflow. A 200 after an unapproved target is still out of scope. Conversely, an allowed redirect chain does not prove response correctness, geographic behavior, capacity, latency or commercial value. Keep those as separate trial criteria.
Finish route and data acceptance before purchase
Use the curl and Python route guide to check the receiver reached in an authorized observation; route evidence and redirect permission answer different questions. Use the authenticated-view scope ledger for whether a login-protected view belongs in a trial at all. Use the retry-budget guide to limit replay-safe attempts, not to requeue a redirect hold. For source choice and official alternatives, see the public data-source selection guide.
Evaluate the required route with a bounded target list
Bring the authorized purpose, approved origins, redacted redirect ledger, client/version and explicit stop conditions to an evaluation. If a permitted workflow genuinely needs a particular egress geography after these checks, review IPHTML residential proxy information and use the contact page for current product questions. Do not send credentials or private responses. Confirm the current product terms and evaluate the full permitted workflow before deciding whether to buy.
Sources and limits. Checked December 2, 2026: RFC 9110 Location and redirection semantics; Requests redirection/history. The policy, fixture and labels are original editorial methods. They are not legal advice, security certification, client-library conformance testing, target permission, or evidence of IPHTML capability or business outcome.