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.
How code autofill works
Section titled “How code autofill works”- 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.
Are fake sites offered the code
Section titled “Are fake sites offered the code”- 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.
How to turn it on, off and clean up codes
Section titled “How to turn it on, off and clean up codes”- 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.
- iPhone, deleting codes after use: open Settings › General › Autofill & Passwords and, under Verification Codes, turn Delete After Use on or off.
- Android: open Settings, tap your Google Account at the top › All services › Verification codes by SMS (under Autofill & passwords).
- 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.
When a code pops up on a strange page
Section titled “When a code pops up on a strange page”- 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
In Lean Browser
Section titled “In Lean Browser”- 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
Sources
Section titled “Sources”- Apple: Automatically fill in SMS passcodes on iPhone
- Apple: Automatically fill in one-time verification codes on iPhone
- Apple Developer: Enabling AutoFill for domain-bound SMS codes
- Chrome Developers: WebOTP
- Chrome Help: Fill out forms automatically (Android)
Checked October 30, 2026 (iPhone with iOS 27, Android 16).
Try Lean Browser
Section titled “Try Lean Browser”Free, no ads, no account, no analytics.
