Redirect EZproxy to an external survey process 1. From the end of this page, copy everything betwen the opening and closing HTML tag and use it to create a document named survey.htm. 2. Alter the http://www.yourlib.org/survey.asp in both locations to your own survey script. 3. Place survey.htm in the docs subdirectory. 4. Add the following lines to ezproxy.cfg: AutoLoginIPBanner survey.htm ExcludeIPBanner survey.htm 5. Add the following line as the first line of ezproxy.usr: ::Banner=survey.htm With these lines in place, your local and remote users will be redirected to your own survey script. In this script, you will need to preserve the entire query string, and at the end of your survey, you will redirect users to this value. With versions of EZproxy dated 2007-01-21 or later, if survey.htm is missing, EZproxy will ignore the condition, making it possible to enable and disable the survey process by constnatly renaming survey.htm as necessary. The following examples demonstrate how to pick up the entire query string during form presentation and place it in a hidden form field, then how to retrieve it when your survey has been submitted and send the user back to EZproxy. ***** ASP ***** Retrieve the entire query string and store it in hidden field dest. Retrieve the destination URL and send the user back to EZproxy through it <% dest = Request.Form("dest") REM it might be appropriate to verify if dest is blank and do something REM different at this point for that case Response.Redirect(dest); %> ***** Perl ***** Retrieve the entire query string and store it in hidden field dest. print $q->hidden(-name => "dest", -value => $ENV{'QUERY_STRING'}); Retrieve the destination URL and send the user back to EZproxy through it $dest = $q->param('dest'); # it might be appropriate to verify if $dest is blank and do something # different at this point for that case print "Location: $dest\n\n"; ***** PHP ***** Retrieve the entire query string and store it in hidden field dest. Retrieve the destination URL and send the user back to EZproxy through it ***** Sample survey.htm file *****