Wirebook

Wirebook › Bonus lesson

I changed who can open my link. Does the old link still work?

Bonus lesson · about 7 minutes · hands-on · nothing you type leaves your browser

You share a drawing with a link. Later you change your mind about who should see it. Does the old link stop working? Can you take the picture back from someone who already saw it? Play the guard at the door with pretend visitors, take badges away, make a new link, and find out what a website can and can't undo.

Step 1: check it first

Before anything is shared, a careful app shows you exactly what will go and exactly who will be able to see it. Pick a picture and who it's for. Everything here is pretend and stays in your browser.

Which picture?
Who is it for?

Step 2: be the guard at the door

Your 🦕 drawing lives on a pretend server at /p/…. Four visitors try to open it. Every single visit is checked again by the guard, using the rules as they are right now. Change the rules, then press Open on a visitor and read the guard's checklist.

Who may open it?
My list (badges)

(press Open on a visitor)

Missions

    Why the old link can stop working

    A link is just an address. It doesn't carry the picture inside it, and it doesn't carry permission either. Each time someone opens it, their browser sends a fresh request, and the server decides then and there whether to answer. So when you change the rules, the very next visit gets the new answer. That's why the guard in the game checks every visit, not just the first one.

    The part no website can undo. Taking a badge away stops future visits. It can't reach into Ben's tablet and pull out a copy he already saved, screenshotted or printed. That's why “check it first” matters most: the safest share is the one you got right before pressing the button.

    Sneaky leftovers grown-up websites watch for

    Grown-up twins: Tooltern's help pages on 401 vs 403 and no-cache vs no-store, plus why a removed person can still see a file, building share links you can revoke and why a presigned storage link has no off switch. Fusenote's one-time notes work like a link that revokes itself after the first visit: still, whoever opened it could have copied what they read.

    Words from this lesson

    Earn a bonus badge

    Get all 5 right to collect the Who can open it? bonus badge. Bonus badges are extra: they don't change your stamp count or rank. Wrong answers are fine: just try again.

    1. You take Ben off the list for your drawing. When does that stop him?

    2. Ben saved a copy of the drawing before you took his badge away. What happens to that copy?

    3. Your link is set to “anyone with the link” and it was forwarded to a stranger. What's the quickest way to stop strangers using it?

    4. A visitor who isn't signed in gets 401. A signed-in visitor who isn't on the list gets 403. What's the difference?

    5. Why do careful websites send private pictures with Cache-Control: private, no-store?

    Try another lesson

    1. 3Can a website get tired?7 min · interactive
    2. 12How does a game remember where you got to?6 min · interactive
    3. 1What happens when you open a web page?6 min · interactive