Skip to main content
— Setup walkthrough

Configure visit limits and expiry on sold links

Link products in Alva Digital Downloads carry the same access protections as file products: a visit count cap and an expiry window. Each customer receives a unique access link that fails the moment either limit is exceeded — whichever hits first. Both controls live on the Link record and apply to every customer who already owns that link.

How visit limits and expiry work for links

Each Link record stores three access-control fields: maxVisits (cap on per-customer clicks), expiresAfterHours (rolling window from purchase date), and expiresOn (fixed calendar date). When a customer clicks the access link, Alva reads the visit count, compares it against maxVisits, and writes a LinkVisit row inside a Serializable database transaction — two browser tabs racing the final visit cannot both succeed. A blank field means that axis is unlimited.

Set defaults globally

Max visits and expiry live on each Link record — Alva does not store separate global defaults. To apply a consistent baseline across the catalogue, decide on the values once and reuse them.

  1. Pick baseline numbers. A common starting point is Max visits 5 and Expires after hours 720 (30 days). Use a tighter cap for streaming links (Vimeo, Loom), looser for community links (Discord, Notion).
  2. Apply the same numbers to every new link as you create it, in the Access controls card on the create page.
  3. To retrofit existing links, open each Link record and set the values there. Save updates every existing customer access link for that product.
Screenshot needed

Alva admin → Link edit page → Access controls card. Show the three fields (Max visits, Expires after hours, Expires on) populated with example values (5 / 720 / blank). Highlight the card. No real customer data visible.

The Access controls card on the Link edit page.

What customers see when they hit a limit

When a customer clicks an access link that has exceeded maxVisits, expiresAfterHours, or expiresOn, Alva does not redirect to the destination URL. The customer sees the same friendly limit-reached page used for file downloads, with a short message and a contact link. See Why your customer hit the download limit for the full message text and how to reset access for a specific buyer.

Frequently asked questions

Are visit limits counted per customer or across the whole shop?

Per customer. Each Download record has its own visit count against the Link, so customer A using 5 visits does not consume any of customer B's allowance.

Can I set both an hours-based expiry and a fixed calendar date on the same link?

Yes. Expires after hours and Expires on are independent. The link fails the moment either one is exceeded — whichever hits first.

Do changes apply retroactively to customers who already bought the link?

Yes. The Link record is the source of truth. Editing Max visits or expiry changes the rules for every existing customer access link on the next click.

See also

Was this helpful?

Still stuck? Email us.

Last updated 2026-05-06