@ALL_TYPES %MIME_TYPE_ID $SCRIPT_TYPE_REGEX $TYPES_TO_HANDLE_REGEX
$THIS_HOST $ENV_SERVER_PORT $ENV_SCRIPT_NAME $THIS_SCRIPT_URL
$HAS_BEGUN
$CUSTOM_INSERTION %IN_CUSTOM_INSERTION
$RE_JS_WHITE_SPACE $RE_JS_LINE_TERMINATOR $RE_JS_COMMENT
$RE_JS_IDENTIFIER_START $RE_JS_IDENTIFIER_PART $RE_JS_IDENTIFIER_NAME
$RE_JS_PUNCTUATOR $RE_JS_DIV_PUNCTUATOR
$RE_JS_NUMERIC_LITERAL $RE_JS_ESCAPE_SEQUENCE
$RE_JS_STRING_LITERAL_START $RE_JS_STRING_REMAINDER_1 $RE_JS_STRING_REMAINDER_2
$RE_JS_REGULAR_EXPRESSION_LITERAL
$RE_JS_TOKEN $RE_JS_INPUT_ELEMENT_DIV $RE_JS_INPUT_ELEMENT_REG_EXP
$RE_JS_SKIP $RE_JS_SKIP_NO_LT
$JSLIB_BODY
$HTTP_VERSION $HTTP_1_X
$URL
$now
$packed_flags $encoded_URL $doing_insert_here $env_accept
$e_remove_cookies $e_remove_scripts $e_filter_ads $e_insert_entry_form
$e_hide_referer
$images_are_banned_here $scripts_are_banned_here $cookies_are_banned_here
$scheme $authority $path $host $port $username $password
$cookie_to_server %auth
$script_url $url_start $url_start_inframe $url_start_noframe
$is_in_frame $expected_type
$base_url $base_scheme $base_host $base_path $base_file $base_unframes
$default_style_type $default_script_type
$status $headers $body $is_html $is_utf8 $response_sent
%in_mini_start_form
$needs_jslib
$debug ) ;
# Under mod_perl, persistent constants only need to be initialized once, so
# use this one-time block to do so.
unless ($HAS_BEGUN) {
#--------------------------------------------------------------------------
# user configuration
#--------------------------------------------------------------------------
# If set, then proxy traffic will be restricted to text data only, to save
# bandwidth (though it can still be circumvented with uuencode, etc.).
# To replace images with a 1x1 transparent GIF, set $RETURN_EMPTY_GIF below.
$TEXT_ONLY= 0 ; # set to 1 to allow only text data, 0 to allow all
# If set, then prevent all cookies from passing through the proxy. To allow
# cookies from some servers, set this to 0 and see @ALLOWED_COOKIE_SERVERS
# and @BANNED_COOKIE_SERVERS below. You can also prevent cookies with
# images by setting $NO_COOKIE_WITH_IMAGE below.
# Note that this only affects cookies from the target server. The proxy
# script sends its own cookies for other reasons too, like to support
# authentication. This flag does not stop these cookies from being sent.
$REMOVE_COOKIES= 0 ;
# If set, then remove as much scripting as possible. If anonymity is
# important, this is strongly recommended! Better yet, turn off script
# support in your browser.
# On the HTTP level:
# . prevent transmission of script MIME types (which only works if the server
# marks them as such, so a malicious server could get around this, but
# then the browser probably wouldn't execute the script).
# . remove Link: headers that link to a resource of a script MIME type.
# Within HTML resources:
# . remove <script>...</script> .
# . remove intrinsic event attributes from tags, i.e. attributes whose names
# begin with "on".
# . remove <style>...</style> where "type" attribute is a script MIME type.
# . remove various HTML tags that appear to link to a script MIME type.
# . remove script macros (aka Netscape-specific "JavaScript entities"),
# i.e. any attributes containing the string "&{" .
# . remove "JavaScript conditional comments".
# . remove MSIE-specific "dynamic properties".
# To allow scripts from some sites but not from others, set this to 0 and
# see @ALLOWED_SCRIPT_SERVERS and @BANNED_SCRIPT_SERVERS below.
# See @SCRIPT_MIME_TYPES below for a list of which MIME types are filtered out.
# I do NOT know for certain that this removes all script content! It removes
# all that I know of, but I don't have a definitive list of places scripts
# can exist. If you do, please send it to me. EVEN RUNNING A SINGLE
# JAVASCRIPT STATEMENT CAN COMPROMISE YOUR ANONYMITY! Just so you know.
# Richard Smith has a good test site for anonymizing proxies, at
# http://users.rcn.com/rms2000/anon/test.htm
# Note that turning this on removes most popup ads! :)
$REMOVE_SCRIPTS= 1 ;
# If set, then filter out images that match one of @BANNED_IMAGE_URL_PATTERNS,
# below. Also removes cookies attached to images, as if $NO_COOKIE_WITH_IMAGE
# is set.
# To remove most popup advertisements, also set $REMOVE_SCRIPTS=1 above.
$FILTER_ADS= 0 ;
=3= |