Skip to content

Tunnel Interstitial Pages for APIs, Webhooks, and OAuth

Learn how tunnel warning pages affect browsers, APIs, webhooks, OAuth callbacks, and mobile tests, plus reliable options for localhost access.

Summary in your language
In this article 10 sections
Developer Guides · HTTP Tunnels · Localtonet · 2026

Make public development endpoints work for clients that cannot click a warning page

A tunnel interstitial is an intermediate HTML page displayed before a request reaches your application. A browser user may be able to continue, but an API client, webhook sender, or OAuth callback flow needs a predictable HTTP response. This guide explains how to identify the response you are actually receiving, test a local service through Localtonet, and keep callback integrations secure. We distinguish verified tunnel behavior from provider-specific interstitial policies, rather than recommending an unverified account upgrade or header workaround.

🔒 Keep callback verification enabled 🌐 Test browsers and automated clients separately ⚡ Compare local and public responses

What a tunnel interstitial page is

Browser and automated clients encountering an intermediate page before reaching a tunneled local application.
An intermediate response can interrupt application access differently for human visitors and automated clients.

A public HTTP tunnel gives an internet client an address that routes requests toward a service on your machine or another reachable device. Some providers put a warning, confirmation, or abuse-prevention page in front of certain requests. That page is a response from an intermediate layer, not necessarily from your application.

An interstitial is easy to recognize when it appears in a browser. In an integration, it may look like a JSON parsing error, a missing page element, an unsuccessful callback, or even a successful delivery that never reached the handler. The important distinction is between receiving an HTTP response and receiving the correct application response.

A 200 status alone does not establish that an API worked. An HTML confirmation screen returned with that status is still wrong for a route whose contract requires JSON. Conversely, HTML is not proof of an interstitial: login pages, framework error pages, route fallbacks, and reverse proxies can also produce it.

Localtonet interstitial policy is not established here

The verified product information available for this guide does not establish whether Localtonet displays an interstitial for particular accounts, plans, hostnames, or requests. We therefore do not claim that Free accounts always receive one or that paid accounts never do. Confirm current behavior in our product documentation or with support, and test the actual endpoint before choosing a configuration. Another provider's policy does not establish ours.

🌐 Browser navigation A person can inspect an intermediate page, but a successful visit may depend on cookies or other stored state.
🔗 API clients The response must satisfy the route's status, media type, and body contract, not just complete a network connection.
📨 Webhook senders Delivery depends on the sender's documented acknowledgement rules, timeout, redirect handling, and verification requirements.
🔑 OAuth callbacks The authorization response must reach the intended callback without weakening redirect validation or transaction security.

Why one browser test is not enough

Comparison between a stateful browser session and automated clients accessing the same public tunnel.
Stored browser state can hide a first-visit problem that remains visible to a webhook sender or a clean test runner.

Different clients send different methods, Accept headers, cookies, and User-Agent values. They also differ in whether they follow redirects, execute JavaScript, or retain state. A provider may apply an intermediate page to only some traffic. Do not generalize from a browser result to every API or webhook request.

Compare your usual browser with a clean profile and a command-line client. Then test the actual integration. A successful curl request with a manually added header does not prove that a webhook platform can send that header. A browser that previously acknowledged a warning does not represent a new visitor.

For mobile testing, use the actual device or emulator. Embedded browsers, operating-system network policies, certificate trust, and cookie handling add variables that a desktop test cannot resolve. Do not disable certificate validation to make a test pass. Investigate the hostname, certificate, device clock, and application network configuration instead.

Browser API calls introduce another distinction: CORS is not an interstitial. Curl does not enforce browser CORS rules. If curl succeeds but browser JavaScript cannot read the response, inspect the browser console and any preflight request. Allow the specific development origin and required methods rather than broadly relaxing application security.

Prepare a local service and a safe test endpoint

Before configuring a tunnel, establish a local baseline. You need an account, a Localtonet client on a device that can reach the application, an available relay selection, and an HTTP service with a known address and port. For the diagnostic examples below, you also need curl. The optional filtering example uses Python 3 and a POSIX shell, such as a macOS or Linux terminal.

  • Permission to expose the service: follow your organization's network and data-handling policies. A tunnel is not permission to publish an internal system.
  • A running application: start it using its own supported command and keep its process available throughout testing.
  • A harmless probe route: use an existing health endpoint or a dedicated test route that returns no customer data, environment variables, credentials, or detailed infrastructure information.
  • Test integration credentials: use a sandbox webhook subscription or development OAuth client where the provider supports one.
  • A clear expected result: record the route, method, expected status, content type, and a small non-sensitive response marker.

