This feature is only available for Pro plans and above.
On Dub.co, you can set an expiration date for your links by toggling the "Link Expiration" switch in the link builder.
This opens up an input where you can type in any given time interval in natural language. For example, you can type "in 2 hours" or "tomorrow at 5PM" and Dub.co will automatically set the expiration date in the correct date-time format for you.
Alternatively, you can also set the expiration date manually by selecting the date and time from the date-time picker.
If you set an expiration date for your link, the user will see an "Expired Link" page when they try to access the link after the expiration date (example).
Note: All clicks to the link after the expiration date will not be tracked.
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 Dub dashboard.
- Click on the Domains tab on the top navigation bar.
- 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, click on the Edit button, which will open the Edit domain modal.
- Toggle the Advanced options section.
- 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.