# Why is an @ in a link a warning sign?

> In a web address, anything before an @ is treated as a username, not the site. So https://accounts.google.com@secure-auth-gateway.net connects to secure-auth-gateway.net. Real sign-in links almost never contain one.

Haven Field Guide · Concept
Canonical page: https://www.starthaven.com/field-guide/learn/at-sign-in-a-url

## How it works

The URL standard allows an optional "user information" part before the host, ending in `@`. Browsers connect to whatever comes after the `@`. An attacker puts a trusted name in front, so the start of the link looks right.

## Example from the Haven quiz

A Google "re-authenticate" link where the text before the `@` names Google, while the browser actually connects to secure-auth-gateway.net.

## How to spot it

1. Look for an `@` in the part of the link before the first single `/`.
2. If there is one, the site is whatever follows it.
3. Treat any sign-in link containing one as suspect, and go to the site directly instead.

## Common misconception

An `@` later in a link, after the path starts, is often harmless, for example an email address passed as a parameter. The warning sign is an `@` in the host part.

## Related questions

- [Why isn't paypal.com.secure-login.net PayPal?](https://www.starthaven.com/field-guide/learn/brand-name-in-a-subdomain.md): The website a link really goes to is named by the end of the hostname, the part just before the first single slash. In paypal.com.secure-login.net the site is secure-login.net; "paypal.com" at the front is just a label its owner chose.
- [How can a link to the real site still send me somewhere fake?](https://www.starthaven.com/field-guide/learn/open-redirect-links.md): Through a redirect. Some links start on a real domain but carry a parameter such as continue=, redirect= or return_to= that sends you to another site afterwards. Check where that parameter points before you click.

## Sources

- [Phishing URL quiz — Haven](https://www.starthaven.com/quiz), checked 2026-10-19
- [RFC 3986: Uniform Resource Identifier, section 3.2.1 (User Information)](https://www.rfc-editor.org/rfc/rfc3986#section-3.2.1)

## Review

Signed off by Miluse Najmr (2026-11-26).
Last reviewed 2026-11-26.

## More

- Field Guide: https://www.starthaven.com/field-guide
- Every Field Guide entry, with short answers: https://www.starthaven.com/llms-full.txt
- Report a mistake: https://www.starthaven.com/contact?topic=issue
