mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2024-11-23 13:50:11 +00:00
add r18 plug & testcode & mindmap
This commit is contained in:
parent
fa4160ec02
commit
ac497e45c4
BIN
1_2.mind_map/2_3.r18插件.xmind
Normal file
BIN
1_2.mind_map/2_3.r18插件.xmind
Normal file
Binary file not shown.
BIN
1_2.mind_map/2_4.R18待评估插件.xmind
Normal file
BIN
1_2.mind_map/2_4.R18待评估插件.xmind
Normal file
Binary file not shown.
Binary file not shown.
BIN
1_2.mind_map/TimeLine(DEC,2015).xmind
Normal file
BIN
1_2.mind_map/TimeLine(DEC,2015).xmind
Normal file
Binary file not shown.
BIN
1_2.mind_map/TimeLine(JAN,2016).xmind
Normal file
BIN
1_2.mind_map/TimeLine(JAN,2016).xmind
Normal file
Binary file not shown.
BIN
1_2.mind_map/TimeLine(NOV,2015).xmind
Normal file
BIN
1_2.mind_map/TimeLine(NOV,2015).xmind
Normal file
Binary file not shown.
BIN
1_2.mind_map/TimeLine(OCT,2015).xmind
Normal file
BIN
1_2.mind_map/TimeLine(OCT,2015).xmind
Normal file
Binary file not shown.
BIN
1_2.mind_map/TimeLine(Sep,2015).xmind
Normal file
BIN
1_2.mind_map/TimeLine(Sep,2015).xmind
Normal file
Binary file not shown.
BIN
1_2.mind_map/从0到1.xmind
Normal file
BIN
1_2.mind_map/从0到1.xmind
Normal file
Binary file not shown.
BIN
1_2.mind_map/高效程序员的45个习惯.xmind
Normal file
BIN
1_2.mind_map/高效程序员的45个习惯.xmind
Normal file
Binary file not shown.
1
1_3.test_code/android_test/Android-Next
Submodule
1
1_3.test_code/android_test/Android-Next
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 8c8f152633d9566d11929dfdedae747f131bf004
|
1
1_3.test_code/android_test/android-common
Submodule
1
1_3.test_code/android_test/android-common
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 81cfc7ce0e93b2c4137fc8a37c836db6dccc6cea
|
1
1_3.test_code/android_test/android-ndk
Submodule
1
1_3.test_code/android_test/android-ndk
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f5aa907d5dff03949757674a7a063bef2d4b15e6
|
28
1_3.test_code/c_test/testMainArgv/plug_helloworld
Executable file
28
1_3.test_code/c_test/testMainArgv/plug_helloworld
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#*************************************************************************
|
||||
# > File Name: testMainArgv.c
|
||||
# > Description:
|
||||
# > Conclusion:
|
||||
# > Author: rh_Jameson
|
||||
# > Created Time: 2016年01月13日 14时51分50秒
|
||||
# ************************************************************************/
|
||||
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
Usage: $0 [down|detect|reload|status]
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
start() {
|
||||
./testMainArgv '123' '321' '123321'
|
||||
}
|
||||
|
||||
|
||||
case "$1" in
|
||||
#down) wifi_updown "disable" "$2";;
|
||||
start) start "$2" "$3" "$4";;
|
||||
--help|help) usage;;
|
||||
*) ubus call network reload; wifi_updown "enable" "$2";;
|
||||
esac
|
Binary file not shown.
@ -1,13 +1,12 @@
|
||||
/*************************************************************************
|
||||
> File Name: testMainArgv.c
|
||||
> File Name: main.c
|
||||
> Description:
|
||||
> Conclusion:
|
||||
> Author: rh_Jameson
|
||||
> Created Time: 2015年07月14日 星期二 12时59分50秒
|
||||
> Created Time: 2016年01月13日 14时51分50秒
|
||||
************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
printf("参数个数= %d\n", argc);
|
||||
|
51
1_3.test_code/sh_test/ampd_test.sh
Executable file
51
1_3.test_code/sh_test/ampd_test.sh
Executable file
@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
ip="192.168.232.237"
|
||||
flag=0
|
||||
position=1
|
||||
|
||||
mpd_seek()
|
||||
{
|
||||
random_num=`awk 'BEGIN{srand();print int(rand()*160)}'`
|
||||
echo "seek $random_num"
|
||||
ncat $ip 6600 << EOF
|
||||
seekid $position $random_num
|
||||
EOF
|
||||
}
|
||||
|
||||
mpd_play()
|
||||
{
|
||||
echo "play"
|
||||
echo $flag
|
||||
ncat $ip 6600 << EOF
|
||||
play
|
||||
EOF
|
||||
}
|
||||
|
||||
mpd_pause()
|
||||
{
|
||||
echo "pause"
|
||||
echo $flag
|
||||
ncat $ip 6600 << EOF
|
||||
pause
|
||||
EOF
|
||||
}
|
||||
|
||||
while ((true)); do
|
||||
mpd_seek
|
||||
#if [ $flag != 0 ];then
|
||||
# mpd_play
|
||||
# flag=0
|
||||
#else
|
||||
# mpd_pause
|
||||
# flag=1
|
||||
#fi
|
||||
|
||||
#sleep_num=`awk 'BEGIN{srand();print int(rand()*5)}'`
|
||||
#echo $sleep_num
|
||||
#sleep_num=$((sleep_num+4))
|
||||
#sleep $sleep_num
|
||||
|
||||
#mpd_seek
|
||||
sleep 2
|
||||
done
|
54
1_3.test_code/sh_test/sh_demo2.sh
Executable file
54
1_3.test_code/sh_test/sh_demo2.sh
Executable file
@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
|
||||
#---------------------------1st---------------------
|
||||
printf "helloworld\n";
|
||||
|
||||
#(1) $PATH定义路径: /etc/environment & /etc/profile & ~/.bashrc
|
||||
|
||||
#(2) 输出字符串长度
|
||||
var=123456789
|
||||
echo ${#var}
|
||||
|
||||
#(3)var运算
|
||||
num1=10
|
||||
num2=10
|
||||
result=$((num1 + num2))
|
||||
echo $result
|
||||
result=$(($num1 + $num2))
|
||||
echo $result
|
||||
|
||||
#(4)输出stderr & stdout
|
||||
ls 2>&1 > test.txt
|
||||
echo $?
|
||||
|
||||
#(5)tee -a XXX 输出并重定向到文件
|
||||
#ps: -a: 追加到文件末尾
|
||||
|
||||
|
||||
#---------------------------2nd--------------------
|
||||
arr=(1 2 3 4 5 6)
|
||||
echo ${#arr[*]}
|
||||
echo ${arr[*]}
|
||||
|
||||
#sh -x XXX debug shell
|
||||
|
||||
|
||||
|
||||
<<EOF
|
||||
let result=num1+num2
|
||||
echo $result
|
||||
echo "res1 add: $result"
|
||||
|
||||
let result++
|
||||
echo "res1 ++: $result"
|
||||
|
||||
let result--
|
||||
echo "res1 --: $result"
|
||||
|
||||
let result+=5
|
||||
echo "res1 +=: $result"
|
||||
|
||||
let result-=5
|
||||
echo "res1 -=: $result"
|
||||
EOF
|
||||
|
11
1_3.test_code/sh_test/test.txt
Normal file
11
1_3.test_code/sh_test/test.txt
Normal file
@ -0,0 +1,11 @@
|
||||
ampd_test.sh
|
||||
background_exec.sh
|
||||
cfe.sh
|
||||
fork_shell.sh
|
||||
random.sh
|
||||
sh_demo2.sh
|
||||
sh_demo.sh
|
||||
sh_demo.sh~
|
||||
sh_strcmp.sh
|
||||
testMemory.sh
|
||||
test.txt
|
236
1_3.test_code/sh_test/wifi
Executable file
236
1_3.test_code/sh_test/wifi
Executable file
@ -0,0 +1,236 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
|
||||
. /lib/functions.sh
|
||||
. /usr/share/libubox/jshn.sh
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
Usage: $0 [down|detect|reload|status]
|
||||
enables (default), disables or detects a wifi configuration.
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
ubus_wifi_cmd() {
|
||||
local cmd="$1"
|
||||
local dev="$2"
|
||||
|
||||
json_init
|
||||
[ -n "$2" ] && json_add_string device "$2"
|
||||
ubus call network.wireless "$1" "$(json_dump)"
|
||||
}
|
||||
|
||||
find_net_config() {(
|
||||
local vif="$1"
|
||||
local cfg
|
||||
local ifname
|
||||
|
||||
config_get cfg "$vif" network
|
||||
|
||||
[ -z "$cfg" ] && {
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
|
||||
config_get ifname "$vif" ifname
|
||||
|
||||
cfg="$(find_config "$ifname")"
|
||||
}
|
||||
[ -z "$cfg" ] && return 0
|
||||
echo "$cfg"
|
||||
)}
|
||||
|
||||
|
||||
bridge_interface() {(
|
||||
local cfg="$1"
|
||||
[ -z "$cfg" ] && return 0
|
||||
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
|
||||
for cfg in $cfg; do
|
||||
config_get iftype "$cfg" type
|
||||
[ "$iftype" = bridge ] && config_get "$cfg" ifname
|
||||
prepare_interface_bridge "$cfg"
|
||||
return $?
|
||||
done
|
||||
)}
|
||||
|
||||
prepare_key_wep() {
|
||||
local key="$1"
|
||||
local hex=1
|
||||
|
||||
echo -n "$key" | grep -qE "[^a-fA-F0-9]" && hex=0
|
||||
[ "${#key}" -eq 10 -a $hex -eq 1 ] || \
|
||||
[ "${#key}" -eq 26 -a $hex -eq 1 ] || {
|
||||
[ "${key:0:2}" = "s:" ] && key="${key#s:}"
|
||||
key="$(echo -n "$key" | hexdump -ve '1/1 "%02x" ""')"
|
||||
}
|
||||
echo "$key"
|
||||
}
|
||||
|
||||
wifi_fixup_hwmode() {
|
||||
local device="$1"
|
||||
local default="$2"
|
||||
local hwmode hwmode_11n
|
||||
|
||||
config_get channel "$device" channel
|
||||
config_get hwmode "$device" hwmode
|
||||
case "$hwmode" in
|
||||
11bg) hwmode=bg;;
|
||||
11a) hwmode=a;;
|
||||
11b) hwmode=b;;
|
||||
11g) hwmode=g;;
|
||||
11n*)
|
||||
hwmode_11n="${hwmode##11n}"
|
||||
case "$hwmode_11n" in
|
||||
a|g) ;;
|
||||
default) hwmode_11n="$default"
|
||||
esac
|
||||
config_set "$device" hwmode_11n "$hwmode_11n"
|
||||
;;
|
||||
*)
|
||||
hwmode=
|
||||
if [ "${channel:-0}" -gt 0 ]; then
|
||||
if [ "${channel:-0}" -gt 14 ]; then
|
||||
hwmode=a
|
||||
else
|
||||
hwmode=g
|
||||
fi
|
||||
else
|
||||
hwmode="$default"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
config_set "$device" hwmode "$hwmode"
|
||||
}
|
||||
|
||||
_wifi_updown() {
|
||||
for device in ${2:-$DEVICES}; do (
|
||||
config_get disabled "$device" disabled
|
||||
[ 1 == "$disabled" ] && {
|
||||
echo "'$device' is disabled"
|
||||
set disable
|
||||
}
|
||||
config_get iftype "$device" type
|
||||
if eval "type ${1}_$iftype" 2>/dev/null >/dev/null; then
|
||||
eval "scan_$iftype '$device'"
|
||||
eval "${1}_$iftype '$device'" || echo "$device($iftype): ${1} failed"
|
||||
elif [ ! -f /lib/netifd/wireless/$iftype.sh ]; then
|
||||
echo "$device($iftype): Interface type not supported"
|
||||
fi
|
||||
); done
|
||||
}
|
||||
|
||||
wifi_updown() {
|
||||
cmd=down
|
||||
[ enable = "$1" ] && {
|
||||
_wifi_updown disable "$2"
|
||||
ubus_wifi_cmd "$cmd" "$2"
|
||||
scan_wifi
|
||||
cmd=up
|
||||
}
|
||||
ubus_wifi_cmd "$cmd" "$2"
|
||||
_wifi_updown "$@"
|
||||
}
|
||||
|
||||
wifi_reload_legacy() {
|
||||
_wifi_updown "disable" "$1"
|
||||
scan_wifi
|
||||
_wifi_updown "enable" "$1"
|
||||
}
|
||||
|
||||
wifi_reload() {
|
||||
ubus call network reload
|
||||
wifi_reload_legacy
|
||||
}
|
||||
|
||||
wifi_detect() {
|
||||
for driver in ${2:-$DRIVERS}; do (
|
||||
if eval "type detect_$driver" 2>/dev/null >/dev/null; then
|
||||
eval "detect_$driver" || echo "$driver: Detect failed" >&2
|
||||
else
|
||||
echo "$driver: Hardware detection not supported" >&2
|
||||
fi
|
||||
); done
|
||||
}
|
||||
|
||||
start_net() {(
|
||||
local iface="$1"
|
||||
local config="$2"
|
||||
local vifmac="$3"
|
||||
|
||||
[ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
|
||||
[ -z "$config" ] || {
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
for config in $config; do
|
||||
setup_interface "$iface" "$config" "" "$vifmac"
|
||||
done
|
||||
}
|
||||
)}
|
||||
|
||||
set_wifi_up() {
|
||||
local cfg="$1"
|
||||
local ifname="$2"
|
||||
uci_set_state wireless "$cfg" up 1
|
||||
uci_set_state wireless "$cfg" ifname "$ifname"
|
||||
}
|
||||
|
||||
set_wifi_down() {
|
||||
local cfg="$1"
|
||||
local vifs vif vifstr
|
||||
|
||||
[ -f "/var/run/wifi-${cfg}.pid" ] &&
|
||||
kill "$(cat "/var/run/wifi-${cfg}.pid")" 2>/dev/null
|
||||
uci_revert_state wireless "$cfg"
|
||||
config_get vifs "$cfg" vifs
|
||||
for vif in $vifs; do
|
||||
uci_revert_state wireless "$vif"
|
||||
done
|
||||
}
|
||||
|
||||
scan_wifi() {
|
||||
local cfgfile="$1"
|
||||
DEVICES=
|
||||
config_cb() {
|
||||
local type="$1"
|
||||
local section="$2"
|
||||
|
||||
# section start
|
||||
case "$type" in
|
||||
wifi-device)
|
||||
append DEVICES "$section"
|
||||
config_set "$section" vifs ""
|
||||
config_set "$section" ht_capab ""
|
||||
;;
|
||||
esac
|
||||
|
||||
# section end
|
||||
config_get TYPE "$CONFIG_SECTION" TYPE
|
||||
case "$TYPE" in
|
||||
wifi-iface)
|
||||
config_get device "$CONFIG_SECTION" device
|
||||
config_get vifs "$device" vifs
|
||||
append vifs "$CONFIG_SECTION"
|
||||
config_set "$device" vifs "$vifs"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
config_load "${cfgfile:-wireless}"
|
||||
}
|
||||
|
||||
DEVICES=
|
||||
DRIVERS=
|
||||
include /lib/wifi
|
||||
scan_wifi
|
||||
|
||||
case "$1" in
|
||||
down) wifi_updown "disable" "$2";;
|
||||
detect) wifi_detect "$2";;
|
||||
status) ubus_wifi_cmd "status" "$2";;
|
||||
reload) wifi_reload "$2";;
|
||||
reload_legacy) wifi_reload_legacy "$2";;
|
||||
--help|help) usage;;
|
||||
*) ubus call network reload; wifi_updown "enable" "$2";;
|
||||
esac
|
389166
1_9.r18_plugin/ad_plug/ab2p.action
Normal file
389166
1_9.r18_plugin/ad_plug/ab2p.action
Normal file
File diff suppressed because it is too large
Load Diff
18387
1_9.r18_plugin/ad_plug/ab2p.filter
Normal file
18387
1_9.r18_plugin/ad_plug/ab2p.filter
Normal file
File diff suppressed because it is too large
Load Diff
32
1_9.r18_plugin/ad_plug/ab2p.system.action
Normal file
32
1_9.r18_plugin/ad_plug/ab2p.system.action
Normal file
@ -0,0 +1,32 @@
|
||||
#AbBlock system actions -- don't edit --
|
||||
|
||||
{+set-image-blocker{blank} \
|
||||
+filter{ab2p-elemhide-filter} \
|
||||
+client-header-tagger{ab2p-elemhide-check-debug} \
|
||||
+client-header-tagger{ab2p-handle-as-image-c} \
|
||||
+server-header-tagger{ab2p-handle-as-image-s}}
|
||||
/
|
||||
|
||||
{-filter{ab2p-elemhide-filter} \
|
||||
+filter{ab2p-elemhide-filter-debug}}
|
||||
TAG:^ab2p-elemhide-filter-debug$
|
||||
|
||||
{+handle-as-image}
|
||||
TAG:^ab2p-handle-as-image$
|
||||
|
||||
{+block{ adblock rules }}
|
||||
TAG:^ab2p-block-s$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-u$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-d$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-s$
|
||||
|
||||
#workaround for gzip handling privoxy bugs
|
||||
{ +prevent-compression }
|
||||
*.yahoo.com
|
||||
*.amazon.com
|
39
1_9.r18_plugin/ad_plug/ab2p.system.filter
Normal file
39
1_9.r18_plugin/ad_plug/ab2p.system.filter
Normal file
@ -0,0 +1,39 @@
|
||||
#AbBlock system filters -- don't edit --
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-block-s
|
||||
s@.*@ab2p-block-s@Ti
|
||||
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2b-unblock-u
|
||||
s@user-agent.*@ab2p-unblock-u@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-d
|
||||
s@date.*@ab2p-unblock-d@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-s
|
||||
s@server.*@ab2p-unblock-s@Ti
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-handle-as-image-s
|
||||
s@^content-type(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-handle-as-image-c
|
||||
s@^accept(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
SERVER-HEADER-FILTER: ab2p-xframe-filter
|
||||
s@.*\sHTTP\/1.*@$&\r\nX-Frame-Options: DENY@i
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-elemhide-check-debug
|
||||
s@^cookie:.*ab2p-elemhide-filter-debug=true(?:;|$).*@ab2p-elemhide-filter-debug@Ti
|
||||
|
||||
FILTER: ab2p-elemhide-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-elemhide-filter-debug
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/debug/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host.debug/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-popup-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<script type="text/javascript">parent==window&&opener&&close()</script>@iUD
|
||||
|
||||
|
204509
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.action
Normal file
204509
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.action
Normal file
File diff suppressed because it is too large
Load Diff
14818
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.filter
Normal file
14818
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.filter
Normal file
File diff suppressed because it is too large
Load Diff
32
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.system.action
Normal file
32
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.system.action
Normal file
@ -0,0 +1,32 @@
|
||||
#AbBlock system actions -- don't edit --
|
||||
|
||||
{+set-image-blocker{blank} \
|
||||
+filter{ab2p-elemhide-filter} \
|
||||
+client-header-tagger{ab2p-elemhide-check-debug} \
|
||||
+client-header-tagger{ab2p-handle-as-image-c} \
|
||||
+server-header-tagger{ab2p-handle-as-image-s}}
|
||||
/
|
||||
|
||||
{-filter{ab2p-elemhide-filter} \
|
||||
+filter{ab2p-elemhide-filter-debug}}
|
||||
TAG:^ab2p-elemhide-filter-debug$
|
||||
|
||||
{+handle-as-image}
|
||||
TAG:^ab2p-handle-as-image$
|
||||
|
||||
{+block{ adblock rules }}
|
||||
TAG:^ab2p-block-s$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-u$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-d$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-s$
|
||||
|
||||
#workaround for gzip handling privoxy bugs
|
||||
{ +prevent-compression }
|
||||
*.yahoo.com
|
||||
*.amazon.com
|
39
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.system.filter
Normal file
39
1_9.r18_plugin/ad_plug/ab2p_china/ab2p.system.filter
Normal file
@ -0,0 +1,39 @@
|
||||
#AbBlock system filters -- don't edit --
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-block-s
|
||||
s@.*@ab2p-block-s@Ti
|
||||
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2b-unblock-u
|
||||
s@user-agent.*@ab2p-unblock-u@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-d
|
||||
s@date.*@ab2p-unblock-d@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-s
|
||||
s@server.*@ab2p-unblock-s@Ti
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-handle-as-image-s
|
||||
s@^content-type(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-handle-as-image-c
|
||||
s@^accept(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
SERVER-HEADER-FILTER: ab2p-xframe-filter
|
||||
s@.*\sHTTP\/1.*@$&\r\nX-Frame-Options: DENY@i
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-elemhide-check-debug
|
||||
s@^cookie:.*ab2p-elemhide-filter-debug=true(?:;|$).*@ab2p-elemhide-filter-debug@Ti
|
||||
|
||||
FILTER: ab2p-elemhide-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-elemhide-filter-debug
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/debug/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host.debug/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-popup-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<script type="text/javascript">parent==window&&opener&&close()</script>@iUD
|
||||
|
||||
|
45
1_9.r18_plugin/ad_plug/ab2p_china/my_ab2b.task
Normal file
45
1_9.r18_plugin/ad_plug/ab2p_china/my_ab2b.task
Normal file
@ -0,0 +1,45 @@
|
||||
----- source -----
|
||||
Title: EasyList China+EasyList
|
||||
Url: https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt
|
||||
Last modified: 08 Jan 2016 16:40 UTC
|
||||
Expires: 96 hours
|
||||
Version: 201601081640
|
||||
License: https://easylist-downloads.adblockplus.org/COPYING
|
||||
Homepage: http://abpchina.org/forum/
|
||||
------- end ------
|
||||
|
||||
----- options -----
|
||||
Privoxy path: /etc/privoxy
|
||||
Web path: /var/www/privoxy
|
||||
CSS web server domain: www.example.com
|
||||
------- end ------
|
||||
|
||||
Comments: 162
|
||||
Elements hiding rules: 32780
|
||||
Errors: 21
|
||||
Request block rules for exception: 4333
|
||||
Request block rules total: 28843
|
||||
Request block rules with domain option: 2198
|
||||
Request block rules with request type options: 2198
|
||||
Rules with third party option: 6749
|
||||
ERROR: ||cnzol.com/userfiles/image/*# (easylistchina+easylist.txt: 2532) - Record type detection failed
|
||||
ERROR: ||uuu9.com/html/show.html#id=2| (easylistchina+easylist.txt: 4944) - Record type detection failed
|
||||
ERROR: @@.gif#$domain=sex169.info|sex169.org (easylistchina+easylist.txt: 9989) - Record type detection failed
|
||||
ERROR: /http://[a-zA-Z0-9]+\.[a-z]+\/.*(?:[!"#$%&'()*+,:;<=>?@/\^_`{|}~-]).*[a-zA-Z0-9]+/$script,third-party,domain=keezmovies.com|redtube.com|tube8.com|tube8.es|tube8.fr|www.pornhub.com|youporn.com (easylistchina+easylist.txt: 46223) - Record type detection failed
|
||||
ERROR: @@.gif#$domain=9tutorials.com|aseanlegacy.net|budget101.com|cbox.ws|corepacks.com|danydanielrt.com|dx-tv.com|eventosppv.me|funniermoments.com|ibmmainframeforum.com|loadlum.com|onlinemoviesfreee.com|premiumleecher.com|remo-xp.com|showsport-tv.com|superplatyna.com|turktorrent.cc|tv-porinternet.com.mx|tvrex.altervista.org|ver-flv.com|verdirectotv.com|wallpapersimages.co.uk|wowebook.org|wrestlingtalk.org|wwe2day.tv|xup.in (easylistchina+easylist.txt: 59888) - Record type detection failed
|
||||
ERROR: @@.gif#$image,domain=360haven.com (easylistchina+easylist.txt: 59889) - Record type detection failed
|
||||
ERROR: @@.ico#$domain=xup.in|xup.to (easylistchina+easylist.txt: 59893) - Record type detection failed
|
||||
ERROR: @@.jpg#$domain=apkone.net|bicimotosargentina.com|calcularindemnizacion.es|cinema2satu.net|desionlinetheater.com|dragoart.com|dvdfullfree.com|filmovizija.in|firsttube.co|haxlog.com|idevnote.com|kshowes.net|lag10.net|legionpeliculas.org|livrosdoexilado.org|lomeutec.com|mac2sell.net|masfuertequeelhierro.com|max-deportv.info|max-deportv.net|megacineonline.biz|mimaletamusical.blogspot.com.ar|movie1k.net|mugiwaranofansub.blogspot.com.ar|musicacelestial.net|mypapercraft.net|pcgames-download.net|play-old-pc-games.com|premiumgeneratorlink.com|rtube.de|software4all-now.blogspot.co.uk|tv-msn.com|uploadlw.com|wallpapersimages.co.uk|wrestlingtalk.org (easylistchina+easylist.txt: 59898) - Record type detection failed
|
||||
ERROR: @@.png#$domain=300mblink.com|amigosdelamili.com|android-zone.org|anime2enjoy.com|animesubita.info|anizm.com|anonytext.tk|backin.net|best-bitcoin-faucet.eu|best-free-faucet.eu|better-explorer.com|bitcofree.com|bitcoin-best-faucet.eu|bitcoin-cloud.eu|bitcoin-faucet.eu|bitcoin-free-faucet.eu|calcularindemnizacion.es|chrissmoove.com|cleodesktop.com|compartiendofull.org|corepacks.com|debrastagi.com|debridit.com|debridx.com|dksoftwares4u.blogspot.co.uk|docpaste.com|dragoart.com|fcportables.com|free-bitcoin-faucet.eu|gameopc.blogspot.com.ar|get-bitcoins-free.eu|get-free-bitcoin.eu|go4up.com|hackintosh.zone|hogarutil.com|hostyd.com|hubturkey.net|idevnote.com|ilive.to|iptvlinks.com|kshowes.net|kwikupload.com|legionprogramas.org|lordpyrak.net|maamp3.com|magesy.be|mamahd.com|marketmilitia.org|mastertoons.com|mediaplaybox.com|megacineonline.net|minecraft-forum.net|mintmovies.net|mpc-g.com|mrjuegosdroid.co.vu|mundoprogramas.net|myksn.net|nbahd.com|newxxxvideosupdate.blogspot.com.ar|nornar.com|noticiasautomotivas.com.br|omaredomex.org|oploverz.net|osdarlings.com|peliculas.online-latino.com|pes-patch.com|pocosmegashdd.com|portalzuca.com|portalzuca.net|premium4.us|puromarketing.com|realidadscans.org|scriptnulled.eu|secureupload.eu|seriesbang.net|skidrowcrack.com|stream2watch.me|stream4free.eu|streamlive.to|superanimes.com|superplatyna.com|tamercome.blogspot.co.uk|techingspot.blogspot.in|trackitonline.ru|trizone91.com|turkdown.com|tv-msn.com|tvenvivocrackmastersamm.blogspot.com.ar|ulto.ga|unlockpwd.com|uploadex.com|url4u.org|vencko.net|whatsapprb.blogspot.com|win-free-bitcoins.eu|wowhq.eu|wrestlingtalk.org (easylistchina+easylist.txt: 59905) - Record type detection failed
|
||||
ERROR: @@.png?*#$domain=mypapercraft.net|xlocker.net (easylistchina+easylist.txt: 59906) - Record type detection failed
|
||||
ERROR: @@||blogspot.com^*#-$image,domain=cricket-365.pw|cricpower.com|pirlotv.tv (easylistchina+easylist.txt: 60122) - Record type detection failed
|
||||
ERROR: @@||free.smsmarkaz.urdupoint.com^*#-$image (easylistchina+easylist.txt: 60305) - Record type detection failed
|
||||
ERROR: @@||i.imgur.com^*#.$image,domain=newmusicforpeople.org (easylistchina+easylist.txt: 60393) - Record type detection failed
|
||||
ERROR: @@||linkcrypt.ws/image/*#$image (easylistchina+easylist.txt: 60468) - Record type detection failed
|
||||
ERROR: @@||media.eventhubs.com/images/*#$image (easylistchina+easylist.txt: 60510) - Record type detection failed
|
||||
ERROR: @@||mzstatic.com^*.jpg#$image,domain=newmusicforpeople.org (easylistchina+easylist.txt: 60569) - Record type detection failed
|
||||
ERROR: @@||seekingalpha.com/adsframe.html#que=$subdocument (easylistchina+easylist.txt: 60730) - Record type detection failed
|
||||
ERROR: @@||teenidols4you.com^*#-$image (easylistchina+easylist.txt: 60788) - Record type detection failed
|
||||
ERROR: @@||youwatch.org^*#$image (easylistchina+easylist.txt: 60918) - Record type detection failed
|
||||
ERROR: @@.jpg#$domain=hellojav.com|hentaienespañol.net|palaotog.net (easylistchina+easylist.txt: 61727) - Record type detection failed
|
||||
ERROR: @@.png#$domain=indiangilma.com|lfporn.com|thisav.com|you-fap.com|youfreeporntube.com|youngmodelsclub.net (easylistchina+easylist.txt: 61728) - Record type detection failed
|
13410
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.action
Normal file
13410
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.action
Normal file
File diff suppressed because it is too large
Load Diff
1134
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.filter
Normal file
1134
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.filter
Normal file
File diff suppressed because it is too large
Load Diff
32
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.system.action
Normal file
32
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.system.action
Normal file
@ -0,0 +1,32 @@
|
||||
#AbBlock system actions -- don't edit --
|
||||
|
||||
{+set-image-blocker{blank} \
|
||||
+filter{ab2p-elemhide-filter} \
|
||||
+client-header-tagger{ab2p-elemhide-check-debug} \
|
||||
+client-header-tagger{ab2p-handle-as-image-c} \
|
||||
+server-header-tagger{ab2p-handle-as-image-s}}
|
||||
/
|
||||
|
||||
{-filter{ab2p-elemhide-filter} \
|
||||
+filter{ab2p-elemhide-filter-debug}}
|
||||
TAG:^ab2p-elemhide-filter-debug$
|
||||
|
||||
{+handle-as-image}
|
||||
TAG:^ab2p-handle-as-image$
|
||||
|
||||
{+block{ adblock rules }}
|
||||
TAG:^ab2p-block-s$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-u$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-d$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-s$
|
||||
|
||||
#workaround for gzip handling privoxy bugs
|
||||
{ +prevent-compression }
|
||||
*.yahoo.com
|
||||
*.amazon.com
|
39
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.system.filter
Normal file
39
1_9.r18_plugin/ad_plug/ab2p_china_simple/ab2p.system.filter
Normal file
@ -0,0 +1,39 @@
|
||||
#AbBlock system filters -- don't edit --
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-block-s
|
||||
s@.*@ab2p-block-s@Ti
|
||||
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2b-unblock-u
|
||||
s@user-agent.*@ab2p-unblock-u@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-d
|
||||
s@date.*@ab2p-unblock-d@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-s
|
||||
s@server.*@ab2p-unblock-s@Ti
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-handle-as-image-s
|
||||
s@^content-type(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-handle-as-image-c
|
||||
s@^accept(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
SERVER-HEADER-FILTER: ab2p-xframe-filter
|
||||
s@.*\sHTTP\/1.*@$&\r\nX-Frame-Options: DENY@i
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-elemhide-check-debug
|
||||
s@^cookie:.*ab2p-elemhide-filter-debug=true(?:;|$).*@ab2p-elemhide-filter-debug@Ti
|
||||
|
||||
FILTER: ab2p-elemhide-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-elemhide-filter-debug
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/debug/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host.debug/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-popup-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<script type="text/javascript">parent==window&&opener&&close()</script>@iUD
|
||||
|
||||
|
21
1_9.r18_plugin/ad_plug/ab2p_china_simple/my_ab2b.task
Normal file
21
1_9.r18_plugin/ad_plug/ab2p_china_simple/my_ab2b.task
Normal file
@ -0,0 +1,21 @@
|
||||
----- source -----
|
||||
Title: ChinaList
|
||||
Url: https://raw.githubusercontent.com/wenketel/chinalist/master/adblock.txt
|
||||
Last modified: 14 Jan 2016 10:08 UTC
|
||||
Expires: 72 hours
|
||||
Homepage: http://chinalist.github.io/
|
||||
------- end ------
|
||||
|
||||
----- options -----
|
||||
Privoxy path: /etc/privoxy
|
||||
Web path: /var/www/privoxy
|
||||
CSS web server domain: www.example.com
|
||||
------- end ------
|
||||
|
||||
Comments: 433
|
||||
Elements hiding rules: 750
|
||||
Request block rules for exception: 151
|
||||
Request block rules total: 1944
|
||||
Request block rules with domain option: 131
|
||||
Request block rules with request type options: 131
|
||||
Rules with third party option: 511
|
84
1_9.r18_plugin/ad_plug/adblock_config/my_ab2b.task
Normal file
84
1_9.r18_plugin/ad_plug/adblock_config/my_ab2b.task
Normal file
@ -0,0 +1,84 @@
|
||||
----- source -----
|
||||
Title: EasyList
|
||||
Url: https://easylist-downloads.adblockplus.org/easylist.txt
|
||||
Last modified: 08 Jan 2016 15:30 UTC
|
||||
Expires: 96 hours
|
||||
Version: 201601081530
|
||||
License: https://easylist-downloads.adblockplus.org/COPYING
|
||||
Homepage: https://easylist.adblockplus.org/
|
||||
----- source -----
|
||||
Title: RU AdList
|
||||
Url: https://easylist-downloads.adblockplus.org/advblock.txt
|
||||
Last modified: 08 Jan 2016 15:30 UTC
|
||||
Expires: 72 hours
|
||||
Version: 201601081530
|
||||
License: http://creativecommons.org/licenses/by/3.0/
|
||||
Homepage: https://forums.lanik.us/viewforum.php?f=102
|
||||
----- source -----
|
||||
Title: EasyList China+EasyList
|
||||
Url: https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt
|
||||
Last modified: 08 Jan 2016 15:30 UTC
|
||||
Expires: 96 hours
|
||||
Version: 201601081530
|
||||
License: https://easylist-downloads.adblockplus.org/COPYING
|
||||
Homepage: http://abpchina.org/forum/
|
||||
----- source -----
|
||||
Url: my_custom.txt
|
||||
Last modified: 17 Nov 1858 00:00 UTC
|
||||
Expires: 72 hours (expired)
|
||||
------- end ------
|
||||
|
||||
----- options -----
|
||||
Privoxy path: /etc/privoxy
|
||||
Web path: /var/www/privoxy
|
||||
CSS web server domain: www.example.com
|
||||
------- end ------
|
||||
|
||||
Comments: 452
|
||||
Elements hiding rules: 63304
|
||||
Errors: 40
|
||||
Request block rules for exception: 8561
|
||||
Request block rules total: 56965
|
||||
Request block rules with domain option: 4473
|
||||
Request block rules with request type options: 4473
|
||||
Rules with third party option: 13930
|
||||
ERROR: /http://[a-zA-Z0-9]+\.[a-z]+\/.*(?:[!"#$%&'()*+,:;<=>?@/\^_`{|}~-]).*[a-zA-Z0-9]+/$script,third-party,domain=keezmovies.com|redtube.com|tube8.com|tube8.es|tube8.fr|www.pornhub.com|youporn.com (easylist.txt: 35738) - Record type detection failed
|
||||
ERROR: @@.gif#$domain=9tutorials.com|aseanlegacy.net|budget101.com|cbox.ws|corepacks.com|danydanielrt.com|dx-tv.com|eventosppv.me|funniermoments.com|ibmmainframeforum.com|loadlum.com|onlinemoviesfreee.com|premiumleecher.com|remo-xp.com|showsport-tv.com|superplatyna.com|turktorrent.cc|tv-porinternet.com.mx|tvrex.altervista.org|ver-flv.com|verdirectotv.com|wallpapersimages.co.uk|wowebook.org|wrestlingtalk.org|wwe2day.tv|xup.in (easylist.txt: 49402) - Record type detection failed
|
||||
ERROR: @@.gif#$image,domain=360haven.com (easylist.txt: 49403) - Record type detection failed
|
||||
ERROR: @@.ico#$domain=xup.in|xup.to (easylist.txt: 49407) - Record type detection failed
|
||||
ERROR: @@.jpg#$domain=apkone.net|bicimotosargentina.com|calcularindemnizacion.es|cinema2satu.net|desionlinetheater.com|dragoart.com|dvdfullfree.com|filmovizija.in|firsttube.co|haxlog.com|idevnote.com|kshowes.net|lag10.net|legionpeliculas.org|livrosdoexilado.org|lomeutec.com|mac2sell.net|masfuertequeelhierro.com|max-deportv.info|max-deportv.net|megacineonline.biz|mimaletamusical.blogspot.com.ar|movie1k.net|mugiwaranofansub.blogspot.com.ar|musicacelestial.net|mypapercraft.net|pcgames-download.net|play-old-pc-games.com|premiumgeneratorlink.com|rtube.de|software4all-now.blogspot.co.uk|tv-msn.com|uploadlw.com|wallpapersimages.co.uk|wrestlingtalk.org (easylist.txt: 49412) - Record type detection failed
|
||||
ERROR: @@.png#$domain=300mblink.com|amigosdelamili.com|android-zone.org|anime2enjoy.com|animesubita.info|anizm.com|anonytext.tk|backin.net|best-bitcoin-faucet.eu|best-free-faucet.eu|better-explorer.com|bitcofree.com|bitcoin-best-faucet.eu|bitcoin-cloud.eu|bitcoin-faucet.eu|bitcoin-free-faucet.eu|calcularindemnizacion.es|chrissmoove.com|cleodesktop.com|compartiendofull.org|corepacks.com|debrastagi.com|debridit.com|debridx.com|dksoftwares4u.blogspot.co.uk|docpaste.com|dragoart.com|fcportables.com|free-bitcoin-faucet.eu|gameopc.blogspot.com.ar|get-bitcoins-free.eu|get-free-bitcoin.eu|go4up.com|hackintosh.zone|hogarutil.com|hostyd.com|hubturkey.net|idevnote.com|ilive.to|iptvlinks.com|kshowes.net|kwikupload.com|legionprogramas.org|lordpyrak.net|maamp3.com|magesy.be|mamahd.com|marketmilitia.org|mastertoons.com|mediaplaybox.com|megacineonline.net|minecraft-forum.net|mintmovies.net|mpc-g.com|mrjuegosdroid.co.vu|mundoprogramas.net|myksn.net|nbahd.com|newxxxvideosupdate.blogspot.com.ar|nornar.com|noticiasautomotivas.com.br|omaredomex.org|oploverz.net|osdarlings.com|peliculas.online-latino.com|pes-patch.com|pocosmegashdd.com|portalzuca.com|portalzuca.net|premium4.us|puromarketing.com|realidadscans.org|scriptnulled.eu|secureupload.eu|seriesbang.net|skidrowcrack.com|stream2watch.me|stream4free.eu|streamlive.to|superanimes.com|superplatyna.com|tamercome.blogspot.co.uk|techingspot.blogspot.in|trackitonline.ru|trizone91.com|turkdown.com|tv-msn.com|tvenvivocrackmastersamm.blogspot.com.ar|ulto.ga|unlockpwd.com|uploadex.com|url4u.org|vencko.net|whatsapprb.blogspot.com|win-free-bitcoins.eu|wowhq.eu|wrestlingtalk.org (easylist.txt: 49419) - Record type detection failed
|
||||
ERROR: @@.png?*#$domain=mypapercraft.net|xlocker.net (easylist.txt: 49420) - Record type detection failed
|
||||
ERROR: @@||blogspot.com^*#-$image,domain=cricket-365.pw|cricpower.com|pirlotv.tv (easylist.txt: 49636) - Record type detection failed
|
||||
ERROR: @@||free.smsmarkaz.urdupoint.com^*#-$image (easylist.txt: 49819) - Record type detection failed
|
||||
ERROR: @@||i.imgur.com^*#.$image,domain=newmusicforpeople.org (easylist.txt: 49907) - Record type detection failed
|
||||
ERROR: @@||linkcrypt.ws/image/*#$image (easylist.txt: 49982) - Record type detection failed
|
||||
ERROR: @@||media.eventhubs.com/images/*#$image (easylist.txt: 50024) - Record type detection failed
|
||||
ERROR: @@||mzstatic.com^*.jpg#$image,domain=newmusicforpeople.org (easylist.txt: 50083) - Record type detection failed
|
||||
ERROR: @@||seekingalpha.com/adsframe.html#que=$subdocument (easylist.txt: 50244) - Record type detection failed
|
||||
ERROR: @@||teenidols4you.com^*#-$image (easylist.txt: 50302) - Record type detection failed
|
||||
ERROR: @@||youwatch.org^*#$image (easylist.txt: 50432) - Record type detection failed
|
||||
ERROR: @@.jpg#$domain=hellojav.com|hentaienespañol.net|palaotog.net (easylist.txt: 51241) - Record type detection failed
|
||||
ERROR: @@.png#$domain=indiangilma.com|lfporn.com|thisav.com|you-fap.com|youfreeporntube.com|youngmodelsclub.net (easylist.txt: 51242) - Record type detection failed
|
||||
ERROR: @@#$image,domain=cnews.ru|free-send.ru|ivbt.ru|lostfilmonline.tv (advblock.txt: 7519) - Record type detection failed
|
||||
ERROR: ||cnzol.com/userfiles/image/*# (easylistchina+easylist.txt: 2532) - Record type detection failed
|
||||
ERROR: ||uuu9.com/html/show.html#id=2| (easylistchina+easylist.txt: 4944) - Record type detection failed
|
||||
ERROR: @@.gif#$domain=sex169.info|sex169.org (easylistchina+easylist.txt: 9989) - Record type detection failed
|
||||
ERROR: /http://[a-zA-Z0-9]+\.[a-z]+\/.*(?:[!"#$%&'()*+,:;<=>?@/\^_`{|}~-]).*[a-zA-Z0-9]+/$script,third-party,domain=keezmovies.com|redtube.com|tube8.com|tube8.es|tube8.fr|www.pornhub.com|youporn.com (easylistchina+easylist.txt: 46223) - Record type detection failed
|
||||
ERROR: @@.gif#$domain=9tutorials.com|aseanlegacy.net|budget101.com|cbox.ws|corepacks.com|danydanielrt.com|dx-tv.com|eventosppv.me|funniermoments.com|ibmmainframeforum.com|loadlum.com|onlinemoviesfreee.com|premiumleecher.com|remo-xp.com|showsport-tv.com|superplatyna.com|turktorrent.cc|tv-porinternet.com.mx|tvrex.altervista.org|ver-flv.com|verdirectotv.com|wallpapersimages.co.uk|wowebook.org|wrestlingtalk.org|wwe2day.tv|xup.in (easylistchina+easylist.txt: 59887) - Record type detection failed
|
||||
ERROR: @@.gif#$image,domain=360haven.com (easylistchina+easylist.txt: 59888) - Record type detection failed
|
||||
ERROR: @@.ico#$domain=xup.in|xup.to (easylistchina+easylist.txt: 59892) - Record type detection failed
|
||||
ERROR: @@.jpg#$domain=apkone.net|bicimotosargentina.com|calcularindemnizacion.es|cinema2satu.net|desionlinetheater.com|dragoart.com|dvdfullfree.com|filmovizija.in|firsttube.co|haxlog.com|idevnote.com|kshowes.net|lag10.net|legionpeliculas.org|livrosdoexilado.org|lomeutec.com|mac2sell.net|masfuertequeelhierro.com|max-deportv.info|max-deportv.net|megacineonline.biz|mimaletamusical.blogspot.com.ar|movie1k.net|mugiwaranofansub.blogspot.com.ar|musicacelestial.net|mypapercraft.net|pcgames-download.net|play-old-pc-games.com|premiumgeneratorlink.com|rtube.de|software4all-now.blogspot.co.uk|tv-msn.com|uploadlw.com|wallpapersimages.co.uk|wrestlingtalk.org (easylistchina+easylist.txt: 59897) - Record type detection failed
|
||||
ERROR: @@.png#$domain=300mblink.com|amigosdelamili.com|android-zone.org|anime2enjoy.com|animesubita.info|anizm.com|anonytext.tk|backin.net|best-bitcoin-faucet.eu|best-free-faucet.eu|better-explorer.com|bitcofree.com|bitcoin-best-faucet.eu|bitcoin-cloud.eu|bitcoin-faucet.eu|bitcoin-free-faucet.eu|calcularindemnizacion.es|chrissmoove.com|cleodesktop.com|compartiendofull.org|corepacks.com|debrastagi.com|debridit.com|debridx.com|dksoftwares4u.blogspot.co.uk|docpaste.com|dragoart.com|fcportables.com|free-bitcoin-faucet.eu|gameopc.blogspot.com.ar|get-bitcoins-free.eu|get-free-bitcoin.eu|go4up.com|hackintosh.zone|hogarutil.com|hostyd.com|hubturkey.net|idevnote.com|ilive.to|iptvlinks.com|kshowes.net|kwikupload.com|legionprogramas.org|lordpyrak.net|maamp3.com|magesy.be|mamahd.com|marketmilitia.org|mastertoons.com|mediaplaybox.com|megacineonline.net|minecraft-forum.net|mintmovies.net|mpc-g.com|mrjuegosdroid.co.vu|mundoprogramas.net|myksn.net|nbahd.com|newxxxvideosupdate.blogspot.com.ar|nornar.com|noticiasautomotivas.com.br|omaredomex.org|oploverz.net|osdarlings.com|peliculas.online-latino.com|pes-patch.com|pocosmegashdd.com|portalzuca.com|portalzuca.net|premium4.us|puromarketing.com|realidadscans.org|scriptnulled.eu|secureupload.eu|seriesbang.net|skidrowcrack.com|stream2watch.me|stream4free.eu|streamlive.to|superanimes.com|superplatyna.com|tamercome.blogspot.co.uk|techingspot.blogspot.in|trackitonline.ru|trizone91.com|turkdown.com|tv-msn.com|tvenvivocrackmastersamm.blogspot.com.ar|ulto.ga|unlockpwd.com|uploadex.com|url4u.org|vencko.net|whatsapprb.blogspot.com|win-free-bitcoins.eu|wowhq.eu|wrestlingtalk.org (easylistchina+easylist.txt: 59904) - Record type detection failed
|
||||
ERROR: @@.png?*#$domain=mypapercraft.net|xlocker.net (easylistchina+easylist.txt: 59905) - Record type detection failed
|
||||
ERROR: @@||blogspot.com^*#-$image,domain=cricket-365.pw|cricpower.com|pirlotv.tv (easylistchina+easylist.txt: 60121) - Record type detection failed
|
||||
ERROR: @@||free.smsmarkaz.urdupoint.com^*#-$image (easylistchina+easylist.txt: 60304) - Record type detection failed
|
||||
ERROR: @@||i.imgur.com^*#.$image,domain=newmusicforpeople.org (easylistchina+easylist.txt: 60392) - Record type detection failed
|
||||
ERROR: @@||linkcrypt.ws/image/*#$image (easylistchina+easylist.txt: 60467) - Record type detection failed
|
||||
ERROR: @@||media.eventhubs.com/images/*#$image (easylistchina+easylist.txt: 60509) - Record type detection failed
|
||||
ERROR: @@||mzstatic.com^*.jpg#$image,domain=newmusicforpeople.org (easylistchina+easylist.txt: 60568) - Record type detection failed
|
||||
ERROR: @@||seekingalpha.com/adsframe.html#que=$subdocument (easylistchina+easylist.txt: 60729) - Record type detection failed
|
||||
ERROR: @@||teenidols4you.com^*#-$image (easylistchina+easylist.txt: 60787) - Record type detection failed
|
||||
ERROR: @@||youwatch.org^*#$image (easylistchina+easylist.txt: 60917) - Record type detection failed
|
||||
ERROR: @@.jpg#$domain=hellojav.com|hentaienespañol.net|palaotog.net (easylistchina+easylist.txt: 61726) - Record type detection failed
|
||||
ERROR: @@.png#$domain=indiangilma.com|lfporn.com|thisav.com|you-fap.com|youfreeporntube.com|youngmodelsclub.net (easylistchina+easylist.txt: 61727) - Record type detection failed
|
0
1_9.r18_plugin/ad_plug/adblock_config/my_custom.txt
Normal file
0
1_9.r18_plugin/ad_plug/adblock_config/my_custom.txt
Normal file
53740
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/ab2p.action
Normal file
53740
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/ab2p.action
Normal file
File diff suppressed because it is too large
Load Diff
3686
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/ab2p.filter
Normal file
3686
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/ab2p.filter
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@
|
||||
#AbBlock system actions -- don't edit --
|
||||
|
||||
{+set-image-blocker{blank} \
|
||||
+filter{ab2p-elemhide-filter} \
|
||||
+client-header-tagger{ab2p-elemhide-check-debug} \
|
||||
+client-header-tagger{ab2p-handle-as-image-c} \
|
||||
+server-header-tagger{ab2p-handle-as-image-s}}
|
||||
/
|
||||
|
||||
{-filter{ab2p-elemhide-filter} \
|
||||
+filter{ab2p-elemhide-filter-debug}}
|
||||
TAG:^ab2p-elemhide-filter-debug$
|
||||
|
||||
{+handle-as-image}
|
||||
TAG:^ab2p-handle-as-image$
|
||||
|
||||
{+block{ adblock rules }}
|
||||
TAG:^ab2p-block-s$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-u$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-d$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-s$
|
||||
|
||||
#workaround for gzip handling privoxy bugs
|
||||
{ +prevent-compression }
|
||||
*.yahoo.com
|
||||
*.amazon.com
|
@ -0,0 +1,39 @@
|
||||
#AbBlock system filters -- don't edit --
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-block-s
|
||||
s@.*@ab2p-block-s@Ti
|
||||
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2b-unblock-u
|
||||
s@user-agent.*@ab2p-unblock-u@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-d
|
||||
s@date.*@ab2p-unblock-d@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-s
|
||||
s@server.*@ab2p-unblock-s@Ti
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-handle-as-image-s
|
||||
s@^content-type(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-handle-as-image-c
|
||||
s@^accept(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
SERVER-HEADER-FILTER: ab2p-xframe-filter
|
||||
s@.*\sHTTP\/1.*@$&\r\nX-Frame-Options: DENY@i
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-elemhide-check-debug
|
||||
s@^cookie:.*ab2p-elemhide-filter-debug=true(?:;|$).*@ab2p-elemhide-filter-debug@Ti
|
||||
|
||||
FILTER: ab2p-elemhide-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://config.privoxy.org/user-manual/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://config.privoxy.org/user-manual/$host/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-elemhide-filter-debug
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://config.privoxy.org/user-manual/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://config.privoxy.org/user-manual/$host.debug/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-popup-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<script type="text/javascript">parent==window&&opener&&close()</script>@iUD
|
||||
|
||||
|
1966
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/config.txt
Normal file
1966
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/config.txt
Normal file
File diff suppressed because it is too large
Load Diff
1888
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/css.action
Normal file
1888
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/css.action
Normal file
File diff suppressed because it is too large
Load Diff
2435
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/css.filter
Normal file
2435
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/css.filter
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,37 @@
|
||||
####################################
|
||||
|
||||
##image
|
||||
{+block{Blocked image request.} \
|
||||
+set-image-blocker{blank} \
|
||||
}
|
||||
.sina.com.cn/d1images/lmt/cls_.*\.gif
|
||||
|
||||
####################################
|
||||
|
||||
##flash
|
||||
{+block{No reason specified.} \
|
||||
+crunch-client-header{X-Whatever:} \
|
||||
+crunch-if-none-match \
|
||||
+crunch-incoming-cookies \
|
||||
+crunch-outgoing-cookies \
|
||||
+crunch-server-header{X-Whatever:} \
|
||||
+filter{html-annoyances} \
|
||||
+filter{content-cookies} \
|
||||
+filter{jumping-windows} \
|
||||
+filter{frameset-borders} \
|
||||
+filter{shockwave-flash} \
|
||||
+handle-as-empty-document \
|
||||
}
|
||||
pic.zol-img.com.cn/.*/win[0-9]+?.*?\.swf
|
||||
|
||||
####################################
|
||||
|
||||
##url
|
||||
{+block{ adblock rules } \
|
||||
+server-header-tagger{ab2p-block-s} \
|
||||
}
|
||||
TAG:^ab2p-block-request$
|
||||
.*img2.gamersky.com/d2/link\.asp
|
||||
.*xihawan8.com
|
||||
|
||||
####################################
|
@ -0,0 +1,6 @@
|
||||
FILTER: css-.dmzj.com
|
||||
s@(?=<head>)@\
|
||||
<style type="text/css" class="privoxy-add-css00">\n\
|
||||
.hotrmbox,.tcaricature_new,.header-box {display:none !important}\
|
||||
\n</style>@
|
||||
|
3790
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/proxy.action
Normal file
3790
1_9.r18_plugin/ad_plug/adblock_config/privoxyR20140517/proxy.action
Normal file
File diff suppressed because it is too large
Load Diff
10893
1_9.r18_plugin/ad_plug/hosts/hosts.new
Normal file
10893
1_9.r18_plugin/ad_plug/hosts/hosts.new
Normal file
File diff suppressed because it is too large
Load Diff
1984
1_9.r18_plugin/ad_plug/privoxy/default.action
Normal file
1984
1_9.r18_plugin/ad_plug/privoxy/default.action
Normal file
File diff suppressed because it is too large
Load Diff
889
1_9.r18_plugin/ad_plug/privoxy/default.filter
Normal file
889
1_9.r18_plugin/ad_plug/privoxy/default.filter
Normal file
@ -0,0 +1,889 @@
|
||||
#################################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/default.filter,v $
|
||||
#
|
||||
# $Id: default.filter,v 1.92 2014/10/17 14:45:10 fabiankeil Exp $
|
||||
#
|
||||
# Purpose : Rules to process the content of web pages
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001-2014 the
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Syntax:
|
||||
#
|
||||
# Generally filters start with a line like "FILTER: name description".
|
||||
# They are then referrable from the actionsfile with +filter{name}
|
||||
#
|
||||
# FILTER marks a filter as content filter, other filter
|
||||
# types are CLIENT-HEADER-FILTER, CLIENT-HEADER-TAGGER,
|
||||
# SERVER-HEADER-FILTER and SERVER-HEADER-TAGGER.
|
||||
#
|
||||
# Inside the filters, write one Perl-Style substitution (job) per line.
|
||||
# Jobs that precede the first FILTER: line are ignored.
|
||||
#
|
||||
# For Details see the pcrs manpage contained in this distribution.
|
||||
# (and the perlre, perlop and pcre manpages)
|
||||
#
|
||||
# Note that you are free to choose the delimiter as you see fit.
|
||||
#
|
||||
# Note2: In addition to the Perl options gimsx, the following nonstandard
|
||||
# options are supported:
|
||||
#
|
||||
# 'U' turns the default to ungreedy matching. Add ? to quantifiers to
|
||||
# switch back to greedy.
|
||||
#
|
||||
# 'T' (trivial) prevents parsing for backreferences in the substitute.
|
||||
# Use if you want to include text like '$&' in your substitute without
|
||||
# quoting.
|
||||
#
|
||||
# 'D' (Dynamic) allows the use of variables. Supported variables are:
|
||||
# $host, $origin (the IP address the request came from), $path and $url.
|
||||
#
|
||||
# Note that '$' is a bad choice as delimiter for dynamic filters as you
|
||||
# might end up with unintended variables if you use a variable name
|
||||
# directly after the delimiter. Variables will be resolved without
|
||||
# escaping anything, therefore you also have to be careful not to chose
|
||||
# delimiters that appear in the replacement text. For example '<' should
|
||||
# be save, while '?' will sooner or later cause conflicts with $url.
|
||||
#
|
||||
#################################################################################
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# js-annoyances: Get rid of particularly annoying JavaScript abuse.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: js-annoyances Get rid of particularly annoying JavaScript abuse.
|
||||
|
||||
# Note: Most of these jobs would be safer if restricted to a
|
||||
# <script> context as in:
|
||||
#
|
||||
# s/(<script.*)nasty-item(?=.*<\/script>)/$1replacement/sigU
|
||||
#
|
||||
# but that would make them match only the first occurrence of
|
||||
# nasty-item in each <script>. We need nestable jobs!
|
||||
|
||||
# Get rid of Javascript referrer tracking.
|
||||
# Test page: http://www.javascript-page.com/referrer.html
|
||||
#
|
||||
s|(?:\w+\.)+referrer|false.toString()|gisU
|
||||
|
||||
# The status bar is for displaying link targets, not pointless blahblah
|
||||
#
|
||||
s@([\W]\s*)((?:this|window)\.(?:default)?status)\s*=\s*((['"]).*?\4)@$1$2 =\
|
||||
(typeof(this.href) != 'undefined')?($3 + ' URL: ' + this.href):($2)@ig
|
||||
|
||||
s/(?:(?:this|window)\.(?:default)?status)\s*=\s*\w*\s*;//ig
|
||||
|
||||
# Kill OnUnload popups. Yummy.
|
||||
# Test: http://www.zdnet.com/zdsubs/yahoo/tree/yfs.html
|
||||
#
|
||||
s/(<body\s+[^>]*)onunload/$1never/siU
|
||||
s|(<script.*)window\.onunload(?=.*</script>)|$1never|sigU
|
||||
|
||||
# If we allow window.open, we want normal window features:
|
||||
# Test: http://www.htmlgoodies.com/beyond/notitle.html
|
||||
#
|
||||
s/(open\s*\([^\)]+resizable=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
|
||||
s/(open\s*\([^\)]+location=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
|
||||
s/(open\s*\([^\)]+status=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
|
||||
s/(open\s*\([^\)]+scroll(?:ing|bars)=)(["']?)(?:no|0)\2/$1$2auto$2/sigU
|
||||
s/(open\s*\([^\)]+menubar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
|
||||
s/(open\s*\([^\)]+toolbar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
|
||||
s/(open\s*\([^\)]+directories=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
|
||||
s/(open\s*\([^\)]+fullscreen=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
|
||||
s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
|
||||
s/(open\s*\([^\)]+z-?lock=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
|
||||
s/(open\s*\([^\)]+hotkeys=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
|
||||
s/(open\s*\([^\)]+titlebar=)(["']?)(?:no|0)\2/$1$2yes$2/sigU
|
||||
s/(open\s*\([^\)]+always(?:raised|lowered)=)(["']?)(?:yes|1)\2/$1$2no$2/sigU
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# js-events: Kill JavaScript event bindings and timers (Radically destructive! Only for extra nasty sites).
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: js-events Kill JavaScript event bindings and timers (Radically destructive! Only for extra nasty sites).
|
||||
|
||||
s/(on|event\.)((mouse(over|out|down|up|move))|(un)?load|contextmenu|selectstart)/never/ig
|
||||
# Not events, but abused on the same type of sites:
|
||||
s/(alert|confirm)\s*\(/concat(/ig
|
||||
s/set(timeout|interval)\(/concat(/ig
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# html-annoyances: Get rid of particularly annoying HTML abuse.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: html-annoyances Get rid of particularly annoying HTML abuse.
|
||||
|
||||
# New browser windows (if allowed -- see no-popups filter below) should be
|
||||
# resizeable and have a location and status bar
|
||||
#
|
||||
s/(<a\s+href[^>]+resizable=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
|
||||
s/(<a\s+href[^>]+location=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
|
||||
s/(<a\s+href[^>]+status=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
|
||||
s/(<a\s+href[^>]+scrolling=)(['"]?)(?:no|0)\2/$1$2auto$2/igU
|
||||
s/(<a\s+href[^>]+menubar=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
|
||||
|
||||
# The <BLINK> and <MARQUEE> tags were crimes!
|
||||
#
|
||||
s-</?(blink|marquee).*>--sigU
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# content-cookies: Kill cookies that come in the HTML or JS content.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: content-cookies Kill cookies that come in the HTML or JS content.
|
||||
|
||||
# JS cookies, except those used by antiadbuster.com to detect us:
|
||||
#
|
||||
s|(\w+\.)+cookie(?=[ \t\r\n]*=)(?!='aab)|ZappedCookie|ig
|
||||
|
||||
# HTML cookies:
|
||||
#
|
||||
s|<meta\s+http-equiv=['"]?set-cookie.*>|<!-- ZappedCookie -->|igU
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# refresh-tags: Kill automatic refresh tags if refresh time is larger than 9 seconds.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: refresh-tags Kill automatic refresh tags if refresh time is larger than 9 seconds.
|
||||
|
||||
# Note: Only deactivates refreshes with more than 9 seconds delay to
|
||||
# preserve monster-stupid but common redirections via meta tags.
|
||||
#
|
||||
s@<meta\s+http-equiv\s*=\s*(['"]?)refresh\1\s+content\s*=\s*(['"]?)\d{2,}\s*(;(?:\s*url\s*=\s*)?([^>\2]*))?\2@<link rev="x-refresh" href="$4"@ig
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# unsolicited-popups: Disable unsolicited pop-up windows.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: unsolicited-popups Disable only unsolicited pop-up windows.
|
||||
|
||||
s+([^'"]\s*<head.*>)(?=\s*[^'"])+$1<script>function PrivoxyWindowOpen(){return(null);}</script>+isU
|
||||
s@([^\w\s.]\s*)((?:map)?(window|this|parent)\.?)?open\s*\(@$1PrivoxyWindowOpen(@ig
|
||||
s+([^'"]\s*</html>)(?!\s*(\\n|'|"))+$1<script>function PrivoxyWindowOpen(a, b, c){return(window.open(a, b, c));}</script>+iU
|
||||
|
||||
|
||||
##################################################################################
|
||||
#
|
||||
# all-popups: Kill all popups in JavaScript and HTML.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: all-popups Kill all popups in JavaScript and HTML.
|
||||
|
||||
s@((\W\s*)(?:map)?(window|this|parent)\.?)open\s*\\?\(@$1concat(@ig # JavaScript
|
||||
#s/\starget\s*=\s*(['"]?)_?(blank|new)\1?/ notarget/ig # HTML
|
||||
s/\starget\s*=\s*(['"]?)_?(blank|new)\1?/ /ig # (X)HTML
|
||||
|
||||
##################################################################################
|
||||
#
|
||||
# img-reorder: Reorder attributes in <img> tags to make the banners-by-* filters more effective.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* filters more effective.
|
||||
|
||||
# In the first step src is moved to the start, then width is moved to the second
|
||||
# place to guarantee an order of src, width, height. Also does some white-space
|
||||
# normalization.
|
||||
#
|
||||
# This makes banners-by-size more effective and allows both banners-by-size
|
||||
# and banners-by-link to preserve the original image URL in the title attribute.
|
||||
|
||||
s|<img\s+?([^>]*)\ssrc\s*=\s*(['"])([^>'" ]+)\2|<img src=$2$3$2 $1|siUg
|
||||
s|<img\s+?([^>]*)\ssrc\s*=\s*([^'">\\\s]+)|<img src=$2 $1|sig
|
||||
s|(<img[^>]+height)\s*=\s*|$1=|sig
|
||||
|
||||
s|<img (src=(?:(['"])[^>'" ]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|<img $1 width=$4$3|siUg
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# banners-by-size: Kill banners by size.
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Standard banner sizes taken from http://www.iab.net/iab_banner_standards/bannersizes.html
|
||||
#
|
||||
# Note: Use http://config.privoxy.org/send-banner?type=trans for a transparent 1x1 image
|
||||
# Use http://config.privoxy.org/send-banner?type=pattern for a grey/white pattern image
|
||||
# Use http://config.privoxy.org/send-banner?type=auto to auto-select.
|
||||
#
|
||||
# Note2: Use img-reorder before this filter to ensure maximum matching success
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: banners-by-size Kill banners by size.
|
||||
|
||||
# 88*31
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)88\4)[^>]*?(height=(['"]?)31\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 120*60, 120*90, 120*240, 120*600
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)120\4)[^>]*?(height=(['"]?)(?:600?|90|240)\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 125*125
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)125\4)[^>]*?(height=(['"]?)125\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 160*600
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)160\4)[^>]*?(height=(['"]?)600\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 180*150
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)180\4)[^>]*?(height=(['"]?)150\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 234*60, 468*60 (Most Banners!)
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:234|468)\4)[^>]*?(height=(['"]?)60\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 240*400
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)240\4)[^>]*?(height=(['"]?)400\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 250*250, 300*250
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)(?:250|300)\4)[^>]*?(height=(['"]?)250\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
# 336*280
|
||||
s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)336\4)[^>]*?(height=(['"]?)280\6)[^>]*?(?=/?>)@\
|
||||
<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
|
||||
# Note: 200*50 was also proposed, but it probably causes too much collateral damage:
|
||||
#
|
||||
#s@<img\s+(?:src\s*=\s*(['"]?)([^>\\\1\s]+)\1)?[^>]*?(width=(['"]?)200\4)[^>]*?(height=(['"]?)50\6)[^>]*?(?=/?>)@\
|
||||
# <img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed-$2-by-size" $3 $5@sig
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# banners-by-link: Kill banners by their links to known clicktrackers (Experimental).
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: banners-by-link Kill banners by their links to known clicktrackers.
|
||||
|
||||
# Common case with width and height attributes:
|
||||
#
|
||||
s@<a\s+href\s*=\s*(['"]?)([^>\1\s]*?(?:\
|
||||
adclick # See www.dn.se \
|
||||
| advert # see dict.leo.org \
|
||||
| atwola\.com/(?:link|redir) # see www.cnn.com \
|
||||
| doubleclick\.net/jump/ # redirs for doublecklick.net ads \
|
||||
| counter # common \
|
||||
| (?<!&type=)tracker # (&type=tracker is used in sf's project statistics) \
|
||||
| adlog\.pl # see sf.net \
|
||||
)[^>\1\s]*)\1[^>]*>\s*<img\s+(?:src\s*=\s*(['"]?)([^>\\\3\s]+)\3)?[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\6)[^>]*((?:width|height)\s*=\s*(['"]?)\d+?\8)[^>]*?(?=/?>)\
|
||||
@<img $5 $7 src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed $4 by link to $2"@sigx
|
||||
|
||||
# Rare case w/o explicit dimensions:
|
||||
#
|
||||
s@<a\s+href\s*=\s*(['"]?)([^>\1\s]*?(?:ad(?:click|vert)|atwola\.com/(?:link|redir)|doubleclick\.net/jump/|(?<!&type=)tracker|counter|adlog\.pl)[^>\1\s]*)\1[^>]*>\s*<img\s+(?:src\s*=\s*(['"]?)([^>\\\3\s]+)\3)?[^>]*?(?=/?>)@<img src="http://config.privoxy.org/send-banner?type=auto" border="0" title="Killed $4 by link to $2"@sig
|
||||
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# webbugs: Squish WebBugs (1x1 invisible GIFs used for user tracking).
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: webbugs Squish WebBugs (1x1 invisible GIFs used for user tracking).
|
||||
|
||||
s@<img[^>]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*?>@@siUg
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# tiny-textforms: Extend those tiny textareas up to 40x80 and kill the hard wrap.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: tiny-textforms Extend those tiny textareas up to 40x80 and kill the hard wrap.
|
||||
|
||||
s/(<textarea[^>]*?)(?:\s*(?:rows|cols)=(['"]?)\d+\2)+/$1 rows=$2\40$2 cols=$2\80$2/ig
|
||||
s/(<textarea[^>]*?)wrap=(['"]?)hard\2/$1/ig
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# jumping-windows: Prevent windows from resizing and moving themselves.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: jumping-windows Prevent windows from resizing and moving themselves.
|
||||
|
||||
s/(?<=[\W])(?:window|this|self)\.(?:move|resize)(?:to|by)\(/''.concat(/ig
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# frameset-borders: Give frames a border, make them resizable and scrollable.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: frameset-borders Give frames a border and make them resizable.
|
||||
|
||||
s/(<frameset\s+[^>]*)framespacing=(['"]?)(no|0)\2/$1/igU
|
||||
s/(<frameset\s+[^>]*)frameborder=(['"]?)(no|0)\2/$1/igU
|
||||
s/(<frameset\s+[^>]*)border=(['"]?)(no|0)\2/$1/igU
|
||||
s/(<frame\s+[^>]*)noresize/$1/igU
|
||||
s/(<frame\s+[^>]*)frameborder=(['"]?)(no|0)\2/$1/igU
|
||||
s/(<frame\s+[^>]*)scrolling=(['"]?)(no|0)\2/$1/igU
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# iframes: Remove all detected iframes. Should only be enabled for
|
||||
# individual sites after testing that the iframes are optional.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: iframes Removes all detected iframes. Should only be enabled for individual sites.
|
||||
s@<iframe.*</iframe>@<!-- iframe removed by Privoxy's iframe filter -->@Uisg
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# demoronizer: Correct Microsoft's abuse of standardized character sets, which
|
||||
# leave the browser to (mis)-interpret unknown characters, with
|
||||
# sometimes bizarre results on non-MS platforms.
|
||||
#
|
||||
# credit: ripped from the demoroniser.pl script by:
|
||||
# John Walker -- January 1998, http://www.fourmilab.ch/webtools/demoroniser
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: demoronizer Fix MS's non-standard use of standard charsets.
|
||||
|
||||
s/(&\#[0-2]\d\d)\s/$1; /g
|
||||
# per Robert Lynch: http://slate.msn.com//?id=2067547, just a guess.
|
||||
# Must come before x94 below.
|
||||
s/\xE2\x80\x94/ -- /g
|
||||
s/\x82/,/g
|
||||
#s-\x83-<em>f</em>-g
|
||||
s/\x84/,,/g
|
||||
s/\x85/.../g
|
||||
#s/\x88/^/g
|
||||
#s-\x89- °/°°-g
|
||||
s/\x8B/</g
|
||||
s/\x8C/Oe/g
|
||||
s/\x91/`/g
|
||||
s/\x92/'/g
|
||||
s/(\x93|\x94)/"/g
|
||||
# Bullet type character.
|
||||
s/\x95/·/g
|
||||
s/\x96/-/g
|
||||
s/\x97/--/g
|
||||
#s-\x98-<sup>~</sup>-g
|
||||
#s-\x99-<sup>TM</sup>-g
|
||||
# per Robert Lynch.
|
||||
s/\x9B/>/g # 155
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# shockwave-flash: Kill embedded Shockwave Flash objects.
|
||||
# Note: Better just block "/.*\.swf$"!
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: shockwave-flash Kill embedded Shockwave Flash objects.
|
||||
|
||||
s|<object [^>]*macromedia.*</object>|<!-- Squished Shockwave Object -->|sigU
|
||||
s|<embed [^>]*(application/x-shockwave-flash\|\.swf).*>(.*</embed>)?|<!-- Squished Shockwave Flash Embed -->|sigU
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# quicktime-kioskmode: Make Quicktime movies saveable.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: quicktime-kioskmode Make Quicktime movies saveable.
|
||||
|
||||
s/(<embed\s+[^>]*)kioskmode\s*=\s*(["']?)true\2/$1/ig
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# fun: Text replacements for subversive browsing fun!
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: fun Text replacements for subversive browsing fun!
|
||||
|
||||
# SCNR
|
||||
#
|
||||
s/microsoft(?!\.[^\s])/MicroSuck/ig
|
||||
|
||||
# Buzzword Bingo (example for extended regex syntax)
|
||||
#
|
||||
s* (?:industry|world)[ -]leading \
|
||||
| cutting[ -]edge \
|
||||
| customer[ -]focused \
|
||||
| market[ -]driven \
|
||||
| award[ -]winning # Comments are OK, too! \
|
||||
| high[ -]performance \
|
||||
| solutions[ -]based \
|
||||
| unmatched \
|
||||
| unparalleled \
|
||||
| unrivalled \
|
||||
*$0<sup><font color="red"><b>Bingo!</b></font></sup> \
|
||||
*igx
|
||||
|
||||
# For Germans only
|
||||
#
|
||||
s/(M|m)edien(?![^<]*>)/$1ädchen/Ug
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# crude-parental: Crude parental filtering. Use with a suitable blocklist.
|
||||
# Pages are "blocked" based on keyword matching.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: crude-parental Crude parental filtering. Note that this filter doesn't work reliably.
|
||||
|
||||
# (Note: Middlesex, Sussex and Essex are counties in the UK, not rude words)
|
||||
# (Note #2: Is 'sex' a rude word?!)
|
||||
|
||||
s%^.*(?<!middle)(?<!sus)(?<!es)sex.*$%<html><head><title>Blocked</title></head><body>\
|
||||
<h3>Blocked by Privoxy's crude-parental filter due to possible adult content.</h3></body></html>%is
|
||||
|
||||
s+^.*warez.*$+<html><head><title>No Warez</title></head><body><h3>You're not searching for illegal stuff, are you?</h3></body></html>+is
|
||||
|
||||
# Remove by description
|
||||
s/^.*\
|
||||
(?:(suck|lick|tongue|rub|fuck|fingering|finger|chicks?)\s*)?\
|
||||
(?:(her|your|my|hard|with|big|wet|tight|pink|hot|moist|young|teen)\s*)+\
|
||||
(dicks?|penis|cocks?|balls?|tits?|pussy|cunt|clit|ass|mouth).*$\
|
||||
/This page has been blocked by Privoxy's crude-parental content filter\
|
||||
/is
|
||||
|
||||
#Remove by link text
|
||||
s/^.*\
|
||||
(download|broadband|view|watch|free|get|extreem)?\s*\
|
||||
(sex|xxx|porn|cumshot|fuck(ing|s)?|anal|ass|asian|adult|Amateur|org(y|ies)|close ups?|hand?job|nail(ed)?)+\s*\
|
||||
(movies?|pics?|videos?|dvds?|dvd's|links?).*$\
|
||||
/This page has been blocked by Privoxy's crude-parental content filter\
|
||||
/is
|
||||
|
||||
#Remove by age disclaimer
|
||||
s/^.*\
|
||||
(models?|chicks?|girls?|women|persons)\s*\
|
||||
(who|are|were)+ (over|at least) (16|18|21) years (old|of age).*$\
|
||||
/This page has been blocked by Privoxy's crude-parental content filter\
|
||||
/is
|
||||
|
||||
#Remove by regulations
|
||||
s/^.*(Section 2257|18 U.?S.?C.? 2257).*$\
|
||||
/This page has been blocked by Privoxy's crude-parental content filter\
|
||||
/is
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# IE-Exploits: Disable some known Internet Explorer bug exploits.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: ie-exploits Disable some known Internet Explorer bug exploits.
|
||||
|
||||
# Note: This is basically a demo and waits for someone more interested in IE
|
||||
# security (sic!) to take over.
|
||||
|
||||
# Cross-site-scripting:
|
||||
#
|
||||
s%f\("javascript:location.replace\('mk:@MSITStore:C:'\)"\);%alert\("This page looks like it tries to use a vulnerability described here:\n http://online.securityfocus.com/archive/1/298748/2002-11-02/2002-11-08/2"\);%siU
|
||||
|
||||
# Address bar spoofing (http://www.secunia.com/advisories/10395/):
|
||||
#
|
||||
s/(<a[^>]*href[^>]*)(?:\x01|\x02|\x03|%0[012])@/$1MALICIOUS-LINK@/ig
|
||||
|
||||
# Nimda:
|
||||
#
|
||||
s%<script language="JavaScript">(window\.open|1;''\.concat)\("readme\.eml", null, "resizable=no,top=6000,left=6000"\)</script>%<br><font size="7"> WARNING: This Server is infected with <a href="http://www.cert.org/advisories/CA-2001-26.html">Nimda</a>!</font>%g
|
||||
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
#
|
||||
# site-specifics: Cure for site-specific problems. Don't apply generally!
|
||||
#
|
||||
# Note: The fixes contained here are so specific to the problems of the
|
||||
# particular web sites they are designed for that they would be a
|
||||
# waste of CPU cycles (or even destructive!) on 99.9% of the web
|
||||
# sites where they don't apply.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: site-specifics Cure for site-specific problems. Don't apply generally!
|
||||
|
||||
# www.spiegel.de excludes X11 users from viewing Flash5 objects - shame.
|
||||
# Apply to: www.spiegel.de/static/js/flash-plugin.js
|
||||
#
|
||||
s/indexOf\("x11"\)/indexOf("x13")/
|
||||
|
||||
# www.quelle-bausparkasse.de uses a very stupid redirect mechanism that
|
||||
# relies on a webbug being present. Can we tolerate that? No!
|
||||
# Apply to: www.quelle-bausparkasse.de/$
|
||||
#
|
||||
s/mylogfunc()//g
|
||||
|
||||
# groups.yahoo.com has splash pages that one needs to click through in
|
||||
# order to access the actual messages. Let the browser do that. Thanks
|
||||
# to Paul Jobson for this one:
|
||||
#
|
||||
s|<a href="(.+?)">(?:Continue to message\|Weiter zu Nachricht)</a>|<meta http-equiv="refresh" content="0; URL=$1">|ig
|
||||
|
||||
# monster.com has two very similar gimmicks:
|
||||
#
|
||||
s|<input type="hidden" name="REDIRECT" value="(.+?)">|<meta http-equiv="refresh" content="0; URL=$1">|i
|
||||
|
||||
s|<IMG SRC="http://media.monster.com/mm/usen/my/no_thanks_211x40.gif".+?>|<meta http-equiv="refresh" content="0; URL=http://my.monster.com/resume.asp">|i
|
||||
|
||||
# nytimes.com triggers popups through the onload handler of dummy images
|
||||
# to fool popup-blockers.
|
||||
#
|
||||
s|(<img [^>]*)onload|$1never|sig
|
||||
|
||||
# Pre-check all the "Discard" buttons in GNU Mailman's web interface.
|
||||
# (This saves a lot of mouse aiming practice when flushing spamtraps)
|
||||
#
|
||||
s|(<INPUT name="\d{2,4}" type="RADIO" value="0") CHECKED |$1|g
|
||||
s|<INPUT name="\d{2,4}" type="RADIO" value="3" |$0 checked|g
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# no-ping: Removes non-standard ping attributes in <a> and <area> tags.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: no-ping Removes non-standard ping attributes in <a> and <area> tags.
|
||||
s@(<a(?:rea)?[^>]*?)\sping=(['"]?)([^"'>]+)\2([>\s]?)@\
|
||||
<strong style="color:white; background-color:red;" title="Privoxy removed ping target '$3'">PING!</strong>\n$1$4@ig
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# google: CSS-based block for Google text ads. Also removes
|
||||
# a width limitation and the toolbar advertisement.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: google CSS-based block for Google text ads. Also removes a width limitation and the toolbar advertisement.
|
||||
|
||||
s@</head>[^\\]@<style type="text/css">\n\
|
||||
/* Style sheet inserted by Privoxy's google filter. */\n\
|
||||
\#fbc, \#fbl, \#ra, .rhh {visibility: hidden !important;}\n\
|
||||
\#tpa1,\#tpa2,\#tpa3,\#tpa4,\#tpa5,\#tpa5, \#spl, .ch, \#ads,\
|
||||
\#toolbar, \#google_ads_frame, \#mbEnd {display: none !important;}\n\
|
||||
.main_body, .j, \#res, .med, .hd, .g, .s\n\
|
||||
{width: 99%; max-width: 100%; margin-left: 0; margin-right: 0;}\n\
|
||||
</style>\n$0@
|
||||
s@<div style=\"padding-top:11px;min-width:500px\">@<div id="main_body">@
|
||||
s@(<table cellspacing=0 cellpadding=0 width=25% align=right bgcolor=\#ffffff border=0\
|
||||
|</font></td></tr></tbody></table><table align=\"right\" bgcolor=\"\#ffffff\"\
|
||||
|<table cellspacing=0 cellpadding=0 align=right bgcolor=\#ffffff border=0\
|
||||
|<table style=\"clear:both\" align=right width=25% cellspacing=\"0\" cellpadding=\"0\"\
|
||||
border=\"0\" bgcolor=\"\#ffffff\")@$0 id="ads"@
|
||||
s@(<br clear=all><table)( border=0 cellpadding=9><tr><td)@$1 id="toolbar"$2@
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# yahoo: CSS-based block for Yahoo text ads. Also removes a width limitation.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: yahoo CSS-based block for Yahoo text ads. Also removes a width limitation.
|
||||
|
||||
s@</head>@\n<style type="text/css">\n\
|
||||
/* Style sheet inserted by Privoxy's yahoo filter. */\n\
|
||||
\#symadbn, \#ymadbn, .yschbox, .yschhd, .bbox, \#yschsec, \#sec,\
|
||||
\#yschanswr, .yschftad, .yschspn, .yschspns, \#ygrp-sponsored-links,\
|
||||
\#nwad, \#MWA2, \#MSCM, \#yregad, \#sponsored-links,\
|
||||
\#ks-ypn-ads, .ad, \#east, \#ygrp-vital, .ads {display: none !important;}\n\
|
||||
\#yschpri, \#yschweb, \#pri, \#web, \#main, .yschttl, .abstr, .res \n\
|
||||
{width: 99% !important; max-width: 100% !important;}\n\
|
||||
.yschttl, .res, .res.indent, \#web {padding: 0px; margin: 0px !important;}\n\
|
||||
\#web {padding-left: 0.5em}\n\
|
||||
\#yschqcon, \#yschtg {width: auto !important; /* No useless horizontal scrollbar please */}\n\
|
||||
\#composebox \#compose_editorArea {width: 70% !important; /* reasonably sized reply textarea please */\n\
|
||||
</style>\n$0\n@
|
||||
|
||||
s@(<textarea\s+id="composeArea"[^>]*)width:545px;@$1width:70%;@isU
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# msn: CSS-based block for MSN text ads. Also removes tracking URLs
|
||||
# and a width limitation.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: msn CSS-based block for MSN text ads. Also removes tracking URLs and a width limitation.
|
||||
|
||||
s@</head>@<style type="text/css">\n\
|
||||
/* Style sheet inserted by Privoxy's msn filter. */\n\
|
||||
.msn_ads, \#at, \#ar, .mktmsg {display: none !important;}\n\
|
||||
\#results, \#b_results, .flank, .results_area_flank, .results_area_stroke,\n\
|
||||
\#results_area, \#content, .sb_tlst, .sa_cc, .sb_ph, \#sw_main,\n\
|
||||
.content, .b_content, \#sw_foot, \#bf, \#sw_content, \#sidebar, \#pag\n\
|
||||
{width: 99% !important; min-width: 99% !important;\n\
|
||||
max-width: 100% !important; /* width:100% sometimes causes horizontal scrollbars */}\n\
|
||||
/* Remove 'related' ads */\n\
|
||||
.b_ad, .b_adlabel {clear: both; display:none;}\n\
|
||||
/* Remove "suggestions". They are next to worthless but partly overlap with the search results */\n\
|
||||
.suggestion, \#nys_right, \#nys {clear: both; display:none;}\n\
|
||||
/* Remove "Related searches" at the left side of the main results.\n\
|
||||
They are next to worthless, too, and also are still present below the main search results */\n\
|
||||
\#b_results > .b_ans {clear: both; display:none;}\n\
|
||||
\#s_notf_div,\n \
|
||||
/* Overlay ads to enable Facebook 'likes' in search results. */\n\
|
||||
.sn_container {display:none !important;}\n\
|
||||
\#content, \#b_content {padding: 0px 0px 0px 0px}\n\
|
||||
</style>\n$0@
|
||||
# Are these ids still in use?
|
||||
s@(<div[^>]*) id=(["']?)ads_[^\2]*\2@$1 class="msn_ads"@Uig
|
||||
s@(<div[^>]*) class=(["']?)sb_ads[^\2]*\2@$1 class="msn_ads"@Uig
|
||||
s@(<a[^>]*href=\")http://g.msn.com/.*\?(http://.*)(&&DI=.*)(\")@$1$2$4@Ug
|
||||
s@(<a[^>]*)gping=\".*\"@$1 title="URL cleaned up by Privoxy's msn filter"@Ug
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# blogspot: Cleans up some Blogspot blogs. Read the fine print before using this.
|
||||
#
|
||||
# This filter also intentionally removes some navigation stuff and
|
||||
# sets the page width to 100%. As a result, some rounded "corners" would
|
||||
# appear to early or not at all and as fixing this would require a browser
|
||||
# that understands background-size (CSS3), they are removed instead.
|
||||
#
|
||||
# When applied to feeds, it removes comment titles that
|
||||
# only contain the beginning of the actual comment.
|
||||
#
|
||||
#################################################################################
|
||||
FILTER: blogspot Cleans up some Blogspot blogs. Read the fine print before using this.
|
||||
|
||||
s@</head>@<style type="text/css">\n\
|
||||
/* Style sheet inserted by Privoxy's blogspot filter. */\n\
|
||||
\#powered-by {display: none !important;}\n\
|
||||
\#wrap4, \#wrapper {margin-top: 0px }\n\
|
||||
\#blogheader, \#header {margin-top: 0.5em !important}\n\
|
||||
\#content {width: 98% }\n\
|
||||
\#main {width: 70% }\n\
|
||||
\#sidebar {width: 29% }\n\
|
||||
.post-body {overflow: auto;}\n\
|
||||
.blogComments {width: 100%; overflow: auto;}\n</style>\n$0@
|
||||
s@<body.*(?:<div id="space-for-ie"></div>|(<div id="(?:content|wrap4|wrapper)))@<body>\
|
||||
<!-- Privoxy's blogspot filter ditched some garbage here -->$1@Us
|
||||
s@(<div style=\"[^\"]*width:)30em@$1 100%@
|
||||
s@background:url\(\"http://www.blogblog.com/rounders[^\"]*\"\).*;@/*$0*/@Ug
|
||||
s@(background:\#[a-f\d]{3})( url\(\"http://www.blogblog.com/rounders[^\"]*\"\).*;)@$1 ;/*$2*/@Ug
|
||||
# Do the feed filtering magic as described above.
|
||||
s@<title(?:\s+type=\'text\')?>([^<]*)(?:\.\.\.)?\s*</title>\s*\
|
||||
(<content(?:\s+type=\'(?:html|text)\')?>\s*\1)@<title></title>$2@ig
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# x-httpd-php-to-html: Changes the Content-Type header from
|
||||
# x-httpd-php to html. "Content-Type: x-httpd-php"
|
||||
# is set by clueless PHP users and causes many
|
||||
# browsers do open a download menu instead of
|
||||
# rendering the page.
|
||||
#
|
||||
#################################################################################
|
||||
SERVER-HEADER-FILTER: x-httpd-php-to-html Changes the Content-Type header from x-httpd-php to html.
|
||||
|
||||
s@^(Content-Type:)\s*application/x-httpd-php@$1 text/html@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# html-to-xml: Changes the Content-Type header from html to xml.
|
||||
#
|
||||
#################################################################################
|
||||
SERVER-HEADER-FILTER: html-to-xml Changes the Content-Type header from html to xml.
|
||||
|
||||
s@^(Content-Type:)\s*text/html(;.*)?$@$1 application/xhtml+xml$2@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# xml-to-html: Changes the Content-Type header from xml to html.
|
||||
#
|
||||
#################################################################################
|
||||
SERVER-HEADER-FILTER: xml-to-html Changes the Content-Type header from xml to html.
|
||||
|
||||
s@^(Content-Type:)\s*(?:application|text)/(?:xhtml\+)?xml(;.*)?$@$1 text/html$2@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# hide-tor-exit-notation: Remove the Tor exit node notation in Host and Referer headers.
|
||||
#
|
||||
# Note: If Privoxy and Tor are chained and Privoxy is configured to
|
||||
# use socks4a, one can use http://www.example.org.foobar.exit/
|
||||
# to access the host www.example.org through Tor exit node foobar.
|
||||
#
|
||||
# As the HTTP client isn't aware of this notation, it treats the
|
||||
# whole string "www.example.org.foobar.exit" as host and uses it
|
||||
# for the "Host" and "Referer" headers. From the server's point of
|
||||
# view the resulting headers are invalid and can cause problems.
|
||||
#
|
||||
# An invalid "Referer" header can trigger "hot-linking" protections,
|
||||
# an invalid "Host" header will make it impossible for the server to
|
||||
# find the right vhost (several domains hosted on the same IP address).
|
||||
#
|
||||
# This filter removes the "foo.exit" part in those headers
|
||||
# to prevent the mentioned problems. Note that it only modifies
|
||||
# the HTTP headers, it doesn't make it impossible for the server
|
||||
# to detect your Tor exit node based on the IP address the request is
|
||||
# coming from.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-FILTER: hide-tor-exit-notation Removes the Tor exit node notation in Host and Referer headers.
|
||||
|
||||
s@^((?:Referer|Host):\s*(?:https?://)?[^/]*)\.[^\./]*?\.exit@$1@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# less-download-windows: Prevents annoying download windows for content types
|
||||
# the browser can handle itself.
|
||||
#
|
||||
#################################################################################
|
||||
SERVER-HEADER-FILTER: less-download-windows Prevent annoying download windows for content types the browser can handle itself.
|
||||
|
||||
s@^Content-Disposition:.*filename=(["']?).*\.(png|gif|jpe?g|diff?|d?patch|c|h|pl|shar)\1.*$@@i
|
||||
s@^(Content-Type:)\s*(?:message/(?:news|rfc822)|text/x-.*|application/x-sh(?:\s|$))\s*@$1 text/plain@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# image-requests: Tags detected image requests as "IMAGE-REQUEST". Whether
|
||||
# or not the detection actually works depends on the browser.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: image-requests Tags detected image requests as "IMAGE-REQUEST".
|
||||
|
||||
s@^Accept:\s*image/.*@IMAGE-REQUEST@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# css-requests: Tags detected CSS requests as "CSS-REQUEST". Whether
|
||||
# or not the detection actually works depends on the browser.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: css-requests Tags detected CSS requests as "CSS-REQUEST".
|
||||
|
||||
s@^Accept:\s*text/css.*@CSS-REQUEST@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# range-requests: Tags range requests as "RANGE-REQUEST".
|
||||
#
|
||||
# By default Privoxy removes Range headers for requests to
|
||||
# ressources that will be filtered to make sure the filters
|
||||
# get the whole picture. Otherwise Range requests could be
|
||||
# intentionally used to circumvent filters or, less likely,
|
||||
# filtering a partial response may damage it because it matched
|
||||
# a pattern that the ressource as a whole wouldn't.
|
||||
#
|
||||
# Range requests can be useful and save bandwidth so instead
|
||||
# of removing Range headers for requests to ressources that
|
||||
# will be filtered, you may prefer to simply disable filtering
|
||||
# for those requests.
|
||||
#
|
||||
# That's what this tagger is all about. After enabling it,
|
||||
# you can disable filtering for range requests using the following
|
||||
# action section:
|
||||
#
|
||||
# {-filter -deanimate-gifs}
|
||||
# TAG:^RANGE-REQUEST
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: range-requests Tags range requests as "RANGE-REQUEST".
|
||||
|
||||
s@^Range:.*@RANGE-REQUEST@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# client-ip-address: Tags the request with the client's IP address.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: client-ip-address Tags the request with the client's IP address.
|
||||
|
||||
s@^\w*\s+.*\s+HTTP/\d\.\d\s*@IP-ADDRESS: $origin@D
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# http-method: Tags the request with its HTTP method.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: http-method Tags the request with its HTTP method.
|
||||
|
||||
s@^(\w*).*HTTP/\d\.\d\s*$@$1@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# allow-post: Tags POST requests as "ALLOWED-POST".
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: allow-post Tags POST requests as "ALLOWED-POST".
|
||||
|
||||
s@^(?:POST)\s+.*\s+HTTP/\d\.\d\s*@ALLOWED-POST@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# complete-url: Tags the request with the whole request URL.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: complete-url Tags the request with the whole request URL.
|
||||
|
||||
s@^\w*\s+(.*)\s+HTTP/\d\.\d\s*$@$1@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# user-agent: Tags the request with the complete User-Agent header.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: user-agent Tags the request with the complete User-Agent header.
|
||||
|
||||
s@^User-Agent:.*@$0@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# referer: Tags the request with the complete Referer header.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: referer Tags the request with the complete Referer header.
|
||||
|
||||
s@^Referer:.*@$0@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# content-type: Tags the request with the content type declared by the server.
|
||||
#
|
||||
#################################################################################
|
||||
SERVER-HEADER-TAGGER: content-type Tags the request with the content type declared by the server.
|
||||
|
||||
s@^Content-Type:\s*([^;]+).*@$1@i
|
||||
|
||||
#################################################################################
|
||||
#
|
||||
# privoxy-control: The taggers create tags with the content of X-Privoxy-Control
|
||||
# headers, the filters remove said headers.
|
||||
#
|
||||
#################################################################################
|
||||
CLIENT-HEADER-TAGGER: privoxy-control Creates tags with the content of X-Privoxy-Control headers.
|
||||
|
||||
s@^X-Privoxy-Control:\s*@@i
|
||||
|
||||
CLIENT-HEADER-FILTER: privoxy-control Removes X-Privoxy-Control headers.
|
||||
|
||||
s@^X-Privoxy-Control:.*@@i
|
||||
|
||||
SERVER-HEADER-TAGGER: privoxy-control Creates tags with the content of X-Privoxy-Control headers.
|
||||
|
||||
s@^X-Privoxy-Control:\s*@@i
|
||||
|
||||
SERVER-HEADER-FILTER: privoxy-control Removes X-Privoxy-Control headers.
|
||||
|
||||
s@^X-Privoxy-Control:.*@@i
|
16
1_9.r18_plugin/ad_plug/privoxy/match-all.action
Normal file
16
1_9.r18_plugin/ad_plug/privoxy/match-all.action
Normal file
@ -0,0 +1,16 @@
|
||||
#############################################################################
|
||||
# $Id: match-all.action,v 1.3 2010/03/27 18:48:38 fabiankeil Exp $
|
||||
#
|
||||
# This file contains the actions that are applied to all requests and
|
||||
# may be overruled later on by other actions files. Less experienced
|
||||
# users should only edit this file through the actions file editor.
|
||||
#
|
||||
#############################################################################
|
||||
{ \
|
||||
+change-x-forwarded-for{block} \
|
||||
+client-header-tagger{css-requests} \
|
||||
+client-header-tagger{image-requests} \
|
||||
+hide-from-header{block} \
|
||||
+set-image-blocker{pattern} \
|
||||
}
|
||||
/ # Match all URLs
|
287
1_9.r18_plugin/ad_plug/privoxy/templates/blocked
Normal file
287
1_9.r18_plugin/ad_plug/privoxy/templates/blocked
Normal file
@ -0,0 +1,287 @@
|
||||
##########################################################
|
||||
#
|
||||
# "Blocked" Error Output template for Privoxy.
|
||||
#
|
||||
# NOTE: UNLIKE THE OTHER TEMPLATES, THIS ONE USES
|
||||
# JavaScript write() TO GENERATE THE PAGE IN JS_AWARE
|
||||
# BROWSERS. SYMBOL SUBSTITUTIONS THAT RESULT IN MULTILINE
|
||||
# STRINGS WILL BREAK THE JavaScript SYNTAX.
|
||||
# USE WITH CAUTION.
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written in plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# protocol:
|
||||
# The request's protocol: http:// or https://
|
||||
# hostport:
|
||||
# The host and port part of the blocked request's URL.
|
||||
# path:
|
||||
# The path part of the blocked request's URL.
|
||||
# path-ue:
|
||||
# The path part of the blocked request's URL, url-encoded.
|
||||
#
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# This is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
# force-support:
|
||||
# Privoxy has been compiled with support for forced loading
|
||||
# of blocked content. In that case, the symbol "force-prefix" is
|
||||
# avaiable, which translates to the FORCE_PREFIX
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Request blocked (Privoxy@@my-hostname@)</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico" type="image/x-icon">
|
||||
<style type="text/css">
|
||||
#include cgi-style.css
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript">
|
||||
<!--
|
||||
/*
|
||||
* Is this window or frame too small
|
||||
* for the full-blown "blocked" page?
|
||||
*/
|
||||
function isSmallFrame()
|
||||
{
|
||||
minWidth = 650;
|
||||
minHeight = 330;
|
||||
|
||||
/*
|
||||
* Navigator, Mozilla, Opera
|
||||
*/
|
||||
if (window.innerWidth
|
||||
&& (window.innerWidth >= minWidth)
|
||||
&& (window.innerHeight >= minHeight))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* MSIE
|
||||
*/
|
||||
else if (document.body && document.body.clientWidth
|
||||
&& (document.body.clientWidth >= minWidth)
|
||||
&& (document.body.clientHeight >= minHeight))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* Small window or unsupported browser
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" language="javascript">
|
||||
<!--
|
||||
# Note: The same small version is used at the bottom
|
||||
# of this file in the <noscript> context. If you
|
||||
# make changes here, keep the other version in sync!
|
||||
|
||||
if (isSmallFrame())
|
||||
{
|
||||
document.write('\
|
||||
<p class="small" align="center"> \
|
||||
Request blocked by <a href="@default-cgi@" target="_blank">Privoxy</a>: @block-reason@ \
|
||||
<br>See <a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" \
|
||||
>why this block applies</a> \
|
||||
<!-- @if-force-support-start --> \
|
||||
or <a href="http://@hostport@@force-prefix@@path@">go \
|
||||
<!-- if-force-support-end@ --> \
|
||||
to <b>@protocol@@hostport@@path@</b> \
|
||||
<!-- @if-force-support-start --> \
|
||||
anyway</a>. \
|
||||
<!-- if-force-support-end@ --> \
|
||||
</p> \
|
||||
');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
document.write('\
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">\
|
||||
<tr> \
|
||||
<td class="status"> \
|
||||
BLOCKED \
|
||||
</td> \
|
||||
<td class="title" width=100%> \
|
||||
<h1> \
|
||||
This is <a href="@homepage@">Privoxy</a> @version@ on @my-hostname@ (@my-ip-address@), port @my-port@, \
|
||||
@if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@ \
|
||||
</h1> \
|
||||
</td> \
|
||||
</tr> \
|
||||
\
|
||||
<!-- @if-unstable-start --> \
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in \
|
||||
<tr> \
|
||||
<td class="warning" colspan="2"> \
|
||||
<h2>Warning:</h2> \
|
||||
<p> \
|
||||
<b>Please note that this <font color=red>@code-status@</font> release \
|
||||
of the proxy software is not intended for production systems! \
|
||||
<br>Use at your own risk. See the <a href="@user-manual@copyright.html">license</a> for details.</b> \
|
||||
</p> \
|
||||
</td> \
|
||||
</tr> \
|
||||
<!-- if-unstable-end@ --> \
|
||||
\
|
||||
<tr> \
|
||||
<td class="box" colspan="2"> \
|
||||
<h2>Request for blocked URL</h2> \
|
||||
<p>Your request for <b>@protocol@@hostport@@path@</b> was blocked. \
|
||||
<br>Block reason: @block-reason@ \
|
||||
<br><a href="@default-cgi@show-url-info?url=@hostport@@path-ue@" \
|
||||
>See why this block applies</a> \
|
||||
<!-- @if-force-support-start --> \
|
||||
or <a href="http://@hostport@@force-prefix@@path@">go there anyway</a>. \
|
||||
<!-- if-force-support-end@ --> \
|
||||
</p> \
|
||||
</td> \
|
||||
</tr> \
|
||||
\
|
||||
<tr> \
|
||||
<td class="box" colspan="2"> \
|
||||
<h2>More Privoxy:</h2> \
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul> \
|
||||
</td> \
|
||||
</tr> \
|
||||
\
|
||||
<tr> \
|
||||
<td class="info" colspan="2"> \
|
||||
<big><b>Support and Service via Sourceforge:</b></big> \
|
||||
<p> \
|
||||
We value your feedback. To provide you with the best support, \
|
||||
we ask that you: \
|
||||
</p> \
|
||||
<ul> \
|
||||
<li> \
|
||||
use the <a href="http://sourceforge.net/tracker/?group_id=11118&atid=211118">support forum</a> or (better) the \
|
||||
<a href="http://sourceforge.net/mail/?group_id=11118">mailing lists</a> to get help. \
|
||||
</li> \
|
||||
<li> \
|
||||
submit banners and all problems with the actions file only through the \
|
||||
<a href="javascript:void(window.open(\'http://www.privoxy.org/actions\',\'Feedback\',\'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no\').focus());">actions \
|
||||
file feedback system</a>. \
|
||||
</li> \
|
||||
<li> \
|
||||
submit bugs only through our <a href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">bug tracker</a>. \
|
||||
Make sure that the bug has not yet been submitted. \
|
||||
</li> \
|
||||
<li> \
|
||||
submit feature requests only through our <a href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">feature \
|
||||
request tracker</a>. \
|
||||
</li> \
|
||||
</ul> \
|
||||
</td> \
|
||||
</tr> \
|
||||
\
|
||||
<!-- @if-have-help-info-start --> \
|
||||
<tr> \
|
||||
<td class="info" colspan="2"> \
|
||||
<h2>Local Privoxy support:</h2> \
|
||||
\
|
||||
<!-- @if-have-proxy-info-start --> \
|
||||
<p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Privoxy installation.</p> \
|
||||
<!-- if-have-proxy-info-end@ --> \
|
||||
\
|
||||
<!-- @if-have-adminaddr-info-start --> \
|
||||
<p>Address e-mail questions about this service to \
|
||||
<a href="mailto:@admin-address@"><code>@admin-address@</code></a>, \
|
||||
who will be glad to help you. \
|
||||
</p> \
|
||||
<!-- if-have-adminaddr-info-end@ --> \
|
||||
</td> \
|
||||
</tr> \
|
||||
<!-- if-have-help-info-end@ --> \
|
||||
\
|
||||
</table> \
|
||||
');
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
# Note: The same small version is used above via JavaScript
|
||||
# If you make changes here, keep the other version in sync!
|
||||
|
||||
<noscript>
|
||||
<p class="small" align="center">
|
||||
Request blocked by <a href="@default-cgi@">Privoxy</a>: @block-reason@
|
||||
<br>See <a href="@default-cgi@show-url-info?url=@hostport@@path-ue@"
|
||||
>why this block applies</a>
|
||||
<!-- @if-force-support-start -->
|
||||
or <a href="http://@hostport@@force-prefix@@path@">go
|
||||
<!-- if-force-support-end@ -->
|
||||
to <b>@protocol@@hostport@@path@</b>
|
||||
<!-- @if-force-support-start -->
|
||||
anyway</a>.
|
||||
<!-- if-force-support-end@ -->
|
||||
</p>
|
||||
</noscript>
|
||||
|
||||
</body>
|
||||
</html>
|
149
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-404
Normal file
149
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-404
Normal file
@ -0,0 +1,149 @@
|
||||
##########################################################
|
||||
#
|
||||
# No-Such-Domain Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>404 - Privoxy Configuration Page not found</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="status">
|
||||
404
|
||||
</td>
|
||||
<td class="title" style="width: 100%">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
<h2>Privoxy Configuration page not found</h2>
|
||||
<p>You typed in what looks like a URL used to configure
|
||||
Privoxy, but it cannot be recognised. Maybe it's
|
||||
for a different Privoxy version, or you typed it
|
||||
in wrong? Or maybe the Privoxy administrator
|
||||
has decided to disable the feature.</p>
|
||||
<p>If you got here by clicking a link in the
|
||||
configuration interface, please file a bug report!</p>
|
||||
<p>You can use the menu below to select from the available
|
||||
configuration options</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
156
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-bad-param
Normal file
156
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-bad-param
Normal file
@ -0,0 +1,156 @@
|
||||
##########################################################
|
||||
#
|
||||
# No-Such-Domain Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy: Bad parameter</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>Bad parameter to Privoxy configuration page</h2>
|
||||
<p>You've found a page used to configure Privoxy, but the
|
||||
parameters (the part of the web page address after the
|
||||
"?" mark) are wrong or missing.</p>
|
||||
<p>Possible causes:</p>
|
||||
<ul>
|
||||
<li>If you just typed a URL pattern into a form, then you got
|
||||
something wrong. Press the "back" button on your browser
|
||||
once and correct what you typed.</li>
|
||||
<li>If you tried to type in the URL, then you've found a
|
||||
page where you can't do that. You can only view this
|
||||
page by following links from elsewhere in the configuration
|
||||
interface.</li>
|
||||
<li>If you got here using your browser's "back" button, then
|
||||
that is deliberately disabled for this page.</li>
|
||||
<li>If you got here by clicking a link in the
|
||||
configuration interface, please file a bug report!</li>
|
||||
</ul>
|
||||
<p>You can use the menu below to select from the available
|
||||
configuration options</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Privoxy Menu:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
169
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-disabled
Normal file
169
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-disabled
Normal file
@ -0,0 +1,169 @@
|
||||
##########################################################
|
||||
#
|
||||
# Feature disabled or referrer untrusted Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Configuration Page Disabled</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>Privoxy Configuration access denied</h2>
|
||||
<p>Access to <b>@url@</b> has been denied because:</p>
|
||||
|
||||
<ul>
|
||||
<li>it requires a feature that has been disabled by the Privoxy administrator,</li>
|
||||
<li>you didn't come here through one of Privoxy's CGI pages, or</li>
|
||||
<li>the <q>Referer:</q> header is blocked.</li>
|
||||
</ul>
|
||||
|
||||
<p>Note that the following features which used to be enabled in earlier
|
||||
releases are now off by default:
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="@user-manual@config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions</a></li>
|
||||
<li><a href="@user-manual@config.html#ENABLE-REMOTE-TOGGLE">enable-remote-toggle</a></li>
|
||||
<li><a href="@user-manual@config.html#ENABLE-REMOTE-HTTP-TOGGLE">enable-remote-http-toggle</a>
|
||||
(Most likely you don't need this anyway.)</li>
|
||||
</ul>
|
||||
|
||||
<p>Please refer to the documentation behind the links to learn how to
|
||||
enable them again and what the consequences are.</p>
|
||||
|
||||
<p>All enabled features are accessible from the
|
||||
<a href="@default-cgi@">main menu</a>, some of them
|
||||
are <em>protected</em> with a referrer check though.
|
||||
If you got caught by the referrer check, but are <strong>absolutely</strong> sure
|
||||
you know what you are doing, please <a title="Retry from a trusted referrer"
|
||||
href="@url@">try again</a>.</p>
|
||||
|
||||
<p>If the <q>Referer:</q> header is blocked, you'll have to make an exception for
|
||||
Privoxy's web interface first. Note that <em>dumb</em> referrer blocking
|
||||
is a bad idea anyway, as it makes it easier to fingerprint your
|
||||
requests. Consider using Privoxy's conditional referrer block instead.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
139
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-file
Normal file
139
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-file
Normal file
@ -0,0 +1,139 @@
|
||||
##########################################################
|
||||
#
|
||||
# No-Such-Domain Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy: Actions file not found</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>Actions file not found</h2>
|
||||
<p>The actions file you are trying to edit (index <code>@f@</code>)
|
||||
does not exist, or cannot be read.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Privoxy Menu:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,146 @@
|
||||
##########################################################
|
||||
#
|
||||
# No-Such-Domain Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy: Cannot write to actions file</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>Cannot write to actions file</h2>
|
||||
<p>The actions file you are trying to edit (<code>@f@.action</code>)
|
||||
could not be written to.</p>
|
||||
<p>You many not have permission to write to the file - check the file
|
||||
permissions. On Windows, right-click the file, choose Properties,
|
||||
and make sure it is not read-only.</p>
|
||||
<p>Another reason you may see this message is if you have run out of
|
||||
disk space. If that is the case, then the actions file has been
|
||||
truncated - if you get further errors, you may need to fix it
|
||||
using a text editor.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Privoxy Menu:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
157
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-modified
Normal file
157
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-modified
Normal file
@ -0,0 +1,157 @@
|
||||
##########################################################
|
||||
#
|
||||
# No-Such-Domain Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy: URL out of date</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>URL out of date - file has changed since it was generated</h2>
|
||||
<p>The URL you're viewing is out of date. To prevent possible
|
||||
damage to your configuration file, this action has been ignored.
|
||||
</p>
|
||||
<p>Possible causes:</p>
|
||||
<ul>
|
||||
<li>If you got here using your browser's "back" button, then
|
||||
that is deliberately disabled for this page. Please
|
||||
navigate around the configuration editor using the
|
||||
links provided.</li>
|
||||
<li>Perhaps you've got more than one browser window open, and
|
||||
you're trying to change the same file in both? You can
|
||||
only have one editor window open at a time. Your other edit
|
||||
window should continue to function.</li>
|
||||
<li>You may have modified the file some other way - perhaps by
|
||||
editing it with a text editor. Simply go back in to the
|
||||
configuration interface using the links below.</li>
|
||||
</ul>
|
||||
<p>You can go back into the edit interface using the menu below,
|
||||
or by clicking <a href="edit-actions-list?f=@f@">here</a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
176
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-parse
Normal file
176
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-error-parse
Normal file
@ -0,0 +1,176 @@
|
||||
##########################################################
|
||||
#
|
||||
# No-Such-Domain Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy: Parse error</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>Parse error</h2>
|
||||
<p>The file you're trying to edit is not valid. You need to fix
|
||||
it using a text editor before you can edit it using the
|
||||
web-based editor.</p>
|
||||
<p>This error should only occur if you edited the file using a text
|
||||
editor. If you managed to take a valid file and break it this
|
||||
badly using the web-based editor, please file a bug report!</p>
|
||||
<p>When you've fixed the problem, you can go back into the edit
|
||||
interface using the menu below, or by clicking <a
|
||||
href="edit-actions-list?f=@f@">here</a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Problem description:</h2>
|
||||
<p>@parse-error@</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>The line which caused the problem:</h2>
|
||||
<pre>@line-raw@</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>The line which caused the problem, with comments removed</h2>
|
||||
<p><code>@line-data@</code></p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Note</h2>
|
||||
<p>Only the first error is reported - the file may contain other
|
||||
errors, as well as the one reported above.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
151
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-style.css
Normal file
151
1_9.r18_plugin/ad_plug/privoxy/templates/cgi-style.css
Normal file
@ -0,0 +1,151 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/cgi-style.css,v $
|
||||
#
|
||||
# Purpose : Style sheet for the web-based config interface.
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
/*
|
||||
* CSS for Privoxy CGI and script output
|
||||
*
|
||||
* $Id: cgi-style.css,v 1.14 2011/09/04 11:09:40 fabiankeil Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
* General rules: Font, Color, Headings, Margins, Links
|
||||
*/
|
||||
body,td,th { font-family: arial, helvetica, helv, sans-serif; }
|
||||
body { background-color: #ffffff; color: #000000; }
|
||||
|
||||
h1 { font-size: 140%; margin: 0px; }
|
||||
h2 { font-size: 120%; margin: 0px; }
|
||||
h3 { font-size: 110%; margin: 0px; }
|
||||
|
||||
p,pre { margin-left: 15px; }
|
||||
li { margin: 2px 15px; }
|
||||
dl { margin: 2px 15px; }
|
||||
|
||||
a:link { color: #0000dd; text-decoration: none; }
|
||||
a:visited { color: #330099; text-decoration: none; }
|
||||
a:active { color: #3333ff; text-decoration: none; }
|
||||
|
||||
/*
|
||||
* Boxen as Table elements:
|
||||
*/
|
||||
td.title { border: solid black 1px; background-color: #dddddd; }
|
||||
td.box { border: solid black 1px; background-color: #eeeeee; }
|
||||
td.info { border: solid black 1px; background-color: #ccccff; }
|
||||
td.warning { border: solid black 1px; background-color: #ffdddd; }
|
||||
|
||||
/*
|
||||
* Special Table Boxen: for nesting, naked container and for
|
||||
* the Status field in CGI Output:
|
||||
*/
|
||||
td.wrapbox { border: solid black 1px; padding: 5px; }
|
||||
td.container { padding: 0px; }
|
||||
td.status { border: solid black 1px; background-color: #ff0000; color: #ffffff; font-size: 300%; font-weight: bolder; }
|
||||
|
||||
/*
|
||||
* Same Boxen as <div>s:
|
||||
*/
|
||||
div.title { border: solid black 1px; background-color: #dddddd; margin: 20px; padding: 20px; }
|
||||
div.box { border: solid black 1px; background-color: #eeeeee; margin: 20px; padding: 20px; }
|
||||
div.info { border: solid black 1px; background-color: #ccccff; margin: 20px; padding: 20px; }
|
||||
div.warning { border: solid black 1px; background-color: #ffdddd; margin: 20px; padding: 20px; }
|
||||
div.wrapbox { border: solid black 1px; margin: 20px; padding: 5px; }
|
||||
|
||||
|
||||
/*
|
||||
* Bold definitions in <dl>s, grey BG for table headings, transparent (no-bordered) table
|
||||
*/
|
||||
dt { font-weight: bold; }
|
||||
th { background-color: #dddddd; }
|
||||
table.transparent { border-style: none}
|
||||
|
||||
/*
|
||||
* Special purpose paragraphs: Small for page footers,
|
||||
* Important for quoting wrong or dangerous examples,
|
||||
* Whiteframed for the toggle?mini=y CGI
|
||||
*/
|
||||
p.small { font-size: 10px; margin: 0px; }
|
||||
p.important { border: solid black 1px; background-color: #ffdddd; font-weight: bold; padding: 2px; }
|
||||
p.whiteframed { margin: 5px; padding: 5px; border: solid black 1px; text-align: center; background-color: #eeeeee; }
|
||||
|
||||
/*
|
||||
* Links as buttons:
|
||||
*/
|
||||
|
||||
td.buttons {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
a.cmd, td.indentbuttons a, td.buttons a {
|
||||
white-space: nowrap;
|
||||
width: auto;
|
||||
padding: 2px;
|
||||
background-color: #dddddd;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
border-top: 1px solid #ffffff;
|
||||
border-left: 1px solid #ffffff;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
a.cmd:hover, td.indentbuttons a:hover, td.buttons a:hover {
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
a.cmd:active, td.indentbuttons a:active, td.buttons a:active {
|
||||
border-top: 1px solid #000000;
|
||||
border-left: 1px solid #000000;
|
||||
border-bottom: 1px solid #ffffff;
|
||||
border-right: 1px solid #ffffff;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Special red emphasis:
|
||||
*/
|
||||
em.warning, strong.warning { color: #ff0000 }
|
||||
|
||||
/*
|
||||
* In show-status we use tables directly behind headlines
|
||||
* and for some reason or another the headlines are set to
|
||||
* "margin:0" and leave the tables no air to breath.
|
||||
*
|
||||
* A proper fix would be to replace or remove the "margin:0",
|
||||
* but as this affects every cgi page we do it another time
|
||||
* and use this workaround until then.
|
||||
*/
|
||||
.box table { margin-top: 1em; }
|
||||
|
||||
/*
|
||||
* Let the URL and pattern input fields scale with the browser
|
||||
* width and try to prevent vertical scroll bars if the width
|
||||
* is less than 80 characters.
|
||||
*/
|
||||
input.url, input.pattern { width: 95%; }
|
156
1_9.r18_plugin/ad_plug/privoxy/templates/connect-failed
Normal file
156
1_9.r18_plugin/ad_plug/privoxy/templates/connect-failed
Normal file
@ -0,0 +1,156 @@
|
||||
##########################################################
|
||||
#
|
||||
# Connect-Failed Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# host-ip:
|
||||
# The IP address of the host that could not be reached
|
||||
# hostport:
|
||||
# The host and port part of the request that lead to this problem
|
||||
# path:
|
||||
# The path part of the request that lead to this problem
|
||||
#
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>503 - Connect failed (Privoxy@@my-hostname@)</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
<style type="text/css">
|
||||
#include cgi-style.css
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="status">
|
||||
503
|
||||
</td>
|
||||
<td class="title" style="width: 100%">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning" colspan=2>
|
||||
<h2>Connect failed</h2>
|
||||
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a> could
|
||||
not be fulfilled, because the connection to <b>@host@</b> (@host-ip@) could not be established.
|
||||
</p>
|
||||
<p>This is often a temporary failure, so you might just
|
||||
<a href="@protocol@@hostport@@path@">try again</a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
86
1_9.r18_plugin/ad_plug/privoxy/templates/connection-timeout
Normal file
86
1_9.r18_plugin/ad_plug/privoxy/templates/connection-timeout
Normal file
@ -0,0 +1,86 @@
|
||||
##########################################################
|
||||
#
|
||||
# connection-timeout Error Output template for Privoxy.
|
||||
#
|
||||
##########################################################
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>504 - Connection timeout (Privoxy@@my-hostname@)</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
<style type="text/css">
|
||||
#include cgi-style.css
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="status">
|
||||
504
|
||||
</td>
|
||||
<td class="title" style="width: 100%">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning" colspan=2>
|
||||
<h2>Connection timeout</h2>
|
||||
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
|
||||
could not be fulfilled, because the connection to <b>@host@</b> (@host-ip@) timed out.
|
||||
</p>
|
||||
<p>This is often a temporary failure, so you might just
|
||||
<a href="@protocol@@hostport@@path@">try again</a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
131
1_9.r18_plugin/ad_plug/privoxy/templates/default
Normal file
131
1_9.r18_plugin/ad_plug/privoxy/templates/default
Normal file
@ -0,0 +1,131 @@
|
||||
##########################################################
|
||||
#
|
||||
# Default-CGI Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy@@my-hostname@</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Privoxy Menu:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,147 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-add-url-form,v $
|
||||
#
|
||||
# Purpose : Template used to add a URL pattern to the actions file.
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
##############################################################################
|
||||
#
|
||||
# Standard support:
|
||||
#
|
||||
# This file currently produces valid HTML 4.01 Strict.
|
||||
#
|
||||
# If you change it, please save the generated page from your web browser
|
||||
# and then upload it to http://validator.w3.org/ for checking.
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# Available variables include:
|
||||
#
|
||||
# filename
|
||||
# ver
|
||||
# section
|
||||
#
|
||||
#############################################################################
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
|
||||
<title>Privoxy@@my-hostname@: Add URL Pattern</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function validate(text)
|
||||
{
|
||||
if (text=="")
|
||||
{
|
||||
alert("You need to type a pattern in order to continue!");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Add URL or TAG Pattern</h2>
|
||||
<form method="GET" action="edit-actions-add-url"
|
||||
onSubmit="return validate(u.value);">
|
||||
<p>
|
||||
<input type="hidden" name="f" value="@f@">
|
||||
<input type="hidden" name="v" value="@v@">
|
||||
<input type="hidden" name="s" value="@s@">
|
||||
<input type="text" name="u" value="" size="78" class="pattern"><br>
|
||||
<input type="submit" value="Submit">
|
||||
<input type="reset" value="Reset">
|
||||
<a class="cmd" href="edit-actions-list?f=@f@#l@s@">Cancel</a>
|
||||
</p>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
1232
1_9.r18_plugin/ad_plug/privoxy/templates/edit-actions-for-url
Normal file
1232
1_9.r18_plugin/ad_plug/privoxy/templates/edit-actions-for-url
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-for-url-filter,v $
|
||||
#
|
||||
# Purpose : Template that is included from most of Privoxy's CGI pages
|
||||
# to show the user how to get help or report problems.
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2002-2007 members of
|
||||
# the SourceForge Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# This template is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
<tr class="bg1" align="left" valign="top">
|
||||
<td class="en1" align="center" valign="middle"><input type="radio" name="filter_r@index@" value="Y" @this-filter-y@></td>
|
||||
<td class="dis1" align="center" valign="middle"><input type="radio" name="filter_r@index@" value="N" @this-filter-n@></td>
|
||||
<td class="noc1" align="center" valign="middle"><input type="radio" name="filter_r@index@" value="X" @this-filter-x@></td>
|
||||
<td class="action">
|
||||
<input type="hidden" name="filter_t@index@" value="@abbr-filter-type@">
|
||||
<input type="hidden" name="filter_n@index@" value="@name@">
|
||||
<a href="@user-manual@@actions-help-prefix@@anchor@">@filter-type@</a> @name@
|
||||
</td>
|
||||
<td>@description@</td>
|
||||
</tr>
|
279
1_9.r18_plugin/ad_plug/privoxy/templates/edit-actions-list
Normal file
279
1_9.r18_plugin/ad_plug/privoxy/templates/edit-actions-list
Normal file
@ -0,0 +1,279 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list,v $
|
||||
#
|
||||
# Purpose : Template used to edit the actions file.
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001-2009 the
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
##############################################################################
|
||||
#
|
||||
# Browser support for the CSS on this page:
|
||||
# MS Internet Explorer 5.5 - Yes - everything works.
|
||||
# Netscape 6.2 - Yes - everything works.
|
||||
# Netscape 4.75 - No - CSS buttons look really bad, but they are
|
||||
# usable. Everything else works.
|
||||
# Opera 5.12 - Yes - everything works.
|
||||
# MS Internet Explorer 4+ - Untested
|
||||
# MS IE 3.x, NS3.x - Untested (Don't support CSS, so everything
|
||||
# should work, but will look ugly).
|
||||
# Mozilla >=0.6 - Yes - everything works.
|
||||
#
|
||||
# All browsers should work, you just might not get the pretty CSS buttons.
|
||||
#
|
||||
# If your favorite browser isn't listed/tested, please test and add it.
|
||||
#
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# Standard support:
|
||||
#
|
||||
# This file currently produces valid HTML 4.01 Strict.
|
||||
#
|
||||
# If you change it, please save the generated page from your web browser
|
||||
# and then upload it to http://validator.w3.org/ for checking.
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# Available variables include:
|
||||
#
|
||||
# filename
|
||||
# ver
|
||||
#
|
||||
#
|
||||
#############################################################################
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
|
||||
<title>Privoxy: Edit actions file @actions-file@</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
table.framed {
|
||||
border: solid black 1px;
|
||||
margin: 10px 0px;
|
||||
}
|
||||
tr.actions {
|
||||
background-color: #eeffee;
|
||||
}
|
||||
tr.url {
|
||||
background-color: #ddddff;
|
||||
}
|
||||
tr.adv {
|
||||
background-color: #FFFFD0;
|
||||
}
|
||||
td.header {
|
||||
font-weight: bold;
|
||||
font-size: 110%;
|
||||
padding: 10px 15px 2px 15px;
|
||||
}
|
||||
td.url {
|
||||
font-weight: bold;
|
||||
}
|
||||
td.action {
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
padding: 2px 30px;
|
||||
}
|
||||
td.nbr, td.buttons {
|
||||
white-space: nowrap;
|
||||
}
|
||||
td.indentbuttons {
|
||||
padding: 2px 30px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
// Non-JS capable browsers will follow the link to a HTML "are you sure?" page
|
||||
// JavaScript-capable browsers will call this function, which does a
|
||||
// client-side prompt for speed. It may kick off the delete directly.
|
||||
// It always returns false to cancel following the link.
|
||||
function rm_p(link,pattern,curtext)
|
||||
{
|
||||
if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
|
||||
{
|
||||
link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function e_p(link,pattern,curtext)
|
||||
{
|
||||
if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null)
|
||||
{
|
||||
if (newtext != "")
|
||||
{ link.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+encodeURIComponent(newtext); }
|
||||
else
|
||||
{ link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function a_p(link,section)
|
||||
{
|
||||
if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != ""))
|
||||
{
|
||||
link.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+encodeURIComponent(newtext);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
<h2>What is all this?</h2>
|
||||
<p>
|
||||
If you haven't already done so, it is <b>strongly recommended</b> that you at
|
||||
least skim <a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">the
|
||||
chapter on actions files</a> in the <a href="@user-manual@">User Manual</a>
|
||||
before making any changes. You will also find a comprehensive list of
|
||||
all available actions there, as well how the settings on this page
|
||||
work.
|
||||
</p>
|
||||
<!-- @if-all-urls-present-then@ -->
|
||||
<p>
|
||||
Please note that <b>the first section has special importance</b>. It sets the default actions for
|
||||
all URLs. The resulting actions for a particular URL may differ from these defaults if that
|
||||
URL matches again further down, but this section is largely responsible for your browsing
|
||||
experience. Edit manually with great care, or choose from the predefined sets of actions.
|
||||
</p>
|
||||
<!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
|
||||
<!-- @if-default-action-then@ -->
|
||||
<p>
|
||||
This is the default action file. Updates for it are available from
|
||||
<a href="http://www.privoxy.org/">Privoxy.org</a> from time to time.
|
||||
It is therefore <b>not recommended</b> that you add your private
|
||||
rules here, since they will be lost if you install an update in the future.
|
||||
Put your rules in a separate actions file, like <tt>user.action</tt> instead.
|
||||
</p>
|
||||
<!-- @else-not-default-action@@endif-default-action@ -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<div class="buttons">
|
||||
<h2>Editing Actions File @actions-file@</h2>
|
||||
<!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
|
||||
<p><a class="cmd" href="edit-actions-section-add?f=@f@&v=@v@&s=0">Insert new section at top</a></p>
|
||||
<!-- @endif-all-urls-present@ -->
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-all-urls-present-then@ -->
|
||||
<tr>
|
||||
<td class="container"><a name="l@all-urls-s@"></a>
|
||||
<table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
|
||||
<tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
|
||||
<tr class="actions">
|
||||
<td class="indentbuttons">
|
||||
<a href="eafu?f=@f@&v=@v@&s=@all-urls-s@">Edit</a>
|
||||
@all-urls-buttons@
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="actions"><td class="action">@all-urls-actions@</td></tr>
|
||||
<tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
|
||||
<tr class="url"><td class="indentbuttons">/ <i>(Matches all requests)</a></td></tr>
|
||||
<tr class="adv"><td class="header">Advanced:</td></tr>
|
||||
<tr class="adv">
|
||||
<td class="indentbuttons">
|
||||
<a href="easa?f=@f@&v=@v@&s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
|
||||
|
||||
@sections@
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,33 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list-button,v $
|
||||
#
|
||||
# Purpose : Template which forms part of edit-actions-list
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#############################################################################
|
||||
<a href="eas?f=@f@&v=@v@&s=@all-urls-s@&p=@button-name@#l@all-urls-s@">Set to @button-name@</a>
|
@ -0,0 +1,67 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list-section,v $
|
||||
#
|
||||
# Purpose : Template which forms part of edit-actions-list
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# Available variables include:
|
||||
#
|
||||
# filename
|
||||
# ver
|
||||
# sectionid
|
||||
# urls
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# ** Important note: **
|
||||
#
|
||||
# It is important to keep this file small. That's why all the
|
||||
# identifiers in the HTML are short and cryptic. Currently, the main
|
||||
# edit-actions page is ~300k. Before it was optimized, it was ~550k.
|
||||
#
|
||||
#############################################################################
|
||||
|
||||
<tr><td class="container"><a name="l@s@"></a>
|
||||
<table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
|
||||
<tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
|
||||
<tr class="actions"><td class="indentbuttons"><a href="eafu?f=@f@&v=@v@&s=@s@">Edit</a></td></tr>
|
||||
<tr class="actions"><td class="action">@actions@</td></tr>
|
||||
<tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
|
||||
<tr class="url"><td class="indentbuttons"><a href="eaa?f=@f@&v=@v@&s=@s@" onclick="return a_p(this,@s@);">Add</a></td></tr>
|
||||
@urls@
|
||||
<tr class="adv"><td class="header">Advanced:</td></tr>
|
||||
<tr class="adv"><td class="indentbuttons">
|
||||
@if-s-prev-exists-start@<a href="eass?f=@f@&v=@v@&s1=@s-prev@&s2=@s@#l@s-prev@">Move section up</a> @if-s-prev-exists-end@
|
||||
@if-s-next-exists-start@<a href="eass?f=@f@&v=@v@&s1=@s@&s2=@s-next@#l@s@">Move section down</a> @if-s-next-exists-end@
|
||||
<a href="easa?f=@f@&v=@v@&s=@s@#l@s-next@">Insert new section below</a>
|
||||
@if-empty-section-start@ <a href="easr?f=@f@&v=@v@&s=@s@#l@s@">Delete whole section</a>@if-empty-section-end@
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
@ -0,0 +1,54 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list-url,v $
|
||||
#
|
||||
# Purpose : Template which forms part of edit-actions-list
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# Available variables include:
|
||||
#
|
||||
# filename
|
||||
# ver
|
||||
# sectionid
|
||||
# urls
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# ** Important note: **
|
||||
#
|
||||
# It is *extremely* important to keep this file small. That's why all the
|
||||
# identifiers in the HTML are short and cryptic. Currently, the main
|
||||
# edit-actions page is ~300k. Before it was optimized, it was ~550k.
|
||||
#
|
||||
#############################################################################
|
||||
<tr class="url" valign="top">
|
||||
<td class="indentbuttons"><a name="l@p@"
|
||||
href="ear?f=@f@&v=@v@&p=@p@" onclick="return rm_p(this, @p@,'@url@');">Remove</a> <a
|
||||
href="eau?f=@f@&v=@v@&p=@p@" onclick="return e_p(this, @p@,'@url@');">Edit</a> @url-html@</td>
|
||||
</tr>
|
@ -0,0 +1,132 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-remove-url-form,v $
|
||||
#
|
||||
# Purpose : Template used to confirm removal of a particular URL
|
||||
# pattern from an actions file. Only used on browsers that
|
||||
# don't support JavaScript.
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
##############################################################################
|
||||
#
|
||||
# Standard support:
|
||||
#
|
||||
# This file currently produces valid HTML 4.01 Strict.
|
||||
#
|
||||
# If you change it, please save the generated page from your web browser
|
||||
# and then upload it to http://validator.w3.org/ for checking.
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# Available variables include:
|
||||
#
|
||||
# filename
|
||||
# ver
|
||||
# section
|
||||
# pattern
|
||||
# oldval
|
||||
# jumptarget - append to eal URL to jump to relevant section
|
||||
#
|
||||
#############################################################################
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
|
||||
<title>Privoxy@@my-hostname@: Remove URL Pattern</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Remove URL Pattern</h2>
|
||||
<p>Are you sure you want to delete this URL pattern? The pattern is:</p>
|
||||
<p class="important">@u@</p>
|
||||
<p>
|
||||
<a class="cmd" href="edit-actions-remove-url?f=@f@&v=@v@&p=@p@">OK</a>
|
||||
|
||||
<a class="cmd" href="edit-actions-list?f=@f@@jumptarget@">Cancel</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
150
1_9.r18_plugin/ad_plug/privoxy/templates/edit-actions-url-form
Normal file
150
1_9.r18_plugin/ad_plug/privoxy/templates/edit-actions-url-form
Normal file
@ -0,0 +1,150 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-url-form,v $
|
||||
#
|
||||
# Purpose : Template used to edit a URL pattern in an actions file.
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Original Author: Copyright (C) 2001 Jonathan Foster
|
||||
# http://www.jon-foster.co.uk/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
##############################################################################
|
||||
#
|
||||
# Standard support:
|
||||
#
|
||||
# This file currently produces valid HTML 4.01 Strict.
|
||||
#
|
||||
# If you change it, please save the generated page from your web browser
|
||||
# and then upload it to http://validator.w3.org/ for checking.
|
||||
#
|
||||
#############################################################################
|
||||
#
|
||||
# Available variables include:
|
||||
#
|
||||
# f - filename
|
||||
# v - version
|
||||
# s - section
|
||||
# p - pattern
|
||||
# u - old value of URL
|
||||
# jumptarget - append to eal URL to jump to relevant section
|
||||
#
|
||||
#############################################################################
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico">
|
||||
|
||||
<title>Privoxy@@my-hostname@: Edit URL Pattern</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function validate(text)
|
||||
{
|
||||
if (text=="")
|
||||
{
|
||||
alert("You need to type a pattern in order to continue!");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Edit URL or TAG Pattern</h2>
|
||||
<form method="GET" action="edit-actions-url"
|
||||
onSubmit="return validate(u.value);">
|
||||
<p>
|
||||
<input type="hidden" name="f" value="@f@">
|
||||
<input type="hidden" name="v" value="@v@">
|
||||
<input type="hidden" name="p" value="@p@">
|
||||
<input type="text" name="u" value="@u@" size="78" class="pattern"><br>
|
||||
<input type="submit" value="Submit">
|
||||
<input type="reset" value="Reset">
|
||||
<a class="cmd" href="edit-actions-list?f=@f@@jumptarget@">Cancel</a>
|
||||
</p>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
167
1_9.r18_plugin/ad_plug/privoxy/templates/forwarding-failed
Normal file
167
1_9.r18_plugin/ad_plug/privoxy/templates/forwarding-failed
Normal file
@ -0,0 +1,167 @@
|
||||
##########################################################
|
||||
#
|
||||
# Forwarding-failed template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written in plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# gateway
|
||||
# The IP or hostname of the forwarding server
|
||||
# hostport:
|
||||
# The host and port part of the request that lead to this problem
|
||||
# path:
|
||||
# The path part of the request that lead to this problem
|
||||
# error-message:
|
||||
# The failure reason.
|
||||
# forwarding-type:
|
||||
# The type of the forwarding request: "socks4-", "socks4a-"
|
||||
# or (in the future) "" for direct connections to the forwarder.
|
||||
#
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>503 - Forwarding failure (Privoxy@@my-hostname@)</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
<style type="text/css">
|
||||
#include cgi-style.css
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="status">
|
||||
503
|
||||
</td>
|
||||
<td class="title" style="width: 100%">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning" colspan=2>
|
||||
<h2>Forwarding failure</h2>
|
||||
<p>Privoxy was unable to <b>@forwarding-type@forward</b> your request
|
||||
<a title="Repeat the request"
|
||||
href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
|
||||
through <b>@gateway@</b>:
|
||||
<strong>@error-message@</strong></p>
|
||||
</p>
|
||||
<p>Just <a title="Repeat the request" href="@protocol@@hostport@@path@">try again</a> to
|
||||
see if this is a temporary problem, or check your <a title="Privoxy's show-status page"
|
||||
href="@default-cgi@show-status">forwarding settings</a>
|
||||
and make sure that all forwarding servers are working correctly and
|
||||
listening where they are supposed to be listening.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
12
1_9.r18_plugin/ad_plug/privoxy/templates/mod-local-help
Normal file
12
1_9.r18_plugin/ad_plug/privoxy/templates/mod-local-help
Normal file
@ -0,0 +1,12 @@
|
||||
<h2>Local Privoxy support:</h2>
|
||||
|
||||
<!-- @if-have-proxy-info-start -->
|
||||
<p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Privoxy installation.</p>
|
||||
<!-- if-have-proxy-info-end@ -->
|
||||
|
||||
<!-- @if-have-adminaddr-info-start -->
|
||||
<p>Address e-mail questions about this Privoxy installation to
|
||||
<a href="mailto:@admin-address@"><code>@admin-address@</code></a>,
|
||||
who will be glad to help you.
|
||||
</p>
|
||||
<!-- if-have-adminaddr-info-end@ -->
|
@ -0,0 +1,53 @@
|
||||
##############################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/mod-support-and-service,v $
|
||||
#
|
||||
# Purpose : Template that is included from most of Privoxy's CGI pages
|
||||
# to show the user how to get help or report problems.
|
||||
#
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2002-2009 members of
|
||||
# the Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# This template is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
##############################################################################
|
||||
<h2>Support and Service:</h2>
|
||||
<p>
|
||||
The Privoxy Team values your feedback. To provide you with the best support,
|
||||
we ask that you:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
use the <a href="http://sourceforge.net/tracker/?group_id=11118&atid=211118">Support Tracker</a>
|
||||
if you need help.
|
||||
</li>
|
||||
<li>
|
||||
submit ads and configuration related problems with the actions files through the
|
||||
<a href="http://sourceforge.net/tracker/?group_id=11118&atid=460288">Actionsfile Feedback Tracker</a>.
|
||||
</li>
|
||||
<li>
|
||||
submit bugs only through the
|
||||
<a href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">Bug Tracker</a>.
|
||||
Please make sure that the bug has not been submitted yet.
|
||||
</li>
|
||||
<li>
|
||||
submit feature requests only through the
|
||||
<a href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">Feature
|
||||
Request Tracker</a>.
|
||||
</li>
|
||||
<li>
|
||||
read the <a title="Contacting the developers, Bug Reporting and Feature Requests"
|
||||
href="@user-manual@contact.html">instructions in the User Manual</a>
|
||||
to make sure your request contains all the information we need.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
If you want to support the Privoxy Team, please have a look at the FAQ to learn how to
|
||||
<a href="http://www.privoxy.org/faq/general.html#PARTICIPATE">participate</a>
|
||||
or to <a href="http://www.privoxy.org/faq/general.html#DONATE">donate</a>.
|
||||
</p>
|
4
1_9.r18_plugin/ad_plug/privoxy/templates/mod-title
Normal file
4
1_9.r18_plugin/ad_plug/privoxy/templates/mod-title
Normal file
@ -0,0 +1,4 @@
|
||||
<h1>
|
||||
This is <a href="@homepage@">Privoxy</a> @version@ on @my-hostname@ (@my-ip-address@), port @my-port@<!-- @if-can-toggle-start -->,
|
||||
@if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@<!-- if-can-toggle-end@ -->
|
||||
</h1>
|
@ -0,0 +1,7 @@
|
||||
<h2>Warning:</h2>
|
||||
<p>
|
||||
<strong>This Privoxy version is based on <em class="warning">@code-status@</em> code and
|
||||
not intended for production systems!
|
||||
<br>Use at your own risk. See the <a title="GNU General Public License version 2"
|
||||
href="@user-manual@copyright.html">license</a> for details.</strong>
|
||||
</p>
|
95
1_9.r18_plugin/ad_plug/privoxy/templates/no-server-data
Normal file
95
1_9.r18_plugin/ad_plug/privoxy/templates/no-server-data
Normal file
@ -0,0 +1,95 @@
|
||||
##########################################################
|
||||
#
|
||||
# no-server-data Error Output template for Privoxy.
|
||||
#
|
||||
##########################################################
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>502 - No server or forwarder data received (Privoxy@@my-hostname@)</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
<style type="text/css">
|
||||
#include cgi-style.css
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="status">
|
||||
502
|
||||
</td>
|
||||
<td class="title" style="width: 100%">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning" colspan=2>
|
||||
<h2>No server or forwarder data received</h2>
|
||||
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
|
||||
could not be fulfilled, because the connection to <b>@host@</b> (@host-ip@) has been closed
|
||||
before Privoxy received any data for this request.
|
||||
</p>
|
||||
<p>This is often a temporary failure, so you might just
|
||||
<a href="@protocol@@hostport@@path@">try again</a>.
|
||||
</p>
|
||||
<p>
|
||||
If you get this message very often, consider disabling
|
||||
<a href="@user-manual@config.html#CONNECTION-SHARING">connection-sharing</a>
|
||||
(which should be off by default). If that doesn't help, you may have to additionally
|
||||
disable support for connection keep-alive by setting
|
||||
<a href="@user-manual@config.html#KEEP-ALIVE-TIMEOUT">keep-alive-timeout</a>
|
||||
to 0.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
158
1_9.r18_plugin/ad_plug/privoxy/templates/no-such-domain
Normal file
158
1_9.r18_plugin/ad_plug/privoxy/templates/no-such-domain
Normal file
@ -0,0 +1,158 @@
|
||||
##########################################################
|
||||
#
|
||||
# No-Such-Domain Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the proxy's administrator, as configured
|
||||
# in the 'config' file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# host:
|
||||
# The host part of the request that lead to this problem
|
||||
# hostport:
|
||||
# The host and port part of the request that lead to this problem
|
||||
# path:
|
||||
# The path part of the request that lead to this problem
|
||||
# proxy-info-url:
|
||||
# The URL to local online Privoxy documentation, if define in the
|
||||
# 'config' file
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>404 - No such Domain (Privoxy@@my-hostname@)</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
<style type="text/css">
|
||||
#include cgi-style.css
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="status">
|
||||
404
|
||||
</td>
|
||||
<td class="title" style="width: 100%">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
<h2>No such domain</h2>
|
||||
<p>Your request for <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a>
|
||||
could not be fulfilled, because the domain name <b>@host@</b> could not be resolved.
|
||||
</p>
|
||||
<p>This is often a temporary failure, so you might just
|
||||
<a href="@protocol@@hostport@@path@">try again</a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
154
1_9.r18_plugin/ad_plug/privoxy/templates/show-request
Normal file
154
1_9.r18_plugin/ad_plug/privoxy/templates/show-request
Normal file
@ -0,0 +1,154 @@
|
||||
##########################################################
|
||||
#
|
||||
# Show-Request-CGI Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
# client-request:
|
||||
# The request and headers that the client sent.
|
||||
# processed-request:
|
||||
# What we would have rewritten this request to, if this had not
|
||||
# been intercepted.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy@@my-hostname@</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Show-Request</h2>
|
||||
<p>
|
||||
Here you see the original headers that your client sent when requesting this page, along with
|
||||
the headers that Privoxy would have sent to the remote server if this request hadn't been
|
||||
intercepted.
|
||||
</p>
|
||||
|
||||
<h3>Original Client Request:</h3>
|
||||
<pre>@client-request@</pre>
|
||||
|
||||
<h3>Processed Request:</h3>
|
||||
<pre>@processed-request@</pre>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
379
1_9.r18_plugin/ad_plug/privoxy/templates/show-status
Normal file
379
1_9.r18_plugin/ad_plug/privoxy/templates/show-status
Normal file
@ -0,0 +1,379 @@
|
||||
##########################################################
|
||||
#
|
||||
# Show-Status-CGI Output template for Privoxy.
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach Privoxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the Privoxy administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of Privoxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The Privoxy version number
|
||||
# code-status:
|
||||
# The Privoxy development status: "alpha", "beta", or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# redirect-url:
|
||||
# The URL to a script that will redirect to the Privoxy
|
||||
# documentation for a given item
|
||||
# invocation:
|
||||
# The command line with which Privoxy was invoked
|
||||
# options:
|
||||
# The options read from the configfile, linked to their
|
||||
# explanations, plus warnings if parsing acl or forward
|
||||
# statements produced errors.
|
||||
# sourceversions:
|
||||
# A HTML-formatted list of the individual source file cvs versions
|
||||
# defines:
|
||||
# A HTML-formatted list of all conditional #defines used when
|
||||
# Privoxy was compiled
|
||||
#
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# This is an alpha or beta Privoxy release
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for Privoxy's online documentation has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
# statistics:
|
||||
# Privoxy was compiled with statistics support
|
||||
# have-stats:
|
||||
# There have been previous requests and statistics have
|
||||
# been collected. In this case, the following symbols
|
||||
# are available:
|
||||
# requests-received:
|
||||
# The number of requests received so far
|
||||
# requests-blocked:
|
||||
# The number of request blocked so far
|
||||
# percent-blocked:
|
||||
# The percentage of blocked requests
|
||||
# have-no-stats:
|
||||
# There haven't any statistics been collected yet
|
||||
# pcrs-support:
|
||||
# Privoxy was compiled with pcrs support
|
||||
# trust-support:
|
||||
# Privoxy was compiled with trust support
|
||||
# actions-filenames:
|
||||
# The path to the actions files.
|
||||
# re-filter-filenames:
|
||||
# The path to the re_filter files. Only available if
|
||||
# pcrs-support is set
|
||||
# trust-filename:
|
||||
# The path to the trust file. Only available if
|
||||
# trust-support is set
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy@@my-hostname@: Proxy Status</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>The following files are in use:</h2>
|
||||
<table summary="Action, filter and trust files in use." class="transparent">
|
||||
<tr>
|
||||
<th colspan="2"><a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">Actions Files:</a></th>
|
||||
</tr>
|
||||
@actions-filenames@
|
||||
<tr>
|
||||
<th colspan="2"><a href="@user-manual@filter-file.html">Filter Files:</a></th>
|
||||
</tr>
|
||||
@re-filter-filenames@
|
||||
<!-- @if-trust-support-start -->
|
||||
<tr>
|
||||
<th colspan="2"><a href="@user-manual@config.html#TRUSTFILE">Trust File:</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@trust-filename@
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<!-- @if-have-trustfile-start -->
|
||||
<a href="show-status?file=trust">View</a>
|
||||
<!-- if-have-trustfile-end@ -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-trust-support-end@ -->
|
||||
</table>
|
||||
<!-- @if-cgi-editor-is-disabled-start -->
|
||||
<p>
|
||||
The CGI editor is currently disabled, thus no edit buttons are shown.<br>
|
||||
Please have a look at the
|
||||
<a href="@user-manual@config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions documentation</a>
|
||||
to learn how to enable it and what the risks are.
|
||||
</p>
|
||||
<!-- if-cgi-editor-is-disabled-end@ -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Privoxy was <a href="@user-manual@startup.html#CMDOPTIONS">invoked</a> as follows:</h2>
|
||||
<p>@invocation@</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>The following options were given in the <a href="@user-manual@config.html">config file</a>:</h2>
|
||||
<p>@options@</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-statistics-start -->
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Blocking Statistics:</h2>
|
||||
<p>
|
||||
<!-- @if-have-stats-start -->
|
||||
@requests-blocked@ out of @requests-received@ requests have been blocked,
|
||||
which equals a block rate of @percent-blocked@%.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Note that the statistics currently don't work properly for
|
||||
reused connections where only the last request gets counted.
|
||||
You may want to look into Privoxy-Log-Parser's --statistics option,
|
||||
which doesn't have this limitation.</strong>
|
||||
<!-- if-have-stats-end@ -->
|
||||
<!-- @if-have-no-stats-start -->
|
||||
There haven't been any requests so far.
|
||||
<!-- if-have-no-stats-end@ -->
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-statistics-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Conditional #defines:</h2>
|
||||
<table summary="The state of some ./configure options and what they do." border="1" style="margin-left: 10px">
|
||||
<tr>
|
||||
<th>#define</th> <th>Enabled?</th> <th>Effects when enabled</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code>FEATURE_ACCEPT_FILTER</code></td>
|
||||
<td>@if-FEATURE_ACCEPT_FILTER-then@ Yes @else-not-FEATURE_ACCEPT_FILTER@ No @endif-FEATURE_ACCEPT_FILTER@</td>
|
||||
<td>Support for FreeBSD's accf_http(9) which is also available on some other BSDs.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_ACL</code></td>
|
||||
<td>@if-FEATURE_ACL-then@ Yes @else-not-FEATURE_ACL@ No @endif-FEATURE_ACL@</td>
|
||||
<td>Allows the use of an ACL to control access to Privoxy by IP address.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_CGI_EDIT_ACTIONS</code></td>
|
||||
<td>@if-FEATURE_CGI_EDIT_ACTIONS-then@ Yes @else-not-FEATURE_CGI_EDIT_ACTIONS@ No @endif-FEATURE_CGI_EDIT_ACTIONS@</td>
|
||||
<td>Allows the use of the @if-FEATURE_CGI_EDIT_ACTIONS-then@<a
|
||||
href="@default-cgi@edit-actions">@else-not-FEATURE_CGI_EDIT_ACTIONS@
|
||||
@endif-FEATURE_CGI_EDIT_ACTIONS@web-based actions file
|
||||
editor@if-FEATURE_CGI_EDIT_ACTIONS-then@</a>@else-not-FEATURE_CGI_EDIT_ACTIONS@@endif-FEATURE_CGI_EDIT_ACTIONS@.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_COMPRESSION</code></td>
|
||||
<td>@if-FEATURE_COMPRESSION-then@ Yes @else-not-FEATURE_COMPRESSION@ No @endif-FEATURE_COMPRESSION@</td>
|
||||
<td>
|
||||
Allows to compress buffered content before sending it to the client, assuming the client supports it.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_CONNECTION_KEEP_ALIVE</code></td>
|
||||
<td>@if-FEATURE_CONNECTION_KEEP_ALIVE-then@ Yes @else-not-FEATURE_CONNECTION_KEEP_ALIVE@ No @endif-FEATURE_CONNECTION_KEEP_ALIVE@</td>
|
||||
<td>
|
||||
Allows to send multiple request through the same connections if the server supports it.
|
||||
Requires the keep-alive-timeout config directive to be set.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_CONNECTION_SHARING</code></td>
|
||||
<td>@if-FEATURE_CONNECTION_SHARING-then@ Yes @else-not-FEATURE_CONNECTION_SHARING@ No @endif-FEATURE_CONNECTION_SHARING@</td>
|
||||
<td>
|
||||
Allows to share outgoing connections between incoming connections.
|
||||
Requires the connection-sharing config directive to be set.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_DYNAMIC_PCRE</code></td>
|
||||
<td>@if-FEATURE_DYNAMIC_PCRE-then@ Yes @else-not-FEATURE_DYNAMIC_PCRE@ No @endif-FEATURE_DYNAMIC_PCRE@</td>
|
||||
<td>Dynamically link to the PCRE library. This is set automatically
|
||||
by <code>./configure</code> if you do not have libpcre installed.
|
||||
Dynamically linking to an external libpcre is recommended as the one that is distributed
|
||||
with Privoxy itself is outdated and lacks various features and bug-fixes you may be interested in.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_FAST_REDIRECTS</code></td>
|
||||
<td>@if-FEATURE_FAST_REDIRECTS-then@ Yes @else-not-FEATURE_FAST_REDIRECTS@ No @endif-FEATURE_FAST_REDIRECTS@</td>
|
||||
<td>Allows the +fast-redirects action, to bypass redirect and logging scripts.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_FORCE_LOAD</code></td>
|
||||
<td>@if-FEATURE_FORCE_LOAD-then@ Yes @else-not-FEATURE_FORCE_LOAD@ No @endif-FEATURE_FORCE_LOAD@</td>
|
||||
<td>Allows bypassing all filtering for a single page using the prefix
|
||||
<q><code>@force-prefix@</code></q>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_GRACEFUL_TERMINATION</code></td>
|
||||
<td>@if-FEATURE_GRACEFUL_TERMINATION-then@ Yes @else-not-FEATURE_GRACEFUL_TERMINATION@ No @endif-FEATURE_GRACEFUL_TERMINATION@</td>
|
||||
<td>Allows to shutdown Privoxy through the web interface.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_IMAGE_BLOCKING</code></td>
|
||||
<td>@if-FEATURE_IMAGE_BLOCKING-then@ Yes @else-not-FEATURE_IMAGE_BLOCKING@ No @endif-FEATURE_IMAGE_BLOCKING@</td>
|
||||
<td>Allows the +handle-as-image action, to send <q>blocked</q> images instead of HTML.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_IPV6_SUPPORT</code></td>
|
||||
<td>@if-FEATURE_IPV6_SUPPORT-then@ Yes @else-not-FEATURE_IPV6_SUPPORT@ No @endif-FEATURE_IPV6_SUPPORT@</td>
|
||||
<td>
|
||||
Allows IPv6 addresses in incoming requests, when resolving domains to
|
||||
IP addresses and in the configuration files.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_IMAGE_DETECT_MSIE</code></td>
|
||||
<td>@if-FEATURE_IMAGE_DETECT_MSIE-then@ Yes @else-not-FEATURE_IMAGE_DETECT_MSIE@ No @endif-FEATURE_IMAGE_DETECT_MSIE@</td>
|
||||
<td>Enables automatic detection of image and HTML requests from
|
||||
Microsoft Internet Explorer users, overriding the setting of
|
||||
+image in the actions file.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_NO_GIFS</code></td>
|
||||
<td>@if-FEATURE_NO_GIFS-then@ Yes @else-not-FEATURE_NO_GIFS@ No @endif-FEATURE_NO_GIFS@</td>
|
||||
<td>Use PNG instead of GIF for the built-in images.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_PTHREAD</code></td>
|
||||
<td>@if-FEATURE_PTHREAD-then@ Yes @else-not-FEATURE_PTHREAD@ No @endif-FEATURE_PTHREAD@</td>
|
||||
<td>Use POSIX threads rather than native threads</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_STATISTICS</code></td>
|
||||
<td>@if-FEATURE_STATISTICS-then@ Yes @else-not-FEATURE_STATISTICS@ No @endif-FEATURE_STATISTICS@</td>
|
||||
<td>Enables the statistics function.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_STRPTIME_SANITY_CHECKS</code></td>
|
||||
<td>@if-FEATURE_STRPTIME_SANITY_CHECKS-then@ Yes @else-not-FEATURE_STRPTIME_SANITY_CHECKS@ No @endif-FEATURE_STRPTIME_SANITY_CHECKS@</td>
|
||||
<td>Try to work around broken strptime() implementations.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_TOGGLE</code></td>
|
||||
<td>@if-FEATURE_TOGGLE-then@ Yes @else-not-FEATURE_TOGGLE@ No @endif-FEATURE_TOGGLE@</td>
|
||||
<td>Allow Privoxy to be <q>disabled</q> so it is just a normal non-blocking non-anonymizing proxy.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_TRUST</code></td>
|
||||
<td>@if-FEATURE_TRUST-then@ Yes @else-not-FEATURE_TRUST@ No @endif-FEATURE_TRUST@</td>
|
||||
<td>Allows the use of trust files.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>FEATURE_ZLIB</code></td>
|
||||
<td>@if-FEATURE_ZLIB-then@ Yes @else-not-FEATURE_ZLIB@ No @endif-FEATURE_ZLIB@</td>
|
||||
<td>Allows to decompress gzip and zlib compressed documents for filtering.
|
||||
Requires external zlib library and hasn't been tested on all platforms.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
146
1_9.r18_plugin/ad_plug/privoxy/templates/show-status-file
Normal file
146
1_9.r18_plugin/ad_plug/privoxy/templates/show-status-file
Normal file
@ -0,0 +1,146 @@
|
||||
##########################################################
|
||||
#
|
||||
# Show-Status-CGI Output template for Privoxy.
|
||||
# (Variant for the show-file mode)
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# file-description:
|
||||
# A descriptive name for the file being shown
|
||||
# contents:
|
||||
# The contents of the file being shown
|
||||
# filepath
|
||||
# The complete filename of the file being shown
|
||||
#
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# This is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy@@my-hostname@: Contents of @file-description@</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Contents of @file-description@ @filepath@</h2>
|
||||
<pre>@contents@</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
292
1_9.r18_plugin/ad_plug/privoxy/templates/show-url-info
Normal file
292
1_9.r18_plugin/ad_plug/privoxy/templates/show-url-info
Normal file
@ -0,0 +1,292 @@
|
||||
########################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/templates/show-url-info,v $
|
||||
#
|
||||
# Purpose : Template for Privoxy's show-url-info CGI page.
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2001-2007 the SourceForge
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# This program is free software; you can redistribute it
|
||||
# and/or modify it under the terms of the GNU General
|
||||
# Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at
|
||||
# your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will
|
||||
# be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# The GNU General Public License should be included with
|
||||
# this file. If not, you can view it at
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
# or write to the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#########################################################################
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach Privoxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the Privoxy administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for Privoxy's "main menu" builtin CGI page
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# Privoxy's version number
|
||||
# code-status:
|
||||
# Privoxy's development status: "alpha", "beta", or "stable".
|
||||
# homepage:
|
||||
# The Privoxy web site.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
# url-given:
|
||||
# The CGI was called with a url parameter. In that case, the
|
||||
# following symbols are available:
|
||||
# url:
|
||||
# The given URL
|
||||
# default:
|
||||
# The system default for actions
|
||||
# matches:
|
||||
# The list of all matches in the actions file that this URL
|
||||
# produced, along with the actions that were triggered by
|
||||
# these matches
|
||||
# final:
|
||||
# The actions that are associated with the URL at the end of
|
||||
# the matching process
|
||||
# no-forwarder: Requests to url will be made directly.
|
||||
# http-forwarder:
|
||||
# Requests to url will be made through a HTTP proxy
|
||||
# forward-host:
|
||||
# The IP address or its hostname
|
||||
# forward-port.
|
||||
# The proxy port
|
||||
# socks-forwarder:
|
||||
# Requests to url will be made through a socks proxy
|
||||
# socks-type:
|
||||
# The socks type: socks4 or socks4a
|
||||
# gateway-host:
|
||||
# The IP address or its hostname
|
||||
# gateway-port:
|
||||
# The proxy port.
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy@@my-hostname@ URL Info</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="Privoxy URL Info" href="/url-info-osd.xml">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<!-- @if-url-given-start -->
|
||||
<tr>
|
||||
<td class="box">
|
||||
<!-- @if-valid-url-start -->
|
||||
<h2>Forwarding settings:</h2>
|
||||
<p>
|
||||
Requests for <a href="@url@">@url@</a> will be <!--
|
||||
|
||||
# "Interesting" formatting to prevent white space at the end of the sentence.
|
||||
|
||||
@if-no-forwarder-start -->
|
||||
|
||||
made <b>directly</b>, no forwarding settings apply<!--
|
||||
|
||||
if-no-forwarder-end@--><!--
|
||||
@if-http-forwarder-start --><!-- @if-socks-forwarder-start -->
|
||||
|
||||
first <!--
|
||||
|
||||
if-socks-forwarder-end@ --><!-- if-http-forwarder-end@ --><!--
|
||||
@if-socks-forwarder-start -->
|
||||
|
||||
forwarded through <b>@socks-type@-proxy @gateway-host@:@gateway-port@</b><!--
|
||||
|
||||
if-socks-forwarder-end@ --><!--
|
||||
@if-http-forwarder-start --><!-- @if-socks-forwarder-start -->
|
||||
|
||||
and then <!--
|
||||
|
||||
if-socks-forwarder-end@ --><!-- if-http-forwarder-end@ --><!--
|
||||
@if-http-forwarder-start -->
|
||||
|
||||
forwarded through <b>HTTP-proxy @forward-host@:@forward-port@</b><!--
|
||||
|
||||
if-http-forwarder-end@ -->.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="box">
|
||||
<!-- @if-https-start -->
|
||||
<h2>NOTE:</h2>
|
||||
<p>This is a HTTPS URL, so the part after the "/" is ignored
|
||||
as Privoxy doesn't see the path for real HTTPS requests either.</p>
|
||||
<!-- if-https-end@ -->
|
||||
<!-- if-valid-url-end@ -->
|
||||
<h2>Matches for <a href="@url@">@url@</a>:</h2>
|
||||
@matches@
|
||||
<!-- @if-valid-url-start -->
|
||||
<!-- @if-cgi-editor-is-disabled-start -->
|
||||
<p>
|
||||
The CGI editor is currently disabled, thus no edit buttons are shown.<br>
|
||||
Please have a look at the
|
||||
<a href="@user-manual@config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions documentation</a>
|
||||
to learn how to enable it and what the risks are.
|
||||
</p>
|
||||
<!-- if-cgi-editor-is-disabled-end@ -->
|
||||
<!-- @if-valid-url-end -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- @if-valid-url-start -->
|
||||
<!-- @if-filters-might-be-ineffective-start -->
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>Warning:</h2>
|
||||
<p>
|
||||
This Privoxy version has been built without zlib support,
|
||||
<strong>content filters will not work if the server sends compressed content.</strong>
|
||||
Consider enabling the <a title="prevent-compression documentation"
|
||||
href="@user-manual@actions-file.html#PREVENT-COMPRESSION">prevent-compression</a>
|
||||
action for this URL or rebuild Privoxy with zlib support.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-filters-might-be-ineffective-end@ -->
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Final results:</h2>
|
||||
<b>@final@</b>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-valid-url-end@ -->
|
||||
<!-- if-url-given-end@ -->
|
||||
|
||||
<!-- @if-privoxy-is-toggled-off-start -->
|
||||
|
||||
<tr>
|
||||
<td class="warning">
|
||||
<h2>Warning:</h2>
|
||||
<p>
|
||||
<strong>Privoxy is currently toggled off. Matching actions will not apply
|
||||
unless you <a href="@default-cgi@toggle?set=enable">toggle Privoxy on</a> first.</strong>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-privoxy-is-toggled-off-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Look up the actions for a
|
||||
<!-- @if-url-given-start -->new<!-- if-url-given-end@ -->
|
||||
URL:</h2>
|
||||
<form method="GET" action="@default-cgi@show-url-info">
|
||||
<p>
|
||||
<input type="text" name="url" size="80" value="@url@" class="url">
|
||||
<input type="submit" value="Go">
|
||||
</p>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
159
1_9.r18_plugin/ad_plug/privoxy/templates/show-version
Normal file
159
1_9.r18_plugin/ad_plug/privoxy/templates/show-version
Normal file
@ -0,0 +1,159 @@
|
||||
##########################################################
|
||||
#
|
||||
# Show-Status-CGI Output template for Privoxy.
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# redirect-url:
|
||||
# The URL to a script that will redirect to the Privoxy
|
||||
# documentation for a given item
|
||||
# invocation:
|
||||
# The command line with whitch Privoxy was invoked
|
||||
# options:
|
||||
# The options read from the configfile, linked to their
|
||||
# explanations, plus warnings if parsing acl or forward
|
||||
# statements produced errors.
|
||||
# sourceversions:
|
||||
# A HTML-formatted list of the individual source file cvs versions
|
||||
# defines:
|
||||
# A HTML-formatted list of all conditional #defines used when
|
||||
# Privoxy was compiled
|
||||
#
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# This is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
# sourceversions
|
||||
# The versions.
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Privoxy@@my-hostname@: Detailed proxy version information</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Source code versions:</h2>
|
||||
<p><i>(Note: This information is only relevant if you checked out Privoxy from CVS
|
||||
and compiled it yourself. If you downloaded a binary, .exe, RPM, or a .tgz file,
|
||||
then when you ask for support just mention the version number <b>@version@</b>
|
||||
and the type of download you got.)</i>
|
||||
</p>
|
||||
<pre>@sourceversions@</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
145
1_9.r18_plugin/ad_plug/privoxy/templates/toggle
Normal file
145
1_9.r18_plugin/ad_plug/privoxy/templates/toggle
Normal file
@ -0,0 +1,145 @@
|
||||
##########################################################
|
||||
#
|
||||
# Toggle Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
# @if-enabled-display-then@ on @else-not-enabled-display@ off @endif-enabled-display@
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@ - Privoxy@@my-hostname@</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="title">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>Privoxy is @if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@</h2>
|
||||
<p>When enabled, Privoxy performs its magic - blocking
|
||||
adverts, filtering cookies, regex-filtering, etc.</p>
|
||||
<p>When disabled, Privoxy behaves as a normal HTTP proxy,
|
||||
and will not affect your web browsing.</p>
|
||||
<p><a href="@default-cgi@toggle?set=@if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@">Click
|
||||
here</a> to @if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@ Privoxy.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
91
1_9.r18_plugin/ad_plug/privoxy/templates/toggle-mini
Normal file
91
1_9.r18_plugin/ad_plug/privoxy/templates/toggle-mini
Normal file
@ -0,0 +1,91 @@
|
||||
##########################################################
|
||||
#
|
||||
# Toggle Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# this is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
# @if-enabled-display-then@ on @else-not-enabled-display@ off @endif-enabled-display@
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@ - Privoxy@@my-hostname@</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
|
||||
<link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p class="whiteframed">
|
||||
<a href="@default-cgi@">Privoxy</a> is
|
||||
<b>@if-enabled-display-then@enabled@else-not-enabled-display@disabled@endif-enabled-display@</b>.
|
||||
<br><a href="@default-cgi@toggle?mini=y&set=@if-enabled-display-then@disable@else-not-enabled-display@enable@endif-enabled-display@"
|
||||
>@if-enabled-display-then@[Disable]@else-not-enabled-display@[Enable]@endif-enabled-display@</a> |
|
||||
<a href="javascript:window.close();">[Close]</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
191
1_9.r18_plugin/ad_plug/privoxy/templates/untrusted
Normal file
191
1_9.r18_plugin/ad_plug/privoxy/templates/untrusted
Normal file
@ -0,0 +1,191 @@
|
||||
##########################################################
|
||||
#
|
||||
# "Untrusted" Error Output template for Privoxy.
|
||||
#
|
||||
#
|
||||
# USING HTML TEMPLATES:
|
||||
# ---------------------
|
||||
#
|
||||
# Template files are written win plain HTML, with a few
|
||||
# additions:
|
||||
#
|
||||
# - Lines that start with a '#' character like this one
|
||||
# are ignored
|
||||
#
|
||||
# - Each item in the below list of exported symbols will
|
||||
# be replaced by dynamically generated text, if they
|
||||
# are enclosed in '@'-characters. E.g. The string @version@
|
||||
# will be replaced by the version number of Privoxy.
|
||||
#
|
||||
# - One special application of this is to make whole blocks
|
||||
# of the HTML template disappear if the condition <name>
|
||||
# is not given. Simply enclose the block between the two
|
||||
# strings @if-<name>start and if-<name>-end@. The strings
|
||||
# should be placed in HTML comments (<!-- -->), so the
|
||||
# html structure won't be messed when the magic happens.
|
||||
#
|
||||
# USABLE SYMBOLS IN THIS TEMPLATE:
|
||||
# --------------------------------
|
||||
#
|
||||
# my-ip-addr:
|
||||
# The IP-address that the client used to reach this proxy
|
||||
# my-hostname:
|
||||
# The hostname associated with my-ip-addr
|
||||
# admin-address:
|
||||
# The email address of the pxoxy's administrator, as configured
|
||||
# in the config file
|
||||
# default-cgi:
|
||||
# The URL for the "main menu" builtin CGI of this proxy
|
||||
# menu:
|
||||
# List of <li> elements linking to the other available CGIs
|
||||
# version:
|
||||
# The version number of the proxy software
|
||||
# code-status:
|
||||
# The development status of the proxy software: "alpha", "beta",
|
||||
# or "stable".
|
||||
# homepage:
|
||||
# The URL of the SourceForge ijbswa project, who maintains this
|
||||
# software.
|
||||
#
|
||||
# hostport:
|
||||
# The host and port part of the request that lead to this problem
|
||||
# path:
|
||||
# The path part of the request that lead to this problem
|
||||
# referrer:
|
||||
# The referrer of the request that lead to this problem
|
||||
# trusted-referrers:
|
||||
# An HTML-formatted list of referrers that are marked as trusted in
|
||||
# the trustfile
|
||||
#
|
||||
#
|
||||
# CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# unstable:
|
||||
# This is an alpha or beta release of the proxy software
|
||||
# have-adminaddr-info:
|
||||
# An e-mail address for the local Privoxy adminstrator has
|
||||
# been specified and is available through the "admin-address"
|
||||
# symbol
|
||||
# have-proxy-info:
|
||||
# A URL for online documentation about this proxy has been
|
||||
# specified and is available through the "proxy-info-url"
|
||||
# symbol
|
||||
# have-help-info:
|
||||
# If either have-proxy-info is true or have-adminaddr-info is
|
||||
# true, have-help-info is true. Used to conditionally include
|
||||
# a grey box for any and all help info.
|
||||
# force-support:
|
||||
# Privoxy has been compiled with support for forced loading
|
||||
# of blocked content. In that case, the symbol "force-prefix" is
|
||||
# avaiable, which translates to the FORCE_PREFIX
|
||||
# have-trust-info:
|
||||
# There were URLs with info on the trust policy defined in the config
|
||||
# file. In this case the list of URLs is available through the
|
||||
# "trust-info" symbol.
|
||||
#
|
||||
#
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
|
||||
|
||||
<head>
|
||||
<title>Untrusted request (Privoxy@@my-hostname@)</title>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
|
||||
<style type="text/css">
|
||||
#include cgi-style.css
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="status">
|
||||
UNTRUSTED
|
||||
</td>
|
||||
<td class="title" style="width: 100%">
|
||||
|
||||
#include mod-title
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-unstable-start -->
|
||||
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
|
||||
#include mod-unstable-warning
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-unstable-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="warning" colspan="2">
|
||||
<h2>Request for untrusted URL</h2>
|
||||
<p>Your request for <b>@protocol@@hostport@@path@</b> was blocked,
|
||||
because neither the request URL itself, nor its referrer
|
||||
(<b>@referrer@</b>) were trusted.
|
||||
</p>
|
||||
<!-- @if-force-support-start -->
|
||||
<p>(You can <a href="@protocol@@hostport@@force-prefix@@path@">go there anyway</a>.)</p>
|
||||
<!-- if-force-support-end@ -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>The following referrers are trusted:</h2>
|
||||
<ul>
|
||||
@trusted-referrers@
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-trust-info-start -->
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More information on the trust policy:</h2>
|
||||
<p>You can learn more about what this means and what you may be able to do about it by
|
||||
reading the following documents:
|
||||
</p>
|
||||
<ol>
|
||||
@trust-info@
|
||||
</ol>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-trust-info-end@ -->
|
||||
|
||||
<tr>
|
||||
<td class="box" colspan="2">
|
||||
<h2>More Privoxy:</h2>
|
||||
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-support-and-service
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- @if-have-help-info-start -->
|
||||
<tr>
|
||||
<td class="info" colspan="2">
|
||||
|
||||
#include mod-local-help
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if-have-help-info-end@ -->
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
14
1_9.r18_plugin/ad_plug/privoxy/templates/url-info-osd.xml
Normal file
14
1_9.r18_plugin/ad_plug/privoxy/templates/url-info-osd.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<ShortName>Privoxy URL Info</ShortName>
|
||||
<Description>
|
||||
Enter a URL to see which Privoxy actions apply.
|
||||
Only works while the browser is configured to use Privoxy.
|
||||
</Description>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
<OutputEncoding>UTF-8</OutputEncoding>
|
||||
<Developer>Privoxy Team</Developer>
|
||||
<Contact>ijbswa-developers@lists.sourceforge.net</Contact>
|
||||
<Image width="16" height="16" type="image/x-icon">@default-cgi@favicon.ico</Image>
|
||||
<Url type="text/html" method="GET" template="@default-cgi@show-url-info?url={searchTerms}"/>
|
||||
</OpenSearchDescription>
|
197
1_9.r18_plugin/ad_plug/privoxy/user.action
Normal file
197
1_9.r18_plugin/ad_plug/privoxy/user.action
Normal file
@ -0,0 +1,197 @@
|
||||
######################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/user.action,v $
|
||||
#
|
||||
# $Id: user.action,v 1.13 2011/11/06 11:36:01 fabiankeil Exp $
|
||||
#
|
||||
# Purpose : User-maintained actions file, see
|
||||
# http://www.privoxy.org/user-manual/actions-file.html
|
||||
#
|
||||
######################################################################
|
||||
|
||||
# This is the place to add your personal exceptions and additions to
|
||||
# the general policies as defined in default.action. (Here they will be
|
||||
# safe from updates to default.action.) Later defined actions always
|
||||
# take precedence, so anything defined here should have the last word.
|
||||
|
||||
# See http://www.privoxy.org/user-manual/actions-file.html, or the
|
||||
# comments in default.action, for an explanation of what an "action" is
|
||||
# and what each action does.
|
||||
|
||||
# The examples included here either use bogus sites, or have the actual
|
||||
# rules commented out (with the '#' character). Useful aliases are
|
||||
# included in the top section as a convenience.
|
||||
|
||||
#############################################################################
|
||||
# Aliases
|
||||
#############################################################################
|
||||
{{alias}}
|
||||
#############################################################################
|
||||
#
|
||||
# You can define a short form for a list of permissions - e.g., instead
|
||||
# of "-crunch-incoming-cookies -crunch-outgoing-cookies -filter -fast-redirects",
|
||||
# you can just write "shop". This is called an alias.
|
||||
#
|
||||
# Currently, an alias can contain any character except space, tab, '=', '{'
|
||||
# or '}'.
|
||||
# But please use only 'a'-'z', '0'-'9', '+', and '-'.
|
||||
#
|
||||
# Alias names are not case sensitive.
|
||||
#
|
||||
# Aliases beginning with '+' or '-' may be used for system action names
|
||||
# in future releases - so try to avoid alias names like this. (e.g.
|
||||
# "+crunch-all-cookies" below is not a good name)
|
||||
#
|
||||
# Aliases must be defined before they are used.
|
||||
#
|
||||
# These aliases just save typing later:
|
||||
#
|
||||
+crunch-all-cookies = +crunch-incoming-cookies +crunch-outgoing-cookies
|
||||
-crunch-all-cookies = -crunch-incoming-cookies -crunch-outgoing-cookies
|
||||
allow-all-cookies = -crunch-all-cookies -session-cookies-only -filter{content-cookies}
|
||||
allow-popups = -filter{all-popups} -filter{unsolicited-popups}
|
||||
+block-as-image = +block{Blocked image request.} +handle-as-image
|
||||
-block-as-image = -block
|
||||
|
||||
# These aliases define combinations of actions
|
||||
# that are useful for certain types of sites:
|
||||
#
|
||||
fragile = -block -crunch-all-cookies -filter -fast-redirects -hide-referer -prevent-compression
|
||||
shop = -crunch-all-cookies allow-popups
|
||||
|
||||
# Your favourite blend of filters:
|
||||
#
|
||||
myfilters = +filter{html-annoyances} +filter{js-annoyances} +filter{all-popups}\
|
||||
+filter{webbugs} +filter{banners-by-size}
|
||||
|
||||
# Allow ads for selected useful free sites:
|
||||
#
|
||||
allow-ads = -block -filter{banners-by-size} -filter{banners-by-link}
|
||||
#... etc. Customize to your heart's content.
|
||||
|
||||
## end aliases ########################################################
|
||||
#######################################################################
|
||||
|
||||
# Begin examples: #####################################################
|
||||
|
||||
# Say you have accounts on some sites that you visit regularly, and you
|
||||
# don't want to have to log in manually each time. So you'd like to allow
|
||||
# persistent cookies for these sites. The allow-all-cookies alias defined
|
||||
# above does exactly that, i.e. it disables crunching of cookies in any
|
||||
# direction, and the processing of cookies to make them only temporary.
|
||||
#
|
||||
{ allow-all-cookies }
|
||||
#.sourceforge.net
|
||||
#sunsolve.sun.com
|
||||
#slashdot.org
|
||||
#.yahoo.com
|
||||
#.msdn.microsoft.com
|
||||
#.redhat.com
|
||||
|
||||
# Say the site where you do your homebanking needs to open popup
|
||||
# windows, but you have chosen to kill popups uncoditionally by default.
|
||||
# This will allow it for your-example-bank.com:
|
||||
#
|
||||
{ -filter{all-popups} }
|
||||
.banking.example.com
|
||||
|
||||
# Some hosts and some file types you may not want to filter for
|
||||
# various reasons:
|
||||
#
|
||||
{ -filter }
|
||||
|
||||
# Technical documentation is likely to contain strings that might
|
||||
# erroneously get altered by the JavaScript-oriented filters:
|
||||
#
|
||||
#.tldp.org
|
||||
#/(.*/)?selfhtml/
|
||||
|
||||
# And this stupid host sends streaming video with a wrong MIME type,
|
||||
# so that Privoxy thinks it is getting HTML and starts filtering:
|
||||
#
|
||||
stupid-server.example.com/
|
||||
|
||||
|
||||
# Example of a simple "block" action. Say you've seen an ad on your
|
||||
# favourite page on example.com that you want to get rid of. You have
|
||||
# right-clicked the image, selected "copy image location" and pasted
|
||||
# the URL below while removing the leading http://, into a { +block{reason} }
|
||||
# section. Note that { +handle-as-image } need not be specified, since
|
||||
# all URLs ending in .gif will be tagged as images by the general rules
|
||||
# as set in default.action anyway:
|
||||
#
|
||||
{ +block{Nasty ads.} }
|
||||
www.example.com/nasty-ads/sponsor.gif
|
||||
|
||||
# The URLs of dynamically generated banners, especially from large banner
|
||||
# farms, often don't use the well-known image file name extensions, which
|
||||
# makes it impossible for Privoxy to guess the file type just by looking
|
||||
# at the URL.
|
||||
# You can use the +block-as-image alias defined above for these cases.
|
||||
# Note that objects which match this rule but then turn out NOT to be an
|
||||
# image are typically rendered as a "broken image" icon by the browser.
|
||||
# Use cautiously.
|
||||
#
|
||||
{ +block-as-image }
|
||||
#.doubleclick.net
|
||||
#/Realmedia/ads/
|
||||
#ar.atwola.com/
|
||||
|
||||
# Now you noticed that the default configuration breaks Forbes
|
||||
# Magazine, but you were too lazy to find out which action is the
|
||||
# culprit, and you were again too lazy to give feedback, so you just
|
||||
# used the fragile alias on the site, and -- whoa! -- it worked. The
|
||||
# 'fragile' aliases disables those actions that are most likely to break
|
||||
# a site. Also, good for testing purposes to see if it is Privoxy that
|
||||
# is causing the problem or not.
|
||||
#
|
||||
{ fragile }
|
||||
#.forbes.com
|
||||
|
||||
# Here are some sites we wish to support, and we will allow their ads
|
||||
# through.
|
||||
#
|
||||
{ allow-ads }
|
||||
#.sourceforge.net
|
||||
#.slashdot.org
|
||||
#.osdn.net
|
||||
|
||||
# user.action is generally the best place to define exceptions and
|
||||
# additions to the default policies of default.action. Some actions are
|
||||
# safe to have their default policies set here though. So let's set a
|
||||
# default policy to have a 'blank' image as opposed to the checkerboard
|
||||
# pattern for ALL sites. '/' of course matches all URLs.
|
||||
# patterns:
|
||||
#
|
||||
{ +set-image-blocker{blank} }
|
||||
#/
|
||||
|
||||
# Enable the following section (not the regression-test directives)
|
||||
# to rewrite and redirect click-tracking URLs on news.google.com.
|
||||
# Disabling JavaScript should work as well and probably works more reliably.
|
||||
#
|
||||
# Redirected URL = http://news.google.com/news/url?ct2=us%2F0_0_s_1_1_a&sa=t&usg=AFQjCNHJWPc7ffoSXPSqBRz55jDA0KgxOQ&cid=8797762374160&url=http%3A%2F%2Fonline.wsj.com%2Farticle%2FSB10001424052970204485304576640791304008536.html&ei=YcqeTsymCIjxggf8uQE&rt=HOMEPAGE&vm=STANDARD&bvm=section&did=-6537064229385238098
|
||||
# Redirect Destination = http://online.wsj.com/article/SB10001424052970204485304576640791304008536.html
|
||||
# Ignore = Yes
|
||||
#
|
||||
#{+fast-redirects{check-decoded-url}}
|
||||
#news.google.com/news/url.*&url=http.*&
|
||||
|
||||
# Enable the following section (not the regression-test directives)
|
||||
# to block various Facebook "like" and similar tracking URLs. At the
|
||||
# time this section was added it was reported to not break Facebook
|
||||
# itself but this may have changed by the time you read this. This URL
|
||||
# list is probably incomplete and if you don't have an account anyway,
|
||||
# you may prefer to block the whole domain.
|
||||
#
|
||||
# Blocked URL = http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2Farstechnica&width=300&colorscheme=light&show_faces=false&stream=false&header=false&height=62&border_color=%23FFFFFF
|
||||
# Ignore = Yes
|
||||
# Blocked URL = http://www.facebook.com/plugins/activity.php?site=arstechnica.com&width=300&height=370&header=false&colorscheme=light&recommendations=false&border_color=%23FFFFFF
|
||||
# Ignore = Yes
|
||||
# Blocked URL = http://www.facebook.com/plugins/fan.php?api_key=368513495882&connections=10&height=250&id=8304333127&locale=en_US&sdk=joey&stream=false&width=377
|
||||
# Ignore = Yes
|
||||
# Blocked URL = http://www.facebook.com/plugins/like.php?api_key=368513495882&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13997452c%26origin%3Dhttp%253A%252F%252Fonline.wsj.com%252Ff1b037e354%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fonline.wsj.com%2Farticle%2FSB10001424052970204485304576640791304008536.html&layout=button_count&locale=en_US&node_type=link&ref=wsj_share_FB&sdk=joey&send=false&show_faces=false&width=90
|
||||
# Ignore = Yes
|
||||
#
|
||||
#{+block{Facebook "like" and similar tracking URLs.}}
|
||||
#www.facebook.com/(extern|plugins)/(login_status|like(box)?|activity|fan)\.php
|
75
1_9.r18_plugin/ad_plug/privoxy/user.filter
Normal file
75
1_9.r18_plugin/ad_plug/privoxy/user.filter
Normal file
@ -0,0 +1,75 @@
|
||||
# ********************************************************************
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/user.filter,v $
|
||||
#
|
||||
# $Id: user.filter,v 1.3 2008/05/21 20:17:03 fabiankeil Exp $
|
||||
#
|
||||
# Purpose : Rules to process the content of web pages
|
||||
#
|
||||
# Copyright : Written by and Copyright (C) 2006-2008 the
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# We value your feedback. However, to provide you with the best support,
|
||||
# please note:
|
||||
#
|
||||
# * Use the support forum to get help:
|
||||
# http://sourceforge.net/tracker/?group_id=11118&atid=211118
|
||||
# * Submit bugs only thru our bug forum:
|
||||
# http://sourceforge.net/tracker/?group_id=11118&atid=111118
|
||||
# Make sure that the bug has not already been submitted. Please try
|
||||
# to verify that it is a Privoxy bug, and not a browser or site
|
||||
# bug first. If you are using your own custom configuration, please
|
||||
# try the stock configs to see if the problem is a configuration
|
||||
# related bug. And if not using the latest development snapshot,
|
||||
# please try the latest one. Or even better, CVS sources.
|
||||
# * Submit feature requests only thru our feature request forum:
|
||||
# http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse
|
||||
#
|
||||
# For any other issues, feel free to use the mailing lists:
|
||||
# http://sourceforge.net/mail/?group_id=11118
|
||||
#
|
||||
# Anyone interested in actively participating in development and related
|
||||
# discussions can join the appropriate mailing list here:
|
||||
# http://sourceforge.net/mail/?group_id=11118. Archives are available
|
||||
# here too.
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Syntax:
|
||||
#
|
||||
# Generally filters start with a line like "FILTER: name description".
|
||||
# They are then referrable from the actionsfile with +filter{name}
|
||||
#
|
||||
# FILTER marks a filter as content filter, other filter
|
||||
# types are CLIENT-HEADER-FILTER, CLIENT-HEADER-TAGGER,
|
||||
# SERVER-HEADER-FILTER and SERVER-HEADER-TAGGER.
|
||||
#
|
||||
# Inside the filters, write one Perl-Style substitution (job) per line.
|
||||
# Jobs that precede the first FILTER: line are ignored.
|
||||
#
|
||||
# For Details see the pcrs manpage contained in this distribution.
|
||||
# (and the perlre, perlop and pcre manpages)
|
||||
#
|
||||
# Note that you are free to choose the delimiter as you see fit.
|
||||
#
|
||||
# Note2: In addition to the Perl options gimsx, the following nonstandard
|
||||
# options are supported:
|
||||
#
|
||||
# 'U' turns the default to ungreedy matching. Add ? to quantifiers to
|
||||
# switch back to greedy.
|
||||
#
|
||||
# 'T' (trivial) prevents parsing for backreferences in the substitute.
|
||||
# Use if you want to include text like '$&' in your substitute without
|
||||
# quoting.
|
||||
#
|
||||
# 'D' (Dynamic) allows the use of variables. Supported variables are:
|
||||
# $host, $origin (the IP address the request came from), $path and $url.
|
||||
#
|
||||
# Note that '$' is a bad choice as delimiter for dynamic filters as you
|
||||
# might end up with unintended variables if you use a variable name
|
||||
# directly after the delimiter. Variables will be resolved without
|
||||
# escaping anything, therefore you also have to be careful not to chose
|
||||
# delimiters that appear in the replacement text. For example '<' should
|
||||
# be save, while '?' will sooner or later cause conflicts with $url.
|
||||
#
|
||||
#################################################################################
|
85
1_9.r18_plugin/ad_plug/privoxy/user.trust
Normal file
85
1_9.r18_plugin/ad_plug/privoxy/user.trust
Normal file
@ -0,0 +1,85 @@
|
||||
######################################################################
|
||||
#
|
||||
# File : $Source: /cvsroot/ijbswa/current/trust,v $
|
||||
#
|
||||
# $Id: trust,v 1.6 2007/05/14 17:19:42 fabiankeil Exp $
|
||||
#
|
||||
# Purpose : Trustfiles are an experimental feature and can be used
|
||||
# to build "whitelists" (versus the usual "blacklists"
|
||||
# techniques).
|
||||
#
|
||||
# Copyright : Written by and Copyright
|
||||
# Privoxy team. http://www.privoxy.org/
|
||||
#
|
||||
# Based on the Internet Junkbuster originally written
|
||||
# by and Copyright (C) 1997 Anonymous Coders and
|
||||
# Junkbusters Corporation. http://www.junkbusters.com
|
||||
#
|
||||
# We value your feedback. However, to provide you with the best support,
|
||||
# please note:
|
||||
#
|
||||
# * Use the support forum to get help:
|
||||
# http://sourceforge.net/tracker/?group_id=11118&atid=211118
|
||||
# * Submit bugs only thru our bug forum:
|
||||
# http://sourceforge.net/tracker/?group_id=11118&atid=111118
|
||||
# Make sure that the bug has not already been submitted. Please try
|
||||
# to verify that it is a Privoxy bug, and not a browser or site
|
||||
# bug first. If you are using your own custom configuration, please
|
||||
# try the stock configs to see if the problem is a configuration
|
||||
# related bug. And if not using the latest development snapshot,
|
||||
# please try the latest one. Or even better, CVS sources.
|
||||
# * Submit feature requests only thru our feature request tracker:
|
||||
# http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse
|
||||
#
|
||||
# For any other issues, feel free to use the mailing lists:
|
||||
# http://sourceforge.net/mail/?group_id=11118
|
||||
#
|
||||
# Anyone interested in actively participating in development and related
|
||||
# discussions can join the appropriate mailing list here:
|
||||
# http://sourceforge.net/mail/?group_id=11118. Archives are available
|
||||
# here too.
|
||||
#
|
||||
######################################################################
|
||||
#
|
||||
# Sample Trustfile for Privoxy
|
||||
|
||||
# For this file to have any effect, the line in the main config file beginning
|
||||
# with "trustfile" must be uncommented, with the name of this file following the
|
||||
# word "trustfile".
|
||||
|
||||
# Trustfiles are an experimental feature used for building "whitelists"
|
||||
# of "trusted" sites (versus the usual "blacklists" technique). For more
|
||||
# detail, see http://www.privoxy.org/user-manual/config.html#TRUSTFILE.
|
||||
|
||||
# List trusted domains here. The default is to block any URL that is NOT
|
||||
# referenced. Access to trusted domains includes all paths within that
|
||||
# domain.
|
||||
|
||||
# Preceding a domain with a '+' character will designate that domain
|
||||
# as a "trusted referrer", meaning any requests whose HTTP "Referer" headers
|
||||
# contain an URL from that domain will be allowed, and the previously untrusted
|
||||
# host will be dynamically added to this file. Thus, this builds a "white-list"
|
||||
# of hosts the user is allowed to visit.
|
||||
|
||||
# Note this means that the file will grow with use!
|
||||
|
||||
# Also note that you can only trust referrers if you control the user's
|
||||
# system and make sure that there are no programs available that allow
|
||||
# to set arbitrary headers.
|
||||
|
||||
# Preceding the domain with '~' character allows access to that domain only
|
||||
# (including all paths within that domain), but does not allow access to links
|
||||
# to other, outside domains. Sites that are added dynamically by trusted
|
||||
# referrers will include the '~' character, and thus do not become trusted
|
||||
# referrers themselves.
|
||||
|
||||
# Example: to allow example.com and to white-list domains that appear to
|
||||
# be reached through links from example.com, uncomment this line:
|
||||
|
||||
# +example.com
|
||||
|
||||
# The next two lines make sure that the user can access Privoxy's
|
||||
# CGI pages, without automatically trusting their links.
|
||||
|
||||
~config.privoxy.org
|
||||
~p.p
|
157
1_9.r18_plugin/ad_plug/privoxy_code/privoxy
Executable file
157
1_9.r18_plugin/ad_plug/privoxy_code/privoxy
Executable file
@ -0,0 +1,157 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=80
|
||||
STOP=20
|
||||
|
||||
PIDFILE=/var/run/privoxy.pid
|
||||
CFGFILE=/var/etc/privoxy.conf
|
||||
CFGTEMP=/var/etc/privoxy.conf.tmp
|
||||
|
||||
_uci2conf() {
|
||||
# redefined callback for options when calling config_load
|
||||
option_cb()
|
||||
{
|
||||
# $1 name of variable
|
||||
# $2 value
|
||||
local __OPT="$1"
|
||||
local __VAL="$2"
|
||||
case $__OPT in
|
||||
confdir|templdir|temporary_directory|logdir|logfile)
|
||||
# needs to be handled separately because we need to set permissions
|
||||
# AND needs to be defined first because of a BUG inside privoxy
|
||||
# require directories to be defined first inside config
|
||||
;;
|
||||
debug_*)
|
||||
[ $__VAL -eq 0 ] && return # not set ignore
|
||||
echo -e "debug\t$(echo $__OPT | sed -e 's#debug_##g')" >> $CFGTEMP ;;
|
||||
*)
|
||||
# detect list options (LENGTH) and ignore
|
||||
echo $__OPT | grep -i "_LENGTH" >/dev/null 2>&1 && return
|
||||
# detect list options (ITEM) and ignore
|
||||
echo $__OPT | grep -i "_ITEM" >/dev/null 2>&1 && __OPT=$(echo $__OPT | sed -e "s#_ITEM.*##g")
|
||||
# uci only accept "_" but we need "-"
|
||||
local __OPT=$(echo $__OPT | sed -e "s#_#-#g")
|
||||
# write to config
|
||||
echo -e "$__OPT\t$__VAL" >> $CFGTEMP
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# temporary config file
|
||||
# privoxy need read access
|
||||
mkdir -m0755 -p /var/etc
|
||||
echo "" > $CFGTEMP
|
||||
chmod 644 $CFGTEMP
|
||||
# chgrp privoxy $CFGTEMP
|
||||
chgrp root $CFGTEMP
|
||||
|
||||
echo '### AUTO-GENERATED CONFIGURATION' >> $CFGTEMP
|
||||
echo '### USED BY PRIVOXY' >> $CFGTEMP
|
||||
echo '### DO NOT EDIT' >> $CFGTEMP
|
||||
echo '### SEE /etc/config/privoxy INSTEAD' >> $CFGTEMP
|
||||
echo '' >> $CFGTEMP
|
||||
|
||||
# confdir
|
||||
# privoxy needs read access (possibly write access)
|
||||
_CONFDIR=$(uci -q get privoxy.privoxy.confdir) || _CONFDIR="/etc/privoxy"
|
||||
chmod 755 $_CONFDIR
|
||||
chmod 664 $_CONFDIR/*
|
||||
#chgrp privoxy $_CONFDIR $_CONFDIR/*
|
||||
chgrp root $_CONFDIR $_CONFDIR/*
|
||||
echo -e "confdir\t$_CONFDIR" >> $CFGTEMP
|
||||
|
||||
# templdir
|
||||
# privoxy need read access
|
||||
_TEMPLDIR=$(uci -q get privoxy.privoxy.templdir) # no default needed
|
||||
if [ -z "$_TEMPLDIR" ]; then
|
||||
chmod 755 $_CONFDIR/templates
|
||||
chmod 644 $_CONFDIR/templates/*
|
||||
#chgrp privoxy $_CONFDIR/templates $_CONFDIR/templates/*
|
||||
chgrp root $_CONFDIR/templates $_CONFDIR/templates/*
|
||||
else
|
||||
chmod 755 $_TEMPLDIR
|
||||
chmod 644 $_TEMPLDIR/*
|
||||
#chgrp privoxy $_TEMPLDIR $_TEMPLDIR/*
|
||||
chgrp root $_TEMPLDIR $_TEMPLDIR/*
|
||||
echo -e "templdir\t$_TEMPLDIR" >> $CFGTEMP
|
||||
fi
|
||||
|
||||
# logdir and logfile
|
||||
# privoxy needs read/write access
|
||||
_LOGDIR=$(uci -q get privoxy.privoxy.logdir) || _LOGDIR="/var/log"
|
||||
_LOGFILE=$(uci -q get privoxy.privoxy.logfile) || _LOGFILE="privoxy.log"
|
||||
mkdir -m0755 -p $_LOGDIR
|
||||
touch $_LOGDIR/$_LOGFILE
|
||||
chmod 664 $_LOGDIR/$_LOGFILE
|
||||
# chown privoxy:privoxy $_LOGDIR/$_LOGFILE
|
||||
chown root:root $_LOGDIR/$_LOGFILE
|
||||
echo -e "logdir\t$_LOGDIR" >> $CFGTEMP
|
||||
echo -e "logfile\t$_LOGFILE" >> $CFGTEMP
|
||||
|
||||
# temporary-directory
|
||||
# privoxy needs read/write access
|
||||
_TMP_DIR=$(uci -q get privoxy.privoxy.temporary_directory) # no default needed
|
||||
if [ -n "$_TMP_DIR" ]; then
|
||||
mkdir -m0750 -p $_TMP_DIR
|
||||
chown root:root $_TMP_DIR
|
||||
# chown privoxy:privoxy $_TMP_DIR
|
||||
echo -e "temporary-directory\t$_TMP_DIR" >> $CFGTEMP
|
||||
fi
|
||||
|
||||
config_load privoxy # calling above option_cb() and write the rest into $CFGTEMP
|
||||
|
||||
# move temp to final privoxy readable configuration
|
||||
mv -f $CFGTEMP $CFGFILE
|
||||
return 0
|
||||
}
|
||||
|
||||
boot() {
|
||||
return 0 # will be started by "iface" hotplug events
|
||||
}
|
||||
|
||||
start() {
|
||||
# if already running do nothing
|
||||
local _PID=$(cat $PIDFILE 2>/dev/null)
|
||||
kill -1 $_PID 2>/dev/null && return 0
|
||||
|
||||
_uci2conf
|
||||
/usr/sbin/privoxy --pidfile $PIDFILE --user root.root $CFGFILE
|
||||
# /usr/sbin/privoxy --pidfile $PIDFILE --user privoxy.privoxy $CFGFILE
|
||||
|
||||
# verify startup
|
||||
_PID=$(cat $PIDFILE 2>/dev/null)
|
||||
kill -1 $_PID 2>/dev/null
|
||||
local _ERR=$?
|
||||
[ $_ERR -eq 0 ] \
|
||||
&& logger -p daemon.notice -t "privoxy[$_PID]" "Started successfully"\
|
||||
|| logger -p daemon.warn -t "privoxy[-----]" "Failed to start"
|
||||
return $_ERR
|
||||
}
|
||||
|
||||
reload() {
|
||||
# reload is also used by luci-app-privoxy
|
||||
local _PID=$(cat $PIDFILE 2>/dev/null)
|
||||
kill -1 $_PID 2>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
# only restart if already running
|
||||
restart
|
||||
else
|
||||
# only start if enabled
|
||||
enabled && start
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
stop() {
|
||||
local _PID=$(cat $PIDFILE 2>/dev/null)
|
||||
kill -15 $_PID 2>/dev/null
|
||||
sleep 1 # give time to shutdown
|
||||
local _tmp=$(pgrep privoxy | tr "\n" " ")
|
||||
if [ -z "$_tmp" ]; then
|
||||
logger -p daemon.notice -t "privoxy[$_PID]" "Shutdown successfully"
|
||||
else
|
||||
kill -9 $_tmp # Normally never come here
|
||||
logger -p daemon.warn -t "privoxy[-----]" "Shutdown forced by KILL"
|
||||
fi
|
||||
return 0
|
||||
}
|
49
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_config
Normal file
49
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_config
Normal file
@ -0,0 +1,49 @@
|
||||
# this file support all available configuration options of Privoxy web-proxy
|
||||
# the scripts move all options to the final privoxy readable configuration file
|
||||
#
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
# !!! privoxy uses "-" in option names but uci only support "_" !!!
|
||||
# !!! privoxy "listen-address" must be uci "listen_address" !!!
|
||||
# !!! !!!
|
||||
# !!! if you add entries please use !!!
|
||||
# !!! option for options with one parameter (option confdir) !!!
|
||||
# !!! list for options with multiple parameters (list listen_address) !!!
|
||||
# !!! !!!
|
||||
# !!! special handling for debug option !!!
|
||||
# !!! privoxy option "debug 1024" must be uci option debug_1024 '1' !!!
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
#
|
||||
config privoxy 'privoxy'
|
||||
option confdir '/etc/privoxy'
|
||||
option logdir '/var/log'
|
||||
option logfile 'privoxy.log'
|
||||
list filterfile 'default.filter'
|
||||
list filterfile 'ab2p.filter'
|
||||
list filterfile 'ab2p.system.filter'
|
||||
list filterfile 'user.filter'
|
||||
list actionsfile 'match-all.action'
|
||||
list actionsfile 'default.action'
|
||||
list actionsfile 'ab2p.action'
|
||||
list actionsfile 'ab2p.system.action'
|
||||
list actionsfile 'user.action'
|
||||
# list listen_address '127.0.0.1:8118'
|
||||
list listen_address '192.168.232.1:8118'
|
||||
option toggle '1'
|
||||
option single-threaded '1'
|
||||
option enable_remote_toggle '1'
|
||||
option enable_remote_http_toggle '0'
|
||||
option enable_edit_actions '1'
|
||||
option enforce_blocks '0'
|
||||
option buffer_limit '4096'
|
||||
option forwarded_connect_retries '0'
|
||||
option accept_intercepted_requests '1'
|
||||
option allow_cgi_request_crunching '0'
|
||||
option split_large_forms '0'
|
||||
option keep_alive_timeout '300'
|
||||
option socket_timeout '300'
|
||||
list permit_access '192.168.232.0/24'
|
||||
option debug_1 '0'
|
||||
option debug_512 '1'
|
||||
option debug_1024 '0'
|
||||
option debug_4096 '1'
|
||||
option debug_8192 '1'
|
13410
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.action
Normal file
13410
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.action
Normal file
File diff suppressed because it is too large
Load Diff
196337
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.action.origin
Normal file
196337
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.action.origin
Normal file
File diff suppressed because it is too large
Load Diff
1134
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.filter
Normal file
1134
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.filter
Normal file
File diff suppressed because it is too large
Load Diff
14818
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.filter.origin
Normal file
14818
1_9.r18_plugin/ad_plug/privoxy_code/privoxy_dir/ab2p.filter.origin
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@
|
||||
#AbBlock system actions -- don't edit --
|
||||
|
||||
{+set-image-blocker{blank} \
|
||||
+filter{ab2p-elemhide-filter} \
|
||||
+client-header-tagger{ab2p-elemhide-check-debug} \
|
||||
+client-header-tagger{ab2p-handle-as-image-c} \
|
||||
+server-header-tagger{ab2p-handle-as-image-s}}
|
||||
/
|
||||
|
||||
{-filter{ab2p-elemhide-filter} \
|
||||
+filter{ab2p-elemhide-filter-debug}}
|
||||
TAG:^ab2p-elemhide-filter-debug$
|
||||
|
||||
{+handle-as-image}
|
||||
TAG:^ab2p-handle-as-image$
|
||||
|
||||
{+block{ adblock rules }}
|
||||
TAG:^ab2p-block-s$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-u$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-d$
|
||||
|
||||
{-block}
|
||||
TAG:^ab2p-unblock-s$
|
||||
|
||||
#workaround for gzip handling privoxy bugs
|
||||
{ +prevent-compression }
|
||||
*.yahoo.com
|
||||
*.amazon.com
|
@ -0,0 +1,39 @@
|
||||
#AbBlock system filters -- don't edit --
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-block-s
|
||||
s@.*@ab2p-block-s@Ti
|
||||
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2b-unblock-u
|
||||
s@user-agent.*@ab2p-unblock-u@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-d
|
||||
s@date.*@ab2p-unblock-d@Ti
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-unblock-s
|
||||
s@server.*@ab2p-unblock-s@Ti
|
||||
|
||||
|
||||
SERVER-HEADER-TAGGER: ab2p-handle-as-image-s
|
||||
s@^content-type(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-handle-as-image-c
|
||||
s@^accept(?=:[\s\w]*image\/):.*@ab2p-handle-as-image@Ti
|
||||
|
||||
SERVER-HEADER-FILTER: ab2p-xframe-filter
|
||||
s@.*\sHTTP\/1.*@$&\r\nX-Frame-Options: DENY@i
|
||||
|
||||
CLIENT-HEADER-TAGGER: ab2p-elemhide-check-debug
|
||||
s@^cookie:.*ab2p-elemhide-filter-debug=true(?:;|$).*@ab2p-elemhide-filter-debug@Ti
|
||||
|
||||
FILTER: ab2p-elemhide-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-elemhide-filter-debug
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<link rel="stylesheet" type="text/css" href="http://www.example.com/debug/ab2p.common.css"></link><link rel="stylesheet" type="text/css" href="http://www.example.com/$host.debug/ab2p.css"></link>@iUD
|
||||
|
||||
FILTER: ab2p-popup-filter
|
||||
s@[^'"\s]\s*<head[^>]*>(?=\s*[^'"\s])@$&<script type="text/javascript">parent==window&&opener&&close()</script>@iUD
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user