N Docs
← Back to site

Link cloaking

2 min readUpdated November 23, 2026

Cloaking keeps your short link in the visitor’s address bar. The destination is shown inside your short link’s page, so visitors see go.yourbrand.com/offer instead of the long address.

Turn it on#

  1. Open the link and go to Link cloaking.
  2. Turn on Enable cloaking and click Save changes.
Link cloaking turned on, with the note about sites that can't be cloaked

When to use it#

  • Affiliate links, where you’d rather not show the long tracking address.
  • Short, clean addresses for pages on other services, like a form or a booking page.
  • Keeping your brand in the address bar during a campaign.

Websites that can’t be cloaked#

Many websites don’t allow themselves to be shown inside another site’s page. They send the headers X-Frame-Options or frame-ancestors. Most big sites do this, including Google, Facebook, Amazon and most banks and checkouts.

Nahnu Links checks each destination before showing it:

  • Allowed: the page is shown cloaked.
  • Not allowed: visitors are redirected to the website as normal and see its own address. They never see a blank page or “refused to connect”.

When you turn on cloaking for such a website, the editor tells you: This link can’t be cloaked. Only the website’s owner can change that. The answer is remembered and checked again about every 10 minutes, so a site that changes its headers is picked up.

Allow cloaking on your own site#

If the destination is your own site, you can allow it. Add your short domain to its Content-Security-Policy header, for example:

Content-Security-Policy: frame-ancestors 'self' https://go.yourbrand.com

Remove any X-Frame-Options: DENY or SAMEORIGIN header too, because it overrides the policy in some browsers. The change is picked up within about 10 minutes.

What changes for visitors#

  • The address bar keeps the short link, even as they click around inside the page.
  • The browser tab has no title.
  • Bookmarks and shares use the short link.
  • Some things inside frames may not work, such as signing in with Google, some payment forms and pop-ups. Test the pages you cloak.

What keeps working#

Cloaked links still count clicks, apply routing rules and A/B tests, and load retargeting pixels. Search engines and link previews see the social preview if you set one.