Link Expiration
Manage link access effectively with Bitsy link expiration features, including date-based and click-based expiration.
What is Link Expiration?
Link expiration is a feature that allows you to manage access to your links by setting an expiration date or limiting the number of clicks. This helps ensure that your content remains secure and only accessible for a specified duration or number of interactions.
Enhance Link Management with Expiration Settings
With Bitsy’s link expiration feature, you can define when your links will become inactive. This is particularly useful for time-sensitive promotions, campaigns, or sensitive content that should not be accessible indefinitely.
How to Implement Bitsy Link Expiration
Step 1: Set Up Your Parameters
When configuring link expiration, define the necessary parameters:
-
has_expiration
: Boolean indicating if the expiration feature is active. -
expiration
: The expiration date for the link in ISO 8601 format. -
expiration_clicks
: The maximum number of clicks before the link expires.
Step 2: Define Your Expiration Logic
Here’s a straightforward logic structure for handling expiration:
-
Check if the current date/time exceeds the
expiration
date. -
Check if the number of clicks exceeds
expiration_clicks
. -
If either condition is met, mark the link as expired.
Example Link Expiration Rules
Here’s a sample of how you might structure your link expiration configuration:
Explanation of the Example
has_expiration
: Indicates that the expiration feature is active for this link.expiration
: This specifies the date and time when the link will no longer be active, formatted in ISO 8601.expiration_clicks
: This defines the maximum number of times the link can be clicked before it becomes inactive.
Step 3: Testing Your Setup
Before going live, it’s crucial to test your expiration settings:
-
Simulate clicks to ensure that the link becomes inactive after reaching the specified
expiration_clicks
. -
Verify that the link is inaccessible after the
expiration
date and time.
Conclusion
Implementing Bitsy link expiration features can significantly enhance your content management by providing controlled access to your links. By clearly setting expiration parameters and thoroughly testing your setup, you can ensure that your links remain secure and relevant to your audience.
Was this page helpful?