Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I disallow web browser autocomplete?

You know how browsers autocomplete text boxes? Apparently this confuses users. They see it as a short list with only limited options.

Does anyone know how to disable autocomplete?

like image 412
Zack Peterson Avatar asked May 21 '09 16:05

Zack Peterson


People also ask

Can a website block autofill?

Actually you can disable the autofill for usernames and passwords for just a specific site. Go to settings in the Chrome browser then to passwords. Scroll down to find the website that you do not want autofilled. Then you hit on the 3 dots and remove it from the list of saved passwords.

Should I disable autocomplete?

The biggest concern with autofill is privacy and how a hacker can easily obtain personal information. It is simple to trick a browser or password manager into giving up saved login credentials to a malicious person via phishing. The best way for you to prevent any attack is to disable Autofill in any browser you use.

How do I turn off autocomplete list?

Turn off the Auto-Complete List. If you no longer want to see the Recent People suggestions, you can turn off the Auto-Complete List. Select File > Options > Mail. Under Send messages, clear the Use Auto-Complete List to suggest names when typing in the To, Cc, and Bcc lines check box.


2 Answers

The proper way to disable autocomplete is like this:

<input type="text" name="foo" autocomplete="off"/>

or

<form autocomplete="off" ... >

MSDN: autocomplete Property

Mozilla: How to Turn Off Form Autocompletion

Applicable browser versions: Netscape 6.2 (Mozilla 0.9.4) or later. IE 5 or later. ...

This form attribute is not part of any web standards but was first introduced in Microsoft's Internet Explorer 5. Netscape introduced it in version 6.2 -- in prior versions, this attribute is ignored. The autocomplete attribute was added at the insistance of banks and card issuers -- but never followed through on to reach standards certification.

like image 140
Andrew Hare Avatar answered Oct 04 '22 19:10

Andrew Hare


There is the attribute autocomplete. It's currently a proprietary attribute (introduced by Microsoft but on the way to be part of HTML 5:

<input type="text" id="year" name="year" autocomplete="off" ... />

For some background and additional information, see The autocomplete attribute and web documents using XHTML.

like image 26
Gumbo Avatar answered Oct 04 '22 20:10

Gumbo