On Dub, you can set an expiration date for your links by clicking the Expiration button in the link builder. This will open a new modal called Link Expiration. You can also quickly access the Link Expiration feature by using the keyboard shortcutDocumentation Index
Fetch the complete documentation index at: https://dub-partner-network.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
E while in the link builder.
Enter the following fields to set the expiration:
- Date and Time: Date and time when the link will expire.
- Expiration URL: The URL that the user will be redirected to if the link expires.

Setting a custom expiration URL
You can also set a custom expiration URL for your links. This is useful if you want to redirect users to a specific page when the link expires. To set a custom expiration URL, simply enter a custom URL in the Expiration URL field under the Link Expiration section.
Setting a default expiration URL for all links under a domain
Alternatively, you can also set a default expiration URL for all links under a domain. This is useful if you want to redirect users to a specific page when any link under the domain expires. Here’s how you can set a default expiration URL for all links under a domain:- Go to the Domains settings page in your Dub dashboard.
- Click on the
⋮button of domain that you want to set the default expiration URL for, which will open a dropdown menu.

- In the dropdown menu, select the Edit Domain option, which will open the Edit Domain modal.
- Under the Default Expiration URL field, enter the URL that you want to redirect users to when any link under the domain expires.

- Click on the Save changes button to save the changes.