For example, your application could expose GET /healthz with status 200, content type application/json, and a body such as {"ok":true,"service":"tunnel-test"}. This is an example contract, not an endpoint supplied by Localtonet. Substitute a route that your application actually implements.

curl --silent --show-error \
  --connect-timeout 5 --max-time 15 \
  --output /dev/null \
  --write-out 'status=%{http_code}\ncontent_type=%{content_type}\n' \
  'http://127.0.0.1:3000/healthz'

This performs a GET and discards the body. It does not follow redirects. A connection refusal usually means that the service is not listening at that address and port. A 404 means you reached an HTTP server but not the expected route. Resolve local problems before adding public routing.

Run the baseline from the device that will run the Localtonet client. Its 127.0.0.1 refers to itself, not another workstation or container. If the application runs in a container, virtual machine, or different LAN device, confirm the address and published port reachable from the client device. There is no need to bind the application to every network interface if the client can reach it through a narrower binding.

Connect the HTTP service with Localtonet

External requests traveling through a Localtonet public endpoint and an outbound client connection to a local HTTP service.
Our client establishes the outbound relay connection; the configured local target must remain reachable from that device.

With Localtonet, the client establishes an outbound connection to a relay server. Our standard HTTP tunneling workflow does not require inbound router port forwarding, firewall changes, VPN setup, or a public IP address. Your network must still permit the necessary outbound connectivity under its policies. Standard HTTP tunneling is not a private VPN.

Setup scope and documentation limit

The current OS-specific installation instructions and exact HTTP dashboard screen sequence are not reproduced in the verified material available for this revision. The steps below describe our verified common tunnel lifecycle, not a claimed verbatim sequence from the HTTP setup page. Use the current HTTP tunnel documentation for the supported client installation path and exact interface instructions. We do not substitute guessed installer commands, CLI flags, or dashboard fields.

1

Install and run the client on the reachable device

Obtain the current client for your operating system through our official documentation and follow that distribution's installation instructions. Run it on the device that passed the local-service test. Keep both the application and client running.

2

Authenticate or select the device

Use the device-specific auth token to identify the client that will run the tunnel. Confirm that you selected the intended device. Keep its token out of source control, screenshots, shared logs, and browser application code.

3

Select an available relay server

Choose a server or region from the current dashboard. Available choices can vary; do not copy a server code from an old tutorial or assume every region is available on every plan.

4

Create an HTTP tunnel configuration

Set the target to the local IP address and port verified earlier. HTTP process types include Random Sub Domain, Custom Sub Domain, and Custom Domain, subject to current availability. They provide a public HTTPS address. Consult current documentation before giving a custom domain any DNS configuration.

5

Start the tunnel and test the assigned address

Use Start. Creating a configuration does not mean it is running. Copy the assigned public URL, append the test route, and compare its response with the local baseline. Then test the real integration.

6

Stop or delete temporary exposure

Remove temporary callback registrations when testing ends, then stop or delete the tunnel. Availability depends on the selected device remaining connected and the tunnel remaining running.

If your application generates absolute URLs, configure its public origin using the assigned HTTPS address. Keep this separate from the local target address: a browser outside your machine cannot use your application's localhost URL. Where a framework requires trusted-host or proxy settings, permit the intended hostname and follow its documented trust model. Do not trust arbitrary forwarded headers from all sources.

Inspect status, headers, redirects, and a limited body safely

Start with an unauthenticated, non-sensitive probe. Do not run generic capture commands against a live OAuth callback or a URL containing secrets. Avoid curl -v, full traces, and indiscriminate header dumps in shared terminals or CI logs: they can expose authorization headers, cookies, query parameters, and response bodies.

Compare public response metadata

Replace the placeholder below with the actual public origin. Do not include user information, tokens, or query strings in it. This repeats the local GET without following redirects and without printing the response body.

PUBLIC_ORIGIN='https://replace-with-your-assigned-host'

curl --silent --show-error \
  --connect-timeout 5 --max-time 15 \
  --output /dev/null \
  --write-out 'status=%{http_code}\ncontent_type=%{content_type}\n' \
  "${PUBLIC_ORIGIN}/healthz"

If the status and content type differ from the local baseline, inspect one hop before changing application code. A HEAD request is not an adequate substitute for every test: applications and intermediaries may handle HEAD differently from GET.

