Skip to content

One-time codes that fill in on websites on iPhone and Android: how it works, can fake sites get them, when to turn it off

You sign in, your bank sends a text with a code, and the code appears right on the keyboard for you to tap. Handy, but scammers aim at exactly this: they build a fake page and wait for you to fill in the code. This guide covers how code autofill works and when to stop, following Apple's and Google's pages.

  • iPhone: when a website or app texts you a code, iPhone finds it in Messages and shows it above the keyboard. Tap it to fill it in.
  • Android: Google's services read the code in the text and fill it into apps and websites. There are two separate switches: one for apps and sites, one for your default browser. Chrome asks for permission the first time it sees a code field.
  • Autofill only reads the code for you. It doesn't tell you whether the page is real or fake.
  • There is a way to bind a code to a domain: the last line of the text reads like "@example.com #123456". Apple says a code bound this way is offered only when the site open in Safari is that domain. Google uses the same format for Chrome on Android.
  • But many code texts don't have this line. Apple says codes without a domain are still offered in every code field, fake pages included.
  • So a code showing up doesn't mean the page is real. Check the domain in the address bar yourself before you tap the code.
  1. iPhone, using a code: when the code field appears, tap the code above the keyboard. Apple has no page with a switch that turns off SMS code suggestions alone.
  2. iPhone, deleting codes after use: open Settings › General › Autofill & Passwords and, under Verification Codes, turn Delete After Use on or off.
  3. Android: open Settings, tap your Google Account at the top › All services › Verification codes by SMS (under Autofill & passwords).
  4. Android: turn Autofill codes in apps and sites, and Autofill codes in your default browser, on or off. With them off you open the text and type the code yourself.
  • Stop and don't tap the code. Check the domain in the address bar: is it really your bank's or the service you meant to open?
  • Got a code without signing in? Someone is trying to get into your account. Never give the code to anyone, even someone claiming to be staff; change your password from the official app or site.
  • Already typed the code into a fake page: go to the official app or site, change your password, sign out unknown devices, and if it is a bank, call the number printed on your card.

Spot a fake website on your phone · Signing out remotely after using someone else's phone

  • Lean doesn't turn off system autofill for websites and has no code autofill of its own. Whether a code appears on the keyboard in Lean is up to the system; we haven't tried it on a device, and it may differ between iPhone and Android.
  • Lean forgets sign-ins each time it forgets, so signing in again and getting a new code next time is normal.
  • Lean doesn't check for fake sites; always check the domain yourself before filling in a code.

Should you save passwords in your phone's browser? · How Lean forgets

Checked October 30, 2026 (iPhone with iOS 27, Android 16).

Free, no ads, no account, no analytics.

Download on the App StoreGet it on Google Play

Spotted a mistake or have a question? See the Support page.

Read more