Skip to content

How can my application avoid leaking project details through outgoing link referrers?

Keep private prompts, names and access tokens out of page URLs, then apply a referrer policy appropriate to private task pages. Referrer controls reduce navigation leakage but do not repair sensitive information already copied into browser history, analytics or shared links.

PROTECT API ACCESS AND RESULTSAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Use opaque route identities; Set the page policy; Inspect actual outbound requests.
Workflow diagram: Use opaque route identities → Set the page policy → Inspect actual outbound requests. Read the article for evidence and limits.

URLs travel beyond the address bar

A private editor URL can appear in logs, screenshots and referrer headers when users follow external links. Putting the entire prompt or a secret in a query string expands its exposure even when the page itself requires authentication.

What to do next

  1. 01

    Use opaque route identities

    Identify projects and tasks through non-secret application IDs and authorize them on the server. Keep sensitive creative text in request bodies or protected storage rather than encoding it into navigable query parameters.

  2. 02

    Set the page policy

    Choose and test the final Referrer-Policy header for private editor and result pages. Apply per-link restrictions when needed, while recognizing that different policies disclose different portions of the source URL.

  3. 03

    Inspect actual outbound requests

    Follow a controlled external link from a synthetic private task page and inspect the received referrer. Also review analytics and access-log configuration, because a correct referrer policy does not prevent those systems from collecting the original URL.

A concrete example

Illustrative example: a task page uses /projects/p17 instead of a prompt-bearing URL and sends no private path in an external navigation under the chosen policy. The analytics event contains only an allowed event name and opaque context.

Before you call it ready

  • Private text never enters route query strings.
  • The final header is verified.
  • Logs and analytics are reviewed separately.

When to stop or choose another method

Stop relying on referrer policy to make a URL safe after it already contains secrets or private creative content.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation