# a) if $ANONYMIZE_INSERTION is set, they'll be resolved relative to this
# script's URL, which isn't great, or b) if $ANONYMIZE_INSERTION==0,
# they'll be unchanged and the browser will simply resolve them relative
# to the current page, which is usually worse.)
# The frame handling means that it's fairly easy for a surfer to bypass this
# insertion, by pretending in effect to be in a frame. There's not much we
# can do about that, since a page is retrieved the same way regardless of
# whether it's in a frame. This script uses a parameter in the URL to
# communicate to itself between calls, but the user can merely change that
# URL to make the script think it's retrieving a page for a frame. Also,
# many browsers let the user expand a frame's contents into a full window.
# [The warning in earlier versions about setting $INSERT_HTML to '' when using
# mod_perl and $INSERT_FILE no longer applies. It's all handled elsewhere.]
# As with $INSERT_ENTRY_FORM, note that any insertion may throw off any
# precise layout, and the insertion is subject to background colors and
# other page-wide settings.
#$INSERT_HTML= "<h1>This is an inserted header</h1><hr>" ;
#$INSERT_FILE= 'insert_file_name' ;
# If your insertion has links that you want anonymized along with the rest
# of the downloaded HTML, then set this to 1. Otherwise leave it at 0.
$ANONYMIZE_INSERTION= 0 ;
# If there's both a URL entry form and an insertion via $INSERT_HTML or
# $INSERT_FILE on the same page, the entry form normally goes at the top.
# Set this to put it after the other insertion.
$FORM_AFTER_INSERTION= 0 ;
# If the insertion is put in a top frame, then this is how many pixels high
# the frame is. If the default of 80 or 50 pixels is too big or too small
# for your insertion, change this. You can use percentage of screen height
# if you prefer, e.g. "20%". (Unfortunately, you can't just tell the
# browser to "make it as high as it needs to be", but at least the frame
# will be resizable by the user.)
# This affects insertions by $INSERT_ENTRY_FORM, $INSERT_HTML, and $INSERT_FILE.
# The default here usually works for the inserted entry form, which varies in
# size depending on $ALLOW_USER_CONFIG. It also varies by browser.
$INSERTION_FRAME_HEIGHT= $ALLOW_USER_CONFIG ? 80 : 50 ;
# Set this to 1 if the script is running on an SSL server, i.e. it is
# accessed through a URL starting with "https:"; set this to 0 if it's not
# running on an SSL server. This is needed to know how to route URLs back
# through the proxy. Regrettably, standard CGI does not yet provide a way
# for scripts to determine this without help.
# If this variable is set to '' or left undefined, then the program will
# guess: SSL is assumed if and only if SERVER_PORT is 443. This fails
# if SSL is used on another port, or (less commonly) a non-SSL server uses
# port 443, but usually it works. Besides being a good default, it lets
# you install the script where both a secure server and a non-secure server
# will serve it, and it will work correctly through either server.
# This has nothing to do with retrieving pages that are on SSL servers.
$RUNNING_ON_SSL_SERVER= '' ;
# If your server doesn't support NPH scripts, then set this variable to true
# and try running the script as a normal non-NPH script. HOWEVER, this
# won't work as well as running it as NPH; there may be bugs, maybe some
# privacy holes, and results may not be consistent. It's a hack.
# Try to install the script as NPH before you use this option, because
# this may not work. NPH is supported on almost all servers, and it's
# usually very easy to install a script as NPH (on Apache, for example,
# you just need to name the script something starting with "nph-").
# One example of a problem is that Location: headers may get messed up,
# because they mean different things in an NPH and a non-NPH script.
# You have been warned.
# For this to work, your server MUST support the "Status:" CGI response
# header.
$NOT_RUNNING_AS_NPH= 0 ;
# Set HTTP and SSL proxies if needed. Also see $USE_PASSIVE_FTP_MODE below.
# The format of the first two variables is "host:port", with the port being
# optional. The format of $NO_PROXY is a comma-separated list of hostnames
# or domains: any request for a hostname that ends in one of the strings in
# $NO_PROXY will not use the HTTP or SSL proxy; e.g. use ".mycompany.com" to
# avoid using the proxies to access any host in the mycompany.com domain.
# The environment variables in the examples below are appropriate defaults,
# if they are available. Note that earlier versions of this script used
# the environment variables directly, instead of the $HTTP_PROXY and
# $NO_PROXY variables we use now.
# Sometimes you can use the same proxy (like Squid) for both SSL and normal
# HTTP, in which case $HTTP_PROXY and $SSL_PROXY will be the same.
# $NO_PROXY applies to both SSL and normal HTTP proxying, which is usually
# appropriate. If there's demand to differentiate those, it wouldn't be
# hard to make a separate $SSL_NO_PROXY option.
#$HTTP_PROXY= $ENV{'http_proxy'} ;
#$SSL_PROXY= 'firewall.example.com:3128' ;
#$NO_PROXY= $ENV{'no_proxy'} ;
# If your HTTP and SSL proxies require authentication, this script supports
# that in a limited way: you can have a single username/password pair per
# proxy to authenticate with, regardless of realm. In other words, multiple
# realms aren't supported for proxy authentication (though they are for
# normal server authentication, elsewhere).
=8= |