Skip to content
Protect a Link

Protect a Link

Availability: Password protection is available on Starter and higher. One-time email access is available on Professional and Agency.

By default a link is public — anyone with the short URL can open it. You can restrict access with one of two gated modes, set from a link’s protection settings.

Password protection

Visitors must enter a password before they reach the destination.

  • When a visitor opens the link, Shortn shows a password prompt.
  • After they enter the correct password, they keep access on that device for the link’s access duration (see How long access lasts).
  • A password must be at least 12 characters, and very common or predictable passwords (a common word with numbers, keyboard rows, repeated or sequential characters) are refused. Imported links can keep a shorter password, of at least 8 characters, because it’s already shared with their audience.
  • Passwords are stored hashed (bcrypt); Shortn never stores the plaintext.
  • After 5 incorrect passwords on a link within 15 minutes (or 20 across links within an hour), a visitor has to wait before trying again. Other visitors aren’t affected.

Use password protection for links you share with a known group.

One-time email access (JIT)

Visitors must request a single-use code sent to their email.

  1. The visitor opens the link and enters their email address.
  2. Shortn emails them a 6-digit code.
  3. They enter the code to gain access for the link’s access duration.

Rules:

  • The code expires after 10 minutes.
  • A visitor gets at most 5 attempts to enter it.
  • A code can be requested at most once per minute for the same email and link.
  • To prevent abuse, one visitor can request at most 5 codes every 15 minutes, and one email address can receive at most 5 codes per hour, across all links. A visitor who enters 10 incorrect codes within 15 minutes has to wait before trying again.
  • Each code works once.

Use one-time access when you want to capture who opens the link, or for sensitive destinations shared broadly.

Only allow specific emails

By default anyone with an email address can request a code. To limit a link to certain people, turn on Only allow specific emails in the link’s protection settings and add one entry per line:

  • a full address, such as ana@acme.com, or
  • a whole domain, such as @acme.com, for everyone at that domain. Only that exact domain matches: @acme.com doesn’t include @eu.acme.com, so add subdomains separately.

Up to 200 entries. A visitor whose address isn’t on the list is told it can’t access the link, and no code is sent. Removing an entry ends that person’s access on their next visit, even if their unlock hadn’t expired yet; everyone else keeps theirs.

Who opened the link

Each successful verification is recorded in the link’s activity log with the visitor’s email address, the time, and their browser. The log is kept for as long as your plan’s activity history: 30 days on Free, 180 days on Starter, 1 year on Professional, and 3 years on Agency. Deleting the link deletes its log. Let visitors know you record their email, for example in your privacy notice.

How long access lasts

Choose how long an unlock lasts in the link’s protection settings, under Access lasts: 1 hour, 1 day, 7 days (the default), or 30 days. It applies to both password and one-time email access. A change applies to new unlocks; to end the current ones, revoke access.

Revoking access

Visitors who unlock a link keep access on that device until it expires. To make everyone unlock it again, use Revoke access in the link’s protection settings. Changing the password, or switching between password and one-time email access, also ends every existing unlock.

Choosing a mode

ModeBest for
PublicOpen content anyone can visit.
PasswordA known group you give the password to.
One-time emailCapturing identities; broad but audited access.

Destination security checks

Shortn runs a security check on every destination when you save it, and keeps the result up to date as visitors arrive. Depending on the result, visitors see a page from Shortn instead of being redirected:

ResultWhat visitors see
SuspiciousThis destination looks suspicious, with the signals found. Visitors can Continue anyway.
Under reviewThis short link is under review: the redirect is paused while the destination is reviewed.
BlockedThis short link is blocked.

Each page also lets visitors Report abuse.

Security locks

Shortn can set a link to security_locked automatically when a destination fails a security review (for example, a suspected phishing or malware destination). A locked link stops redirecting until the destination is cleared. You’ll see this status and the reason on the link, with Recheck security and Request manual review.

Manual rechecks are limited to 10 per account in any 24 hours, and a link can be rechecked again one hour after its last check. If you need help sooner, request a manual review from the link.

Last updated on