Inspect selected headers and a bounded preview

The following POSIX-shell example stores a probe response in a temporary directory restricted to the current user. It prints only status lines, content type, a redacted redirect destination, and at most 512 body bytes. It never prints Set-Cookie or authentication headers. Use it only on the deliberately harmless route, because even a short body or a redirect path can contain sensitive data.

(
  umask 077
  work="$(mktemp -d)" || exit 1
  trap 'rm -rf "$work"' EXIT

  curl --silent --show-error \
    --connect-timeout 5 --max-time 15 \
    --max-filesize 65536 \
    --dump-header "$work/headers" \
    --output "$work/body" \
    "${PUBLIC_ORIGIN}/healthz"
  result=$?
  printf 'curl_exit=%s\n' "$result"

  python3 - "$work" <<'PY'
import pathlib
import sys
from urllib.parse import urlsplit

folder = pathlib.Path(sys.argv[1])
headers = folder / "headers"
if headers.exists():
    for line in headers.read_text(errors="replace").splitlines():
        if line.startswith("HTTP/"):
            print(line)
            continue
        name, separator, value = line.partition(":")
        if not separator:
            continue
        name = name.lower()
        value = value.strip()
        if name == "content-type":
            print("content-type:", value)
        elif name == "location":
            target = urlsplit(value)
            print("location scheme:", target.scheme or "(relative)")
            print("location host:", target.hostname or "(same origin)")
            print("location path:", repr(target.path))
            print("location query/fragment: omitted")

body = folder / "body"
if body.exists():
    with body.open("rb") as stream:
        preview = stream.read(512)
    print("body preview, up to 512 bytes:", repr(preview))
PY
)

The transfer size option is a safety guard, not a substitute for choosing a safe endpoint. Curl behavior and available options depend on the installed version; check errors before trusting the output. A nonzero curl exit code means the transfer may be incomplete. The preview uses an escaped byte representation rather than rendering returned HTML or terminal control characters.

First inspect any redirect destination locally. Only follow it when it is an expected HTTPS destination under your control and the test contains no credentials. For that approved probe, the next command limits redirects and prints final metadata without exposing the final URL's possible query parameters.

curl --silent --show-error \
  --location --max-redirs 3 --proto-redir '=https' \
  --connect-timeout 5 --max-time 15 \
  --output /dev/null \
  --write-out 'final_status=%{http_code}\ncontent_type=%{content_type}\nredirects=%{num_redirects}\n' \
  "${PUBLIC_ORIGIN}/healthz"

Do not apply this redirect-following pattern to signed webhook POSTs or authorization responses. Redirects can change request handling, and some clients will not follow them at all. For a sensitive route, use application instrumentation that records a sanitized request identifier, route name, status, and timing without recording its secrets.

Finally, correlate the public request with your application's access log. If the app never observed it, investigate the tunnel, relay path, or intermediate response. If the app did observe it, examine routing, authentication, host validation, and generated redirects. Response branding is useful evidence, but application-side correlation is stronger than guessing from an HTML title.

Webhook testing must follow the sender's contract

A webhook sender cannot click a confirmation screen, but it also does not universally require “200 with JSON.” Some providers accept a range of successful statuses, some require a particular acknowledgement, and some use a distinct verification challenge when registering an endpoint. Required bodies, timeouts, redirects, retry schedules, and custom-header support are provider-specific.

Before testing, identify the sender's exact requirements. Register the full public handler URL, including its path, rather than only the tunnel origin. Keep the health probe separate from the signed event handler. A successful health check proves reachability, not that signature validation or event processing works.

Verify a delivery end to end

  1. Configure a test subscription using the current public callback URL.
  2. Trigger the provider's documented test event or a sandbox action that creates one.
  3. Check its delivery result, including the status and timing it observed.
  4. Confirm that your handler received the event and passed the provider's signature or authenticity checks.
  5. Confirm the intended test-side effect, using a non-sensitive event identifier rather than dumping the payload.

An intermediate page returning a success status can be especially misleading: the sender might consider delivery complete even though your handler received nothing. A non-success response may cause retries, but you must not assume that retries occur, continue indefinitely, or preserve ordering. Consult that provider's contract and delivery history.

Preserve the exact bytes required by the signature scheme. For schemes that sign the raw body, verify before parsing and reserializing JSON. Check timestamps or replay protection where required, use the correct endpoint's test secret, and handle duplicate events idempotently. A retry should not charge twice, send duplicate messages, or create duplicate records.

