Author |
|
alexjohnb
Joined: 26 Aug 2011 Posts: 22 Location: Middlesex University
|
Posted: Wed 10 May '17 11:30 Post subject: autocomplete="off" in httpd.conf file? |
|
|
To disable the autocomplete feature on web forms, is it possible to put an autocomplete="off" directive into the httpd.conf file?
Many thanks. |
|
Back to top |
|
timo
Joined: 03 Jun 2012 Posts: 46 Location: FI, EU
|
Posted: Wed 10 May '17 15:11 Post subject: Re: autocomplete="off" in httpd.conf file? |
|
|
alexjohnb wrote: | To disable the autocomplete feature on web forms, is it possible to put an autocomplete="off" directive into the httpd.conf file?
Many thanks. |
You need to put autocomplete="off" inside the input element in form in html code, not in httpd.conf.
For example Code: | <input name="xxxx" id="yyy" type="text" size="10" value="myvalue" autocomplete="off"> |
|
|
Back to top |
|
alexjohnb
Joined: 26 Aug 2011 Posts: 22 Location: Middlesex University
|
Posted: Wed 10 May '17 15:36 Post subject: |
|
|
Thank you, Timo. The obvious answer would be to do as you say, but it has been suggested to me that I could put an "autocomplete" directive into the httpd.conf file. My research so far indicates that this is not possible -- unless there is some module that provides this functionality.
Best regards,
Alex |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 10 May '17 19:16 Post subject: |
|
|
It could be put in the conf or in .htaccess using the Substitute directive (mod_substitute) which would add it to every form on the site.
Code: | AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|<form|<form autocomplete=\"off\"|i" |
or to turn existing on's to off
Code: | Substitute "s|autocomplete=\"on\"|autocomplete=\"off\"|qi"
|
|
|
Back to top |
|
alexjohnb
Joined: 26 Aug 2011 Posts: 22 Location: Middlesex University
|
Posted: Thu 11 May '17 16:33 Post subject: |
|
|
That appears to have done the trick! Many thanks! |
|
Back to top |
|