For the complete documentation index, see llms.txt. This page is also available as Markdown.

Date range

Only make a lock active between a fixed start and end date — useful for time-limited promotions and events.

Date range matches visitors while the current date falls between a fixed start date and end date you set. Outside that window, the rule doesn't match. It's a good fit for anything tied to a calendar date rather than a recurring pattern — an early-access window ahead of a launch, a holiday promotion, or a members-only sale that should stop working automatically once it ends.

Like most access rules (aside from the action-based ones such as Passcode, Secret link, Subscribe, and Confirmation prompt), Date range can be set to match If the current date is inside the range, or Unless it is — inverting it to match everything outside the range instead. Each rule can also have its own Redirect URL that only applies when this specific rule fails. See Combining rules and Redirect after access.

Add the rule

  1. Open Locks and create a new lock, or open an existing one to edit it.

  2. Choose the content you want to protect. See Access rules overview for how rules fit into a lock.

  3. Click the Unlock rules tab, then in the Condition type dropdown, select Date range.

The Unlock rules tab with Date range selected in the Condition type dropdown.
Select Date range from the Condition type dropdown on the Unlock rules tab.
  1. Set a start date and an end date for when this rule should match.

The Date range rule settings, showing a start date and end date picker.
Set the start and end date the lock's date range condition is active between.
  1. Choose If or Unless depending on whether you want the lock active during the range or outside it.

  2. Click Save.

Combine Date range with another rule in the same access key if you want the time window to only apply to certain visitors — for example, "Date range AND Customer tags" to run an early-access promo only for tagged VIP customers during the promo window.

Last updated

Was this helpful?