Skip to content
Link Cloaking

Link Cloaking

Availability: Link cloaking is available on every plan, including Free.

Link cloaking shows the destination page while keeping your short URL in the visitor’s browser address bar. Instead of redirecting, Shortn loads the destination inside a framed page, so the address bar stays on the short link.

Before you enable cloaking

Many websites refuse to be embedded in a frame. When you turn cloaking on, at creation or later, Shortn checks the link’s destinations:

  • If the main destination refuses frames, cloaking can’t be turned on: Shortn says why and the switch goes back off. Use a destination that allows framing, or leave cloaking off. If the check can’t reach the destination, cloaking is saved and the regular checks below take over.
  • For routing targets and A/B variants, Shortn warns about the ones cloaking can’t show, without stopping you.

Common reasons a destination can’t be cloaked:

  • It isn’t served over HTTPS, or it redirects to a page that isn’t.
  • It sends an X-Frame-Options header that blocks framing.
  • It uses a Content Security Policy frame-ancestors that doesn’t allow every site.

Shortn also rechecks cloaked links every 30 minutes. If a destination refuses to be framed, visitors sent to it are redirected normally instead of seeing a blank page, everyone in the workspace gets a notification, and the link’s log records it. Cloaking resumes on its own once the destination allows framing again.

Enable cloaking

Toggle Link cloaking in a link’s advanced settings. Cloaked links are also marked noindex so search engines won’t index the framed page.

What changes for the destination

  • Referrer: with a normal redirect, your destination’s own analytics see the page the visitor came from (a social network, a newsletter). With cloaking, the destination is loaded from Shortn’s frame, so it sees your short domain as the referrer instead (never the short code). Shortn’s own analytics still record the original referrer.
  • No framing of the cloaked page: other sites can’t embed your cloaked short link in their own frames.
  • Browser features: inside a cloaked link, the destination can copy to the clipboard, autoplay and play protected video, use picture-in-picture, share, go fullscreen and use payment buttons. It can’t ask for the visitor’s location, camera or microphone: the browser would show that request as coming from your short domain. If your destination needs them, don’t cloak that link.

Cloaking and conversion tracking

You can use both on the same link, but they don’t work well together:

  • Conversions may not be attributed. Browsers keep what a framed page stores apart from what the same site stores when visited normally. If the visitor buys later, or on a page outside the cloaked frame, the purchase can’t be matched to the click.
  • Checkouts usually refuse frames. Stripe Checkout, PayPal, Shopify checkout and most payment pages can’t open inside a cloaked link, so the visitor may get a blank page at checkout.

The link’s settings show a warning on both the cloaking and conversion tracking options when both are on. For links you sell through, turn off cloaking.

Last updated on