How noindex works on Dub

Learn how Dub supports noindex response headers for short links with custom domains.

Steven Tey

Written by Steven Tey

If you're familiar with SEO best practices, you might have heard of the noindex meta tag that tells search engines not to index a page.

This is particularly important if you're using Dub with a custom domain – specifically a subdomain – for your short links, since having them indexed could potentially have a negative impact on your SEO.

To prevent this, Dub automatically serves short links with a noindex response header when you're using a custom domain. This tells search engines not to index your short links, keeping them out of search results.

GET /noindex HTTP/2
Host: d.to
User-Agent: curl/8.6.0
 
HTTP/2 302
location: https://dub.co/help/article/how-noindex-works
X-Robots-Tag: noindex
X-Powered-By: Dub.co

If you're using Dub with a default Dub-branded domain (e.g. dub.sh, git.new), the noindex response header is not applied by default.

If you would like your short links to be indexed anyway, you can easily enable indexing by following these steps:

  1. Go to your Dub dashboard.
  2. Click on the button of the link that you want to enable indexing for, which will open the dropdown menu.
  3. In the dropdown menu, click on the Edit button, which will open the Dub link builder.
  4. Scroll down to the Search Engine Indexing section, and toggle the switch to enable indexing.
Enable search engine indexing for a Dub short link
Enable search engine indexing for a Dub short link

And that's it! Your link will now be served without the noindex response header:

GET /doindex HTTP/2
Host: d.to
User-Agent: curl/8.6.0
 
HTTP/2 302
location: https://dub.co/help/article/how-noindex-works
X-Powered-By: Dub.co

This feature is only available for Pro plans and above.

Did this answer your question?