If your handler acknowledges before performing expensive work, ensure that the event has been durably accepted according to your architecture before returning success. This is an application design choice, not a feature guaranteed by a live tunnel. Do not assume that a disconnected tunnel queues or replays events.

Custom headers are useful only if both the tunnel provider documents the setting and the webhook sender supports it on the relevant request. Some senders expose no arbitrary header configuration. Preserve authentication headers and signature requirements; do not replace them with a tunnel workaround. Test the exact sender rather than treating a hand-crafted curl POST as equivalent.

OAuth callbacks need exact URLs and transaction security

In an authorization code flow, the authorization server returns the user's browser to the registered redirect URI. The callback handler processes the authorization response and completes the token exchange as appropriate for that client. An interstitial may delay the navigation, obscure an error, or prevent the callback from running until a person acts. It does not justify disabling OAuth protections.

Keep the registered and requested redirect URIs aligned

For a tunneled web callback, register the complete HTTPS URI, for example https://your-assigned-host.example/oauth/callback, replacing that illustrative hostname with the real one. Use the same value in your application's authorization request and, where required, its token exchange. Scheme, hostname, port, path, trailing slash, and any registered query component matter. Do not use wildcards to accommodate changing development URLs.

The OAuth 2.0 Security Best Current Practice, RFC 9700 describes exact redirect URI matching and related defenses, with specific exceptions such as native-app localhost port handling. A public tunnel callback is not a reason to assume that a loopback exception applies.

Start login from the intended public application origin when your session design requires it. Starting on localhost and returning to a different public hostname can leave the callback without the session cookie used to validate the transaction. Investigate cookie domain, Secure, SameSite, and response-mode requirements using your framework's supported configuration. Do not fix a missing cookie by accepting callbacks without validation.

Retain state and use PKCE where applicable

Keep your implementation's state validation enabled. Bind the authorization response to the initiating browser transaction and reject missing, incorrect, expired, or already-used state according to your implementation. Do not put credentials or sensitive user data into state, and do not accept an arbitrary post-login redirect from it.

Use PKCE with the authorization code flow according to the client and provider requirements, using the S256 challenge method where supported and required by current guidance. RFC 7636 defines PKCE: the client sends a challenge during authorization and supplies the corresponding verifier during the code exchange. Keep the verifier associated with that transaction and out of logs. PKCE is not a reason to remove existing state validation casually.

For OpenID Connect login, also retain the library's issuer, audience, token, and nonce checks as applicable. Use a maintained authentication library rather than rewriting protocol handling to accommodate a tunnel page.

Test and retire temporary callbacks

Test a fresh login from a clean browser session. Verify that it reaches the intended callback, validates the transaction, completes the exchange, and establishes the intended application session. Test cancellation or provider errors as well as success. Do not publish screenshots of callback URLs containing authorization codes, and redact query strings from access logs.

When testing ends, remove temporary redirect URIs from the authorization server's client registration. Remove obsolete public origins from application configuration and browser-origin allowlists too. If a hostname is later reassigned or leaves your control, a stale registration can direct authorization responses to an unintended destination. This is a general lifecycle risk, not a claim about Localtonet hostname reassignment behavior. PKCE reduces some interception risks but does not make obsolete registrations safe to retain.

Choose a supported solution instead of automating page clicks

Once you know which layer generated the response, evaluate a documented solution. A provider-supported request setting can fit a client you control. A documented account or hostname configuration may fit broader traffic. Neither is guaranteed merely because another service offers it.

ApproachAppropriate useWhat to verify
Documented request headerAPI clients and test tools you controlCurrent provider support and whether every relevant caller can send it
Documented account configurationWorkflows needing predictable unattended responsesExplicit current behavior; no Localtonet plan-specific promise is established here
Supported custom hostnameRecognizable development URLs and callback configurationAvailability, DNS, certificates, ownership, and response behavior
Managed reverse proxyTeams needing centralized routing or access controlsRequest fidelity, redirect handling, signature compatibility, and maintenance
Different delivery architectureRequirements incompatible with a live local endpointPersistence, replay, security, and real integration behavior

A custom hostname can simplify callback management, but it does not inherently remove intermediate pages. Verify its behavior independently. For Localtonet, consult our current documentation for available options instead of guessing DNS records or assuming that every feature is included in every subscription.

A reverse proxy adds an operational boundary. Preserve the method, body, content type, and relevant signature headers, and account for schemes that include the external URL in their signature calculation. Restrict upstream destinations so it cannot become an open proxy. A proxy that merely forwards an interstitial has not solved the integration problem.

