logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: autocomplete="off" in httpd.conf file?
Author
alexjohnb



Joined: 26 Aug 2011
Posts: 22
Location: Middlesex University

PostPosted: Wed 10 May '17 11:30    Post subject: autocomplete="off" in httpd.conf file? Reply with quote

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: 45
Location: FI, EU

PostPosted: Wed 10 May '17 15:11    Post subject: Re: autocomplete="off" in httpd.conf file? Reply with quote

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

PostPosted: Wed 10 May '17 15:36    Post subject: Reply with quote

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

PostPosted: Wed 10 May '17 19:16    Post subject: Reply with quote

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

PostPosted: Thu 11 May '17 16:33    Post subject: Reply with quote

That appears to have done the trick! Many thanks!
Back to top


Reply to topic   Topic: autocomplete="off" in httpd.conf file? View previous topic :: View next topic
Post new topic   Forum Index -> Apache