##############################################################
## If you make changes in this file, you must reboot squid ##
## example: squid -k reconfigure ##
##############################################################
##############################################################
## HELP ##
##############################################################
# Globals options:
# ================
#
# error_log /var/log/squid/redirector.err
# # Comment for turn off
# change_log /var/log/squid/redirector.log
# # Comment for turn off
#
# make-cache /usr/sbin/make-cache
#
# work_ip IP # Ip adress(network)
# work_ip IP/MASK # or file with ip for
# work_ip f:/path/file # who redirector work
#
# allow_ip IP # Ip adress(network)
# allow_ip IP/MASK # or file with ip for
# allow_ip f:/path/file # who don't change any contest
#
#
# work_id login # login or file with logins
# work_id f:/path/file # for who redirector work
#
# allow_id login # login or file with logins
# allow_id f:/path/file # for who don't change any contest
#
# allow_urls /path/file # file with urls of don't redirect
#
##############################################################
#
# Sections options: all parametrs work only for ONE section
# =================
# <NAME> # Header for section
#
# ban_dir dirname # Rules for change in this section
# url
http://host/file # url to replace
# # May use: url
http://host/file?var=#URL#&var2=#IP#&i= ... c=#SECTION#
# # #URL# #IP# #IDENT# #METHOD# #SECTION# will be change by redirector
#
# work_ip IP # Ip adress(network)
# work_ip IP/MASK # or file with ip for
# work_ip f:/path/file # who section work
#
# allow_ip IP # Ip adress(network)
# allow_ip IP/MASK # or file with ip for
# allow_ip f:/path/file # who section not work
#
#
# work_id login # login or file with logins
# work_id f:/path/file # for who section work
#
# allow_id login # login or file with logins
# allow_id f:/path/file # for who secion not work
#
# log off # Not write to log changes from this section
# reverse # Reverse result of search in ban dir
#
#############################################################
error_log /var/log/squid/redirector.err
change_log /var/log/squid/redirector.log
make-cache /usr/sbin/make-cache
allow_urls /etc/squid/redirector/banlists/allow_urls
work_ip 192.168.0.0/255.255.255.0
<BANNER>
ban_dir /etc/squid/redirector/banlists/banners
url
http://s2001.net.codis.ru/ban/1x1.gif
log off
<PORNO>
allow_ip 192.168.0.13
ban_dir /etc/squid/redirector/banlists/porno
url
http://s2001.net.codis.ru/ban/porno.html
<MP3>
allow_ip 192.168.0.47
allow_ip 192.168.0.77
ban_dir /etc/squid/redirector/banlists/mp3
url
http://s2001.net.codis.ru/ban/mp3.html
<JS>
ban_dir /etc/squid/redirector/banlists/js
url
http://127.0.0.1/ban/js.js
log off
<AUTO>
ban_dir /etc/squid/redirector/banlists/auto
url
http://s2001.net.codis.ru/ban/porno.html
=========================
pcre я не правил
В логах режика - упоминания об этом УРЛ нет.
Он был выбран как самый короткий ;-) из многих с %20
Система
# uname -ors
Linux 2.4.26-std-smp-alt12 GNU/Linux
# rpm -q redirector
redirector-3.1.0-alt1b