Skip to content

Bots & clean stats 7 min read

Email security scanners and one-time links: what they break and how to protect them

In short

  • Work mailboxes are often protected by a security service (Microsoft Defender, Proofpoint, Mimecast and others). It may open the links in your email before the person does, to check they are safe.
  • If simply opening a link does something — unsubscribes, confirms a sign-up, logs someone in, uses up a coupon — the scanner does it instead of the person.
  • The fix is simple: opening the link only shows a page; the action happens when the person presses a button on that page.
  • Our personal links work on the same idea: scanners get a neutral page and don't use up any of the three visits meant for real people. The filter is good, but not absolute.

Imagine you post a letter with a coupon inside, and the building's security guard opens every envelope to check it isn't dangerous. Fair enough. But if the coupon says "valid the first time this envelope is opened", the guard has just used it. The person it was for gets an empty envelope.

That is exactly what happens with one-time links in business email. We have already explained how these scanners work and how to spot them in your statistics. This article is about the other side: what they quietly break, and how to design your links so nothing breaks.

Why the scanner opens your link at all

Companies don't want their staff clicking on phishing. So incoming mail passes through a security service that checks every link. Here is what the vendors themselves say:

Exactly when and how often each of them opens a link depends on the recipient company's settings, which you can't see from outside. If it matters, check with a test.

What matters is simple: a machine may open your link once or several times, before the person does. To your website, that looks like someone opened the link.

What breaks

Anything where "the link was opened" = "the action is done" can be triggered by a machine. The most common cases:

Unsubscribe links

The recipient never asked to leave, but the scanner opened the unsubscribe link, and your system removed them. You lose a subscriber who wanted your emails, and you never find out why.

Sign-up confirmations (double opt-in)

The whole point of "confirm your email" is to prove a real person owns the address. If the scanner confirms it, the confirmation proves nothing.

Magic login links

"Click here to sign in, no password needed." If the link logs in on the first open and then expires, the scanner uses it up. The person clicks and sees "this link has expired". They try again, and the same thing happens.

Password resets

The same story: a reset link that works once may already be spent by the time the person opens it.

One-time coupons and limited offers

"First open gets the discount." The first open was a machine in a data centre. The customer arrives, the coupon is gone, and they are annoyed with you, not with their IT department.

Two rows. Top row, action on open: the scanner opens the link, the action is done straight away, the person arrives later and sees 'link already used'. Bottom row, action on a button: the scanner opens the link and only sees a page, nothing happens; the person opens the link, presses the button, and the action is done.
Opening a link should only show a page. The action belongs to the button.

How to protect one-time actions

The good news: the fix is the same for almost all of these cases, and it doesn't fight the scanners. They keep doing their job; you just stop letting them press your buttons.

1. Opening the link shows a page; a button does the action

This is the main rule. The link in the email leads to a page that says, for example, "Confirm your subscription" or "Sign in as [email protected]", with one big button. The action happens only when the button is pressed.

Scanners open pages to look at them; as a rule they don't press buttons on them (if your case is critical, check with a test). For the person, it is one extra tap, which they barely notice. Web standards are built around the same idea: simply opening an address is meant to be "safe" and change nothing — that is why browsers, previews and scanners feel free to do it.

2. Unsubscribe: support the one-click standard as well

There is an official standard for one-click unsubscribe. The email carries a special unsubscribe header, and the mail app sends a separate kind of request (not a simple open) when the person presses "Unsubscribe". The standard says outright why: >anti-spam software often fetches the links in mail headers automatically, without any action by the user.

Google's >email sender guidelines require one-click unsubscribe for marketing messages from senders of more than 5,000 messages a day, plus a visible unsubscribe link in the body. Most mailing services set the header up for you — check their settings. The visible link in the body should still lead to a page with a button, not unsubscribe on open.

3. Don't spend a one-time link on its first open

For login links, password resets and coupons, the token should be used up when the person presses the button, not when the page loads. Until then, opening the page several times is harmless. Giving such links a reasonable lifetime (say, minutes or hours rather than "one open") helps too.

4. Don't try to block the scanners

It is tempting to say "if it comes from Microsoft's network, block it". It backfires: at the moment of a click the scanner often checks the link first and only then lets the person through, so blocking it can block the person. Answer the scanner politely, just don't let it do anything that belongs to the person.

5. Test before a big send

Send the email to a few mailboxes behind different security services. Watch what reaches your page and when. Then click yourself and check that the button still works for a real person.

Where createlink.link fits

Our personal links have the same problem in a different shape. Each link is made for one recipient and works for three visits by real people, then it closes itself. If a mail scanner or a messenger preview could use up those visits, the person would get a closed link.

So the Anti-Bot filter decides on your own server before the visit goes anywhere. Scanners of mail services and messengers get a neutral, safe page. Those visits do not use up any of the three. A real person goes straight to your page, with no captcha and nothing to press. In your statistics, people and bots are counted separately, so you can see how much the filter stopped. More on why each recipient needs their own link: unique links per recipient.

Two honest notes:

  • The filter is not absolute protection. It looks at what the request itself says (browser name, language and similar signals, plus the visitor's network). It cuts mass scanners well, but no filter catches every bot.
  • It doesn't replace the button on your own pages. The filter protects our personal links. Your unsubscribe page, sign-up confirmation and login links live on your own site, and they still need the "page first, button second" rule.

Checklist

  • Make a list of every link in your emails that does something on open: unsubscribe, confirm, sign in, reset, coupon.
  • Turn each one into "open = page, button = action".
  • Make sure your mailing service sends the one-click unsubscribe header.
  • Use up one-time tokens on the button press, not on page load.
  • Don't block scanner networks; answer them and count only people.
  • Test with real work mailboxes before a big send.

Scanners keep phishing out of the inboxes you want to reach. Design your links so they can look at everything and change nothing.