/etc/jesred.rules is in jesred 1.2pl1-19.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | # jesred example redirector rules
# this rules file does NOT redirect any URLs.
# after uncommenting/adding rules you need to either reload squid or send jesred a HUP signal.
# Syntax:
#
# regex[i] pattern replacement
# regex[i]ug urlgroup pattern replacement
#
# or
#
# abort .filename_extension
# abortug urlgroup .filename_extension
# jesred uses a linear list of redirect rules and terminates on first match,
# so the order of rules is important!
# abort string:
#
# If jesred enconters the specified string at the end
# of the passed URL, it immediately returns and echo's back a newline (i.e.
# no rewrite) - so this speeds up the lookup process a lot for commonly
# accepted URLs.
# examples:
# abort .html
# abort .jpg
# abort .html
# abort .shtml
# abort .java
# abort .jar
# abort .htm
# regex RE [RURL]
# regexi RE [RURL]
# regexug URLGROUP RE [RURL]
# regexiug URLGROUP RE [RURL]
#
# regex ... indicates, that the following RE is case-sensitive
# regexi ... indicates, that the following RE is case-insensitive
# RE ... is the regular expression, which has to match the passed URL to get
# rewritten with the following RURL (see regex(7)).
# RURL ... if RE matches the passed URL, jesred returns RURL
# URLGROUP ... URLGROUP must also match for jesred to return RURL
# To indicate that a client-side redirect should be performed with
# the new URL prefixing the RURL with "301:" (moved permanently)
# or 302: (moved temporarily).
# RURL can also include a "urlgroup" that can subsequently be matched
# in cache_peer_access and similar ACL driven rules. An urlgroup is
# returned by prefixing the RURL with "!urlgroup!". 2.6STABLE19
# If RURL is omitted, all URLs which match RE are NOT rewritten.
# So the following two rules prevent jesred from rewriting matched URLs, but
# with the 2nd rule jesred does NOT need to store the RURL (thus consuming
# less memory) and does NOT need to do all the pattern replacements (faster)...
#
# regex ^http://(.*)/ads/minizoff(.*) http://\1/ads/minizoff\2
#
# NO_REDIRECT rule
# regex ^http://(.*)/ads/minizoff(.*)
# NOTE: '.' in RE stands for "a single character", so if you want to be sure to match only dots
# escape the special meaning with a prefixed '\'
# regex ^http://199.78.52.10/~web_ani/.*\.gif http://141.44.30.2/images/dot.gif
# abort .gif
# regexi ^http://ad.doubleclick.net/ad/.* http://141.44.30.2/images/dot.gif
# regex ^http://ad.preferences.com/image.* http://141.44.30.2/images/dot.gif
# regex ^http://ads[0-9][0-9].focalink.com/SmartBanner/nph-graphic.* http://141.44.30.2/images/dot.gif
# regex ^http://adserver.developer.com/cgi-bin/accipiter/adserver.exe.* http://141.44.30.2/images/dot.gif
# regex ^http://tracker.clicktrade.com/Tracker.* http://141.44.30.2/images/dot.gif
# regex ^http://adforce.imgis.com/?adserv.* http://141.44.30.2/images/dot.gif
# regex ^http://195.90.252.40/banner.* http://141.44.30.2/images/dot.gif
# regex ^http://www.artuframe.com/partners/affiliates/banners.* http://141.44.30.2/images/dot.gif
|