# ad-filtering). For more information on Perl regular expressions, see
# the Perl documentation.
# Note that most popup ads will be removed if scripts are removed (see
# $REMOVE_SCRIPTS above).
# If ad-filtering is your primary motive, consider using one of the many
# proxies that specialize in that. The classic is from JunkBusters, at
# http://www.junkbusters.com .
# Reject images whose URL matches any of these patterns. This is just a
# sample list; add more depending on which sites you visit.
@BANNED_IMAGE_URL_PATTERNS= (
'ad\.doubleclick\.net/ad/',
'\b[a-z](\d+)?\.doubleclick\.net(:\d*)?/',
'\.imgis\.com\b',
'\.adforce\.com\b',
'\.avenuea\.com\b',
'\.go\.com(:\d*)?/ad/',
'\.eimg\.com\b',
'\bexcite\.netscape\.com(:\d*)?/.*/promo/',
'/excitenetscapepromos/',
'\.yimg\.com(:\d*)?.*/promo/',
'\bus\.yimg\.com/[a-z]/(\w\w)/\1',
'\bus\.yimg\.com/[a-z]/\d-/',
'\bpromotions\.yahoo\.com(:\d*)?/promotions/',
'\bcnn\.com(:\d*)?/ads/',
'ads\.msn\.com\b',
'\blinkexchange\.com\b',
'\badknowledge\.com\b',
'/SmartBanner/',
'\bdeja\.com/ads/',
'\bimage\.pathfinder\.com/sponsors',
'ads\.tripod\.com',
'ar\.atwola\.com/image/',
'\brealcities\.com/ads/',
'\bnytimes\.com/ad[sx]/',
'\busatoday\.com/sponsors/',
'\busatoday\.com/RealMedia/ads/',
'\bmsads\.net/ads/',
'\bmediaplex\.com/ads/',
'\batdmt\.com/[a-z]/',
'\bview\.atdmt\.com/',
'\bADSAdClient31\.dll\b',
) ;
# If set, replace banned images with 1x1 transparent GIF. This also replaces
# all images with the same if $TEXT_ONLY is set.
# Note that setting this makes the response a little slower, since the browser
# must still retrieve the empty GIF.
$RETURN_EMPTY_GIF= 0 ;
# To use an external program to decide whether or not a user at a given IP
# address may use this proxy (as opposed to using server configuration), set
# $USER_IP_ADDRESS_TEST to either the name of a command-line program that
# performs this test, or a queryable URL that performs this test (e.g. a CGI
# script).
# For a command-line program: The program should take a single argument, the
# IP address of the user. The output of the program is evaluated as a
# number, and if the number is non-zero then the IP address of the user is
# allowed; thus, the output is typically either "1" or "0". Note that
# depending on $ENV{PATH}, you may need to enter the path here explicitly.
# For a queryable URL: Specify the start of the URL here (must begin with
# "http://"), and the user's IP address will be appended. For example, the
# value here may contain a "?", thus putting the IP address in the
# QUERY_STRING; it could also be in PATH_INFO. The response body from the
# URL should be a number like for a command line program, above.
$USER_IP_ADDRESS_TEST= '' ;
# To use an external program to decide whether or not a destination server is
# allowed (as opposed to using @ALLOWED_SERVERS and @BANNED_SERVERS above),
# set $DESTINATION_SERVER_TEST to either the name of a command-line program
# that performs this test, or a queryable URL that performs this test (e.g. a
# CGI script).
# For a command-line program: The program should take a single argument, the
# destination server's name or IP address (depending on how the user enters
# it). The output of the program is evaluated as a number, and if the number
# is non-zero then the destination server is allowed; thus, the output is
# typically either "1" or "0". Note that depending on $ENV{PATH}, you may
# need to enter the path here explicitly.
# For a queryable URL: Specify the start of the URL here (must begin with
# "http://"), and the destination server's name or IP address will be
# appended. For example, the value here may contain a "?", thus putting the
# name or address in the QUERY_STRING; it could also be in PATH_INFO. The
# response body from the URL should be a number like for a command line
# program, above.
$DESTINATION_SERVER_TEST= '' ;
# If either $INSERT_HTML or $INSERT_FILE is set, then that HTML text or the
# contents of that named file (respectively) will be inserted into any HTML
# page retrieved through this proxy. $INSERT_HTML takes precedence over
# $INSERT_FILE.
# When viewing a page with frames, a new top frame is created and the
# insertions go there.
# NOTE: Any HTML you insert should not have relative URLs in it! The problem
# is that there is no appropriate base URL to resolve them with. So only use
# absolute URLs in your insertion. (If you use relative URLs anyway, then
=7= |