Search code examples
iisbrowserbasic-authentication

Is it possible to prevent a web browser from saving website credentials?


I have a website protected by basic auth, so when someone hits it, they get a standard username/password box. This website is accessed often from shared computers.

Is there any way to prevent the various "Remember my Credentials" functionality on browsers? I would like to prevent any browser from saving this username/password in any client-side repository.

I realize this is purely a function of the browser, but is there any commonly-accepted HTTP header or any other method of asking a website not to do this?


Solution

  • The answer is no. I'm really sorry but even if you could do this how would you stop an independent add-in from scraping web sites for username and password boxes and then storing that information.

    Even if this were possible in code it could be easily circumvented by simply ignoring any directives you give. Thus rendering such headers pointless.