TL;DR
Publicly available forms should never automatically fill with sensitive information like passwords or bank details. This guide explains how to prevent this, focusing on browser settings and form design best practices.
Understanding the Risk
Automatically filling in sensitive data is a huge cyber security risk. If a website is compromised, attackers could steal pre-filled information. Even if the site seems legitimate, it’s better to be safe than sorry.
Step 1: Disable Autofill in Your Browser
Most browsers store form data and offer to autofill fields. Here’s how to disable this feature in popular browsers:
Google Chrome
- Click the three dots (menu) in the top-right corner.
- Select Settings.
- Type ‘autofill’ into the search bar.
- Click Passwords, then disable Offer to save passwords and Auto Sign-in.
- Click Payment methods, then disable Save and fill payment methods.
- Click Addresses and more, then disable Save and fill addresses.
Mozilla Firefox
- Click the three lines (menu) in the top-right corner.
- Select Settings.
- Go to Privacy & Security.
- Under Logins and Passwords, uncheck Ask to save logins and passwords for websites.
- Under Forms & Autofill, uncheck Autofill addresses and Autofill credit cards.
Microsoft Edge
- Click the three dots (menu) in the top-right corner.
- Select Settings.
- Type ‘autofill’ into the search bar.
- Click Passwords, then disable Offer to save passwords and Auto sign-in.
- Click Payment info, then disable Save and fill payment info.
- Click Addresses and more, then disable Save and fill addresses.
Step 2: Clear Existing Autofill Data
Disabling autofill prevents future saving, but you also need to clear any data already stored.
Google Chrome
- Click the three dots (menu) in the top-right corner.
- Select Settings.
- Type ‘clear browsing data’ into the search bar.
- Click Clear browsing data.
- Select Passwords, Payment methods and Addresses and more.
- Choose a time range (e.g., All time).
- Click Clear data.
Mozilla Firefox
- Click the three lines (menu) in the top-right corner.
- Select Settings.
- Go to Privacy & Security.
- Under Logins and Passwords, click Saved Logins… and remove any entries.
- Under Forms & Autofill, click Saved Addresses… and Saved Credit Cards… and remove any entries.
Microsoft Edge
- Click the three dots (menu) in the top-right corner.
- Select Settings.
- Type ‘clear browsing data’ into the search bar.
- Click Clear browsing data.
- Select Passwords, Payment info and Addresses and more.
- Choose a time range (e.g., All time).
- Click Clear now.
Step 3: Form Design Best Practices (For Website Owners)
If you own the website, take these steps to prevent autofill from being misused:
- Use the correct input types: Use
type="password"for password fields. This tells browsers not to save or display the entered text. - Disable autocomplete attribute: Add the
autocomplete="off"attribute to sensitive form fields.<input type="password" name="password" autocomplete="off"> - Use strong encryption (HTTPS): Ensure your website uses HTTPS to encrypt all data transmitted between the user’s browser and your server.
- Avoid storing sensitive information: Do not store passwords or other highly sensitive data on your servers if it’s avoidable. Use secure hashing algorithms if storage is necessary.

