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.

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:

  1. Check if the current date/time exceeds the expiration date.

  2. Check if the number of clicks exceeds expiration_clicks.

  3. If either condition is met, mark the link as expired.

Here’s a sample of how you might structure your link expiration configuration:

{
  "has_expiration": true,
  "expiration": "2024-12-31T23:59",
  "expiration_clicks": "100"
}

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:

  1. Simulate clicks to ensure that the link becomes inactive after reaching the specified expiration_clicks.

  2. 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.