How to password protect a short link
Short answer: on urlf.ly, sign in, paste your long URL, open Advanced options, type a password (4 to 72 characters) and press Create link. Anyone who opens the short link sees a password box before they are sent on. Password-protected links are part of the Premium plan (USD 10 a month or USD 80 a year); short links and click statistics on a free account are free.
Step by step
- Sign in to urlf.ly and open your dashboard.
- Paste the long URL into Destination URL. Add a title or a custom short name if you want one (custom names are also a Premium feature).
- Open Advanced options and type a password into the Password field. It must be 4 to 72 characters.
- Press Create link. The new short link now asks for the password before it redirects.
- Send the short link and the password through different channels, for example the link by email and the password by text message.
- To change the password later, open the link’s Edit page and type a new one. To make the link public again, tick Remove password and save.
If you create links from code, the same thing works through the API: send a password field when you create or update a link (Premium plan). A short example is in our URL shortener API guide.
curl -X POST https://urlf.ly/api/v1/links \
-H "Authorization: Bearer uf_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/client-preview", "title": "Client preview", "password": "pick-something-long"}'
Two details from the API reference: an empty password value leaves the current password alone, and removing a password is done from the link’s Edit page, not through the API.
What visitors see
A visitor who opens the link lands on a page that says the link is protected, with a single password box. The destination address is not shown on that page. A correct password sends them on as usual. A wrong one shows “Wrong password. Try again.” and keeps them on the prompt.
To slow down guessing, each visitor gets 10 tries per link every 10 minutes, then has to wait. After a correct entry, that browser stays unlocked for that link for 60 minutes, so reopening it inside the hour does not ask again.
How the password is stored
urlf.ly never keeps the password in readable form. It stores a one-way hash, the same way account passwords are stored. That is good for security and has one consequence: nobody can look the password up later, including you. If you forget it, open the Edit page and set a new one. The full behaviour is described on the password-protected links feature page.
Sharing the password sensibly
- Use a different channel for the password. If the link and the password travel in the same message, anyone who intercepts the message has both.
- Pick something that is not guessable from your name, the file name or the date. Longer is better; the field accepts up to 72 characters.
- Remember there is one password per link. Everyone shares it, and there are no per-person passwords or access lists. If you need to cut off one group without affecting another, create a separate link, with its own password, for each group. Each link has its own click statistics, so you also see which group opened what.
Combine a password with an expiry
A password limits who can open a link. An expiry limits how long that stays true. Both are worth setting on anything temporary.
- Expiry date: in the Expires field, type a number of days from now (for example
7) or a date such as2026-12-31. Link expiry is available on free accounts. After the date, visitors see a “Link unavailable” page with HTTP status 410. - Click limit and after-expiry redirect: under Advanced options you can also stop a link after a set number of counted clicks and send visitors to a page of your choice afterwards. These two are Premium.
A realistic setup for a client preview: password on, expiry in seven days, click limit of 25. Details are on the expiring links page.
Good uses
- Client previews. Share a staging site, a draft document or a design file with one client without posting an open link.
- Event material. Give attendees one short link for slides or recordings and announce the password in the room.
- Member or course downloads. Hand out one link that only people with the password can follow.
- Team links in public places. Post a link in a shared channel or on a printed handout while keeping casual visitors out.
Clicks on a protected link still appear in your link statistics like any other visit.
What password protection does not do
- It protects the short link, not the page behind it. Anyone who already has the full destination URL can open it directly. For truly private content, protect the destination as well.
- It does not tell you who typed the password. You see clicks, not people.
- It stops working if your plan lapses. If your account later moves to a plan without password links, the link keeps redirecting but stops asking for the password. Before you cancel or let Premium end, change any protected links you still rely on, or point them somewhere harmless.
- It is not a vault. Think of it as a lock on a door. It is the right level for everyday sharing and the wrong one for secrets such as bank details.
If you only want a link to look clean while visitors browse, that is a different tool: link cloaking keeps your short URL in the address bar but does not restrict who can open it. For a general look at how to judge a short link before you click one, see Are short links safe?. If you want the link itself to carry your own domain, read how to create a branded short link.
How other link shorteners handle passwords
This is worth checking before you choose a service, because the price at which password links appear differs a lot. From each service’s own public pricing page, checked on December 2, 2026:
- Short.io includes password protection from its Pro plan, listed at USD 18 a month. See urlf.ly vs Short.io.
- Rebrandly includes password-protected links from its Professional plan (50 a month), and 150 a month on Growth. See urlf.ly vs Rebrandly.
- TinyURL does not list password protection on its pricing page. See urlf.ly vs TinyURL.
- Bitly: see the Bitly comparison.
FAQ
Can I password protect a link for free?
No. Password-protected links are part of urlf.ly Premium (USD 10 a month or USD 80 a year). Short links, click statistics and link expiry are free.
Can each person get their own password?
No. A link has one password that everyone shares. Create separate links if you need separate passwords.
Can I see the password later?
No. Only a one-way hash is stored, so it cannot be shown again. Set a new one on the link’s Edit page.
How long does a visitor stay unlocked?
After a correct entry, that browser can open the link again without the password for 60 minutes.
What happens after too many wrong passwords?
Each visitor gets 10 tries per link every 10 minutes. After that they have to wait before trying again.
Do password-protected links still count clicks?
Yes. Visits show up in your statistics like any other click.
More detail: Password-protected short links on urlf.ly. See the pricing page for what each plan includes, and the API documentation if you create links from code.
Shorten your links and track every click, free.
JOIN NOW