How to use link cloaking on Dub.co?

Learn how to use link cloaking on Dub.co to mask your destination URL with your short link.

Steven Tey

Written by Steven Tey

This feature is only available for Pro plans and above.

With Dub.co, you can mask your destination URL with your short link by toggling the "Link Cloaking" switch in the link builder.

Toggling the 'Link Cloaking' switch in the link builder
Toggling the 'Link Cloaking' switch in the link builder

This is useful when you want to show your brand or custom domain instead of the actual destination URL.

When this is enabled, your short link will be shown in your users' browser address bar when they visit your link instead of the destination URL.

Masking 'slack.com' with 'dub.sh/slack'
Masking 'slack.com' with 'dub.sh/slack'

A few caveats for the link cloaking feature:

  1. For link cloaking to work, make sure you use https for your destination URL. If your destination URL is http, the browser will show a "Not Secure" warning, and link cloaking will not work.
  2. Link cloaking might not work for certain websites that have security measures in place to prevent this:
  • X-Frame-Options header set to DENY
  • content-security-policy header set to frame-ancestors 'none'

Did this answer your question?