If a workflow requires durable capture while a laptop is asleep, evaluate a system designed for that requirement. A live tunnel and a durable event receiver solve different problems. Likewise, switching tunnel platforms is a valid engineering decision only after checking the actual protocols, lifecycle, security controls, and client behavior required by the integration.

Do not make warning-page clicks part of your integration

Browser automation that finds and clicks a provider confirmation button is fragile and does not fix webhook senders or ordinary API clients. Prefer an explicitly supported configuration. Do not treat changing a user-agent string or reusing someone else's cookies as a stable interface.

Troubleshooting, routine operation, and shutdown

SymptomLikely investigationSafe next action
Local connection failsService process, binding, port, container mappingMake the local GET work from the client device first
Public endpoint unavailableSelected device disconnected or tunnel not runningCheck client connectivity, Start state, and assigned address
HTML instead of JSONInterstitial, login redirect, route fallback, proxy errorCompare first-hop metadata and application request evidence
Browser works, webhook failsStored browser state or provider-specific delivery rulesUse the sender's test delivery and inspect its result
Curl works, browser API failsCORS, cookies, preflight, or browser security policyInspect browser errors without disabling protections
OAuth redirect rejectedRegistered URI mismatch or stale application originCompare the complete URI in registration and configuration
Callback arrives but validation failsMissing transaction state, cookie mismatch, signature failureRepair configuration while retaining verification

During a test session, monitor three independent conditions: the application is running, the client device is connected, and the tunnel is started. A sleeping laptop, stopped container, disconnected client, or stale callback URL can resemble a provider outage. Recheck the current public URL after configuration changes instead of assuming its lifecycle.

Keep a short operational record containing the test owner, intended service, current callback registrations, and planned shutdown time. Record sanitized status and timing evidence, not entire requests. An interstitial is not application authentication, and a public URL is not a secret access control.

Apply least privilege. Expose only the necessary service and protect other routes on the same port. A tunnel targeting one application port can still make its debug panels, administrative routes, or file endpoints reachable unless the application restricts them. Use authentication, permissions, and IP restrictions where appropriate and compatible with the integration.

At shutdown, disable temporary webhook subscriptions and remove temporary OAuth redirect URIs before stopping or deleting the tunnel. Clean up test data, temporary response files, obsolete environment configuration, and any unnecessary credentials. If a credential appeared in a shared trace, rotate it through the issuing system rather than merely deleting the log.

Frequently asked questions

Why does my API return HTML through a tunnel?

It may be an interstitial, authentication page, framework fallback, or proxy error. Compare local and public status, content type, redirect behavior, and a harmless body sample. Check whether the application actually received the request before changing the API parser.

Does a paid Localtonet account guarantee no interstitial?

The verified information available for this guide does not establish that guarantee or a Free-versus-paid interstitial rule. Confirm current account-specific behavior with our documentation or support and test the endpoint with the actual caller before making a purchasing decision.

Can a custom header fix the problem?

Only when the provider documents that control and the caller can send it. A header added to curl does not change requests from a webhook service or a browser authorization redirect. This guide does not establish a Localtonet-specific interstitial header.

Must every webhook return 200 with JSON?

No. Accepted status codes, response bodies, verification challenges, deadlines, and retries depend on the sender. Follow that provider's documentation and verify both its delivery result and your application's processing result.

Does creating a tunnel make it available immediately?

No. Start the tunnel after creating its configuration. It is available only while the selected client device is connected and the tunnel is running. The target application must also remain reachable.

Should I disable OAuth state or webhook signature checks during testing?

No. Public reachability does not establish trust. Keep transaction and signature validation enabled, use PKCE as appropriate for the OAuth flow, and diagnose configuration problems with test credentials and sanitized logs.

Why remove an OAuth callback URL after stopping the tunnel?

Stopping a tunnel does not remove its URI from the authorization server's trusted configuration. An obsolete hostname may later leave your control. Removing unused registrations prevents future authorization responses from being directed to unintended destinations.

Verify your localhost integration with Localtonet

Connect the device that can reach your service, start an HTTP tunnel, and compare the public response with your local baseline. Then test the real webhook, OAuth, API, or mobile client while keeping its security checks enabled.

Get Started Free →

Corrections & updates

Substantive changes approved by the Localtonet editorial team are listed transparently below.

Reviewed and updated for accuracy and completeness.

Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.

Support