committing changes in /etc made by "-bash"
Package changes:
This commit is contained in:
56
.etckeeper
56
.etckeeper
@@ -247,6 +247,7 @@ maybe chmod 0640 'bash_completion.d/python-argcomplete'
|
|||||||
maybe chmod 0644 'bash_completion.d/python-argcomplete.sh'
|
maybe chmod 0644 'bash_completion.d/python-argcomplete.sh'
|
||||||
maybe chmod 0644 'bash_completion.d/redefine_filedir'
|
maybe chmod 0644 'bash_completion.d/redefine_filedir'
|
||||||
maybe chmod 0644 'bash_completion.d/scl'
|
maybe chmod 0644 'bash_completion.d/scl'
|
||||||
|
maybe chmod 0644 'bash_completion.d/torsocks'
|
||||||
maybe chmod 0644 'bashrc'
|
maybe chmod 0644 'bashrc'
|
||||||
maybe chmod 0644 'bashrc.rpmnew'
|
maybe chmod 0644 'bashrc.rpmnew'
|
||||||
maybe chmod 0644 'bindresvport.blacklist'
|
maybe chmod 0644 'bindresvport.blacklist'
|
||||||
@@ -2910,6 +2911,7 @@ maybe chmod 0640 'logrotate.d/named'
|
|||||||
maybe chmod 0644 'logrotate.d/nginx'
|
maybe chmod 0644 'logrotate.d/nginx'
|
||||||
maybe chmod 0644 'logrotate.d/php-fpm'
|
maybe chmod 0644 'logrotate.d/php-fpm'
|
||||||
maybe chmod 0644 'logrotate.d/ppp'
|
maybe chmod 0644 'logrotate.d/ppp'
|
||||||
|
maybe chmod 0644 'logrotate.d/privoxy'
|
||||||
maybe chmod 0644 'logrotate.d/psacct'
|
maybe chmod 0644 'logrotate.d/psacct'
|
||||||
maybe chmod 0644 'logrotate.d/redis'
|
maybe chmod 0644 'logrotate.d/redis'
|
||||||
maybe chmod 0644 'logrotate.d/rkhunter'
|
maybe chmod 0644 'logrotate.d/rkhunter'
|
||||||
@@ -2920,6 +2922,7 @@ maybe chmod 0640 'logrotate.d/ssh-logins'
|
|||||||
maybe chmod 0644 'logrotate.d/sssd'
|
maybe chmod 0644 'logrotate.d/sssd'
|
||||||
maybe chmod 0644 'logrotate.d/subscription-manager'
|
maybe chmod 0644 'logrotate.d/subscription-manager'
|
||||||
maybe chmod 0644 'logrotate.d/syslog'
|
maybe chmod 0644 'logrotate.d/syslog'
|
||||||
|
maybe chmod 0644 'logrotate.d/tor'
|
||||||
maybe chmod 0644 'logrotate.d/up2date'
|
maybe chmod 0644 'logrotate.d/up2date'
|
||||||
maybe chmod 0644 'logrotate.d/vsftpd'
|
maybe chmod 0644 'logrotate.d/vsftpd'
|
||||||
maybe chmod 0644 'logrotate.d/wtmp'
|
maybe chmod 0644 'logrotate.d/wtmp'
|
||||||
@@ -4891,6 +4894,55 @@ maybe chmod 0755 'ppp/peers'
|
|||||||
maybe chmod 0644 'ppp/peers/vpn_gazduire.ro'
|
maybe chmod 0644 'ppp/peers/vpn_gazduire.ro'
|
||||||
maybe chmod 0644 'pptpd.conf'
|
maybe chmod 0644 'pptpd.conf'
|
||||||
maybe chmod 0644 'printcap'
|
maybe chmod 0644 'printcap'
|
||||||
|
maybe chmod 0755 'privoxy'
|
||||||
|
maybe chmod 0644 'privoxy/config'
|
||||||
|
maybe chmod 0644 'privoxy/default.action'
|
||||||
|
maybe chmod 0644 'privoxy/default.filter'
|
||||||
|
maybe chmod 0644 'privoxy/match-all.action'
|
||||||
|
maybe chmod 0644 'privoxy/regression-tests.action'
|
||||||
|
maybe chmod 0755 'privoxy/templates'
|
||||||
|
maybe chmod 0644 'privoxy/templates/blocked'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-error-404'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-error-bad-param'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-error-disabled'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-error-file'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-error-file-read-only'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-error-modified'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-error-parse'
|
||||||
|
maybe chmod 0644 'privoxy/templates/cgi-style.css'
|
||||||
|
maybe chmod 0644 'privoxy/templates/client-tags'
|
||||||
|
maybe chmod 0644 'privoxy/templates/connect-failed'
|
||||||
|
maybe chmod 0644 'privoxy/templates/connection-timeout'
|
||||||
|
maybe chmod 0644 'privoxy/templates/default'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-add-url-form'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-for-url'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-for-url-filter'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-for-url-string-action'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-list'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-list-button'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-list-section'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-list-url'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-remove-url-form'
|
||||||
|
maybe chmod 0644 'privoxy/templates/edit-actions-url-form'
|
||||||
|
maybe chmod 0644 'privoxy/templates/forwarding-failed'
|
||||||
|
maybe chmod 0644 'privoxy/templates/mod-local-help'
|
||||||
|
maybe chmod 0644 'privoxy/templates/mod-support-and-service'
|
||||||
|
maybe chmod 0644 'privoxy/templates/mod-title'
|
||||||
|
maybe chmod 0644 'privoxy/templates/mod-unstable-warning'
|
||||||
|
maybe chmod 0644 'privoxy/templates/no-server-data'
|
||||||
|
maybe chmod 0644 'privoxy/templates/no-such-domain'
|
||||||
|
maybe chmod 0644 'privoxy/templates/show-request'
|
||||||
|
maybe chmod 0644 'privoxy/templates/show-status'
|
||||||
|
maybe chmod 0644 'privoxy/templates/show-status-file'
|
||||||
|
maybe chmod 0644 'privoxy/templates/show-url-info'
|
||||||
|
maybe chmod 0644 'privoxy/templates/toggle'
|
||||||
|
maybe chmod 0644 'privoxy/templates/toggle-mini'
|
||||||
|
maybe chmod 0644 'privoxy/templates/untrusted'
|
||||||
|
maybe chmod 0644 'privoxy/templates/url-info-osd.xml'
|
||||||
|
maybe chmod 0644 'privoxy/templates/wpad.dat'
|
||||||
|
maybe chmod 0644 'privoxy/trust'
|
||||||
|
maybe chmod 0644 'privoxy/user.action'
|
||||||
|
maybe chmod 0644 'privoxy/user.filter'
|
||||||
maybe chmod 0644 'profile'
|
maybe chmod 0644 'profile'
|
||||||
maybe chmod 0755 'profile.d'
|
maybe chmod 0755 'profile.d'
|
||||||
maybe chmod 0644 'profile.d/bash_completion.sh'
|
maybe chmod 0644 'profile.d/bash_completion.sh'
|
||||||
@@ -5560,6 +5612,10 @@ maybe chmod 0755 'terminfo'
|
|||||||
maybe chmod 0755 'tmpfiles.d'
|
maybe chmod 0755 'tmpfiles.d'
|
||||||
maybe chmod 0644 'tmpfiles.d/clamav.conf'
|
maybe chmod 0644 'tmpfiles.d/clamav.conf'
|
||||||
maybe chmod 0644 'tmpfiles.d/opendmarc.conf'
|
maybe chmod 0644 'tmpfiles.d/opendmarc.conf'
|
||||||
|
maybe chmod 0755 'tor'
|
||||||
|
maybe chmod 0644 'tor/README'
|
||||||
|
maybe chmod 0644 'tor/torrc'
|
||||||
|
maybe chmod 0644 'tor/torsocks.conf'
|
||||||
maybe chmod 0644 'trusted-key.key'
|
maybe chmod 0644 'trusted-key.key'
|
||||||
maybe chmod 0755 'tuned'
|
maybe chmod 0755 'tuned'
|
||||||
maybe chmod 0644 'tuned/active_profile'
|
maybe chmod 0644 'tuned/active_profile'
|
||||||
|
|||||||
3
bash_completion.d/torsocks
Normal file
3
bash_completion.d/torsocks
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#-*- mode: shell-script;-*-
|
||||||
|
|
||||||
|
complete -F _command torsocks
|
||||||
2
group
2
group
@@ -105,3 +105,5 @@ squid:x:23:
|
|||||||
laser:x:1021:
|
laser:x:1021:
|
||||||
pydio:x:1022:
|
pydio:x:1022:
|
||||||
sftp:x:1023:
|
sftp:x:1023:
|
||||||
|
toranon:x:955:
|
||||||
|
privoxy:x:73:
|
||||||
|
|||||||
2
group-
2
group-
@@ -43,7 +43,6 @@ cockpit-ws:x:991:
|
|||||||
cockpit-wsinstance:x:990:
|
cockpit-wsinstance:x:990:
|
||||||
sshd:x:74:
|
sshd:x:74:
|
||||||
chrony:x:989:
|
chrony:x:989:
|
||||||
rngd:x:988:
|
|
||||||
slocate:x:21:
|
slocate:x:21:
|
||||||
named:x:25:
|
named:x:25:
|
||||||
redis:x:987:
|
redis:x:987:
|
||||||
@@ -106,3 +105,4 @@ squid:x:23:
|
|||||||
laser:x:1021:
|
laser:x:1021:
|
||||||
pydio:x:1022:
|
pydio:x:1022:
|
||||||
sftp:x:1023:
|
sftp:x:1023:
|
||||||
|
toranon:x:955:
|
||||||
|
|||||||
2
gshadow
2
gshadow
@@ -105,3 +105,5 @@ squid:!::
|
|||||||
laser:!::
|
laser:!::
|
||||||
pydio:!::
|
pydio:!::
|
||||||
sftp:!::
|
sftp:!::
|
||||||
|
toranon:!::
|
||||||
|
privoxy:!::
|
||||||
|
|||||||
2
gshadow-
2
gshadow-
@@ -43,7 +43,6 @@ cockpit-ws:!::
|
|||||||
cockpit-wsinstance:!::
|
cockpit-wsinstance:!::
|
||||||
sshd:!::
|
sshd:!::
|
||||||
chrony:!::
|
chrony:!::
|
||||||
rngd:!::
|
|
||||||
slocate:!::
|
slocate:!::
|
||||||
named:!::
|
named:!::
|
||||||
redis:!::
|
redis:!::
|
||||||
@@ -106,3 +105,4 @@ squid:!::
|
|||||||
laser:!::
|
laser:!::
|
||||||
pydio:!::
|
pydio:!::
|
||||||
sftp:!::
|
sftp:!::
|
||||||
|
toranon:!::
|
||||||
|
|||||||
7
logrotate.d/privoxy
Normal file
7
logrotate.d/privoxy
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/var/log/privoxy/logfile {
|
||||||
|
copytruncate
|
||||||
|
notifempty
|
||||||
|
missingok
|
||||||
|
weekly
|
||||||
|
rotate 4
|
||||||
|
}
|
||||||
13
logrotate.d/tor
Normal file
13
logrotate.d/tor
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
/var/log/tor/*.log {
|
||||||
|
daily
|
||||||
|
rotate 5
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 0640 toranon toranon
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
/bin/systemctl reload tor-master.service >/dev/null 2>/dev/null || :
|
||||||
|
endscript
|
||||||
|
}
|
||||||
2
passwd
2
passwd
@@ -76,3 +76,5 @@ squid:x:23:23::/var/spool/squid:/sbin/nologin
|
|||||||
laser:x:1020:1021::/home/laser:/bin/bash
|
laser:x:1020:1021::/home/laser:/bin/bash
|
||||||
pydio:x:1021:1022::/home/pydio:/bin/bash
|
pydio:x:1021:1022::/home/pydio:/bin/bash
|
||||||
sftp:x:1023:1023::/home/sftp:/bin/bash
|
sftp:x:1023:1023::/home/sftp:/bin/bash
|
||||||
|
toranon:x:959:955:Tor anonymizing user:/var/lib/tor:/sbin/nologin
|
||||||
|
privoxy:x:73:73::/etc/privoxy:/sbin/nologin
|
||||||
|
|||||||
2
passwd-
2
passwd-
@@ -25,7 +25,6 @@ cockpit-ws:x:994:991:User for cockpit web service:/nonexisting:/sbin/nologin
|
|||||||
cockpit-wsinstance:x:993:990:User for cockpit-ws instances:/nonexisting:/sbin/nologin
|
cockpit-wsinstance:x:993:990:User for cockpit-ws instances:/nonexisting:/sbin/nologin
|
||||||
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
|
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
|
||||||
chrony:x:992:989::/var/lib/chrony:/sbin/nologin
|
chrony:x:992:989::/var/lib/chrony:/sbin/nologin
|
||||||
rngd:x:991:988:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin
|
|
||||||
named:x:25:25:Named:/var/named:/bin/false
|
named:x:25:25:Named:/var/named:/bin/false
|
||||||
redis:x:990:987:Redis Database Server:/var/lib/redis:/sbin/nologin
|
redis:x:990:987:Redis Database Server:/var/lib/redis:/sbin/nologin
|
||||||
memcached:x:989:986:Memcached daemon:/run/memcached:/sbin/nologin
|
memcached:x:989:986:Memcached daemon:/run/memcached:/sbin/nologin
|
||||||
@@ -77,3 +76,4 @@ squid:x:23:23::/var/spool/squid:/sbin/nologin
|
|||||||
laser:x:1020:1021::/home/laser:/bin/bash
|
laser:x:1020:1021::/home/laser:/bin/bash
|
||||||
pydio:x:1021:1022::/home/pydio:/bin/bash
|
pydio:x:1021:1022::/home/pydio:/bin/bash
|
||||||
sftp:x:1023:1023::/home/sftp:/bin/bash
|
sftp:x:1023:1023::/home/sftp:/bin/bash
|
||||||
|
toranon:x:959:955:Tor anonymizing user:/var/lib/tor:/sbin/nologin
|
||||||
|
|||||||
2845
privoxy/config
Normal file
2845
privoxy/config
Normal file
File diff suppressed because it is too large
Load Diff
2168
privoxy/default.action
Normal file
2168
privoxy/default.action
Normal file
File diff suppressed because it is too large
Load Diff
969
privoxy/default.filter
Normal file
969
privoxy/default.filter
Normal file
@@ -0,0 +1,969 @@
|
|||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# File : default.filter
|
||||||
|
#
|
||||||
|
# Purpose : Rules to process the content of web pages
|
||||||
|
#
|
||||||
|
# Copyright : Written by and Copyright (C) 2001-2021 the
|
||||||
|
# Privoxy team. https://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, $listen-address, $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
|
||||||
|
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# 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=|siUg
|
||||||
|
|
||||||
|
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- <20>/<2F><>-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 <a href="http://p.p/">Privoxy's</a> crude-parental filter due to possible adult content.</h3></body></html>\n%is
|
||||||
|
|
||||||
|
s+^.*warez.*$+<html><head><title>No Warez</title></head><body><h3>You're not searching for illegal stuff, are you?</h3></body></html>\n+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 <a href="http://p.p/">Privoxy's</a> crude-parental \
|
||||||
|
content filter based on the description.\n\
|
||||||
|
@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 <a href="http://p.p/">Privoxy's</a> crude-parental \
|
||||||
|
content filter based on link text.\n\
|
||||||
|
@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 <a href="http://p.p/">Privoxy's</a> crude-parental \
|
||||||
|
content filter because of an age disclaimer.\n\
|
||||||
|
@is
|
||||||
|
|
||||||
|
#Remove by regulations
|
||||||
|
s@^.*(Section 2257|18 U.?S.?C.? 2257).*$\
|
||||||
|
@This page has been blocked by <a href="http://p.p/">Privoxy's</a> crude-parental \
|
||||||
|
content filter because of an regulations text.\n\
|
||||||
|
@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
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# allow-autocompletion: Changes autocomplete="off" on form and input fields
|
||||||
|
# to "on" to allow autocompletion.
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
FILTER: allow-autocompletion Changes autocomplete="off" on form and input fields to "on" to allow autocompletion.
|
||||||
|
|
||||||
|
s@(<(?:input|form|select|textarea)\s[^>]+autocomplete=)(['"]?)(?:off|0)\2@$1$2on$2@igsU
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# github: Removes the annoying "Sign-Up" banner and the Cookie disclaimer.
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
FILTER: github Removes the annoying "Sign-Up" banner and the Cookie disclaimer.
|
||||||
|
|
||||||
|
s@<signup-prompt.*</signup-prompt>@@Uis
|
||||||
|
s@(<div) (class="hx_cookie-banner)@$1 style="display:none;" $2@
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# imdb: Removes some ads on IMDb.
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
FILTER: imdb Removes some ads on IMDb.
|
||||||
|
|
||||||
|
s@(<div id="top_ad_wrapper")@$1 style="display:none"@
|
||||||
|
s@<iframe[^>]*id="top_ad"[^>]*>.*</iframe>@<!-- Iframe removed by Privoxy's imdb filter -->@
|
||||||
|
s@<iframe[^>]*onload="doWithAds.call[^>]*></iframe>@<!-- Iframe removed by Privoxy's imdb filter -->@g
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# sourceforge: Reduces the amount of ads for proprietary software on SourceForge.
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
FILTER: sourceforge Reduces the amount of ads for proprietary software on SourceForge.
|
||||||
|
|
||||||
|
s@<div id="banner-sterling"@$0 style="display:none;"@
|
||||||
|
s@<section id="nels"@$0 style="display:none;"@
|
||||||
|
s@<aside class="m-wide-widget m-wide-projects-widget "@$0 style="display:none;"@
|
||||||
|
s@<div id="newsletter-floating"@$0 style="display:none;"@
|
||||||
|
s@<div class="sterling" id="banner-sterling"@$0 style="display:none;"@
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# no-brotli-accepted: Strips "br" from the Accept-Encoding header as Privoxy
|
||||||
|
# currently doesn't support Brotli.
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
CLIENT-HEADER-FILTER: no-brotli-accepted Strip "br" from Accept-Encoding header
|
||||||
|
|
||||||
|
s@(^Accept-Encoding:.*?)(?:br, |, br|br)@$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
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# listen-address: Tags the request with the listen-address on which the request
|
||||||
|
# came in.
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
CLIENT-HEADER-TAGGER: listen-address Tags the request with the listen-address on which the request came in.
|
||||||
|
|
||||||
|
s@^\w*\s+.*\s+HTTP/\d\.\d\s*@LISTEN-ADDRESS: $listen-address@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
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#
|
||||||
|
# client-body: Modify client request body
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
|
CLIENT-BODY-FILTER: remove-first-byte Removes the first byte from the request body
|
||||||
|
s@^.@@
|
||||||
|
|
||||||
|
CLIENT-BODY-FILTER: remove-test Removes "test" everywhere in the request body
|
||||||
|
s@test@@g
|
||||||
|
|
||||||
|
CLIENT-BODY-FILTER: overwrite-test-value Overwrites the value of the "test" variable with blafasel
|
||||||
|
s@(test=)[^&\s]*@$1blafasel@g
|
||||||
16
privoxy/match-all.action
Normal file
16
privoxy/match-all.action
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#############################################################################
|
||||||
|
#
|
||||||
|
# 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} \
|
||||||
|
+client-header-tagger{range-requests} \
|
||||||
|
+hide-from-header{block} \
|
||||||
|
+set-image-blocker{pattern} \
|
||||||
|
}
|
||||||
|
/ # Match all URLs
|
||||||
1154
privoxy/regression-tests.action
Normal file
1154
privoxy/regression-tests.action
Normal file
File diff suppressed because it is too large
Load Diff
275
privoxy/templates/blocked
Normal file
275
privoxy/templates/blocked
Normal file
@@ -0,0 +1,275 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# "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 proxy 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 Privoxy project, which 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 administrator 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> \
|
||||||
|
\
|
||||||
|
<!-- @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@ --> \
|
||||||
|
\
|
||||||
|
<tr> \
|
||||||
|
<td class="info" colspan="2"> \
|
||||||
|
<big><b>Support and Service:</b></big> \
|
||||||
|
<p> \
|
||||||
|
The Privoxy Team values your feedback. \
|
||||||
|
</p> \
|
||||||
|
<p> \
|
||||||
|
Please have a look at the User Manual to learn how to \
|
||||||
|
<a title="Privoxy User Manual: Contacting the developers, Bug Reporting and Feature Requests" \
|
||||||
|
href="@user-manual@contact.html">get support or report problems</a>. \
|
||||||
|
<p> \
|
||||||
|
If you want to support the Privoxy Team, you can \
|
||||||
|
<a href="https://www.privoxy.org/participate">participate</a> \
|
||||||
|
or <a href="https://www.privoxy.org/donate">donate</a>. \
|
||||||
|
</p> \
|
||||||
|
</td> \
|
||||||
|
</tr> \
|
||||||
|
\
|
||||||
|
</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>
|
||||||
148
privoxy/templates/cgi-error-404
Normal file
148
privoxy/templates/cgi-error-404
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
155
privoxy/templates/cgi-error-bad-param
Normal file
155
privoxy/templates/cgi-error-bad-param
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
168
privoxy/templates/cgi-error-disabled
Normal file
168
privoxy/templates/cgi-error-disabled
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
138
privoxy/templates/cgi-error-file
Normal file
138
privoxy/templates/cgi-error-file
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
145
privoxy/templates/cgi-error-file-read-only
Normal file
145
privoxy/templates/cgi-error-file-read-only
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
156
privoxy/templates/cgi-error-modified
Normal file
156
privoxy/templates/cgi-error-modified
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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
175
privoxy/templates/cgi-error-parse
Normal file
175
privoxy/templates/cgi-error-parse
Normal file
@@ -0,0 +1,175 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
149
privoxy/templates/cgi-style.css
Normal file
149
privoxy/templates/cgi-style.css
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# File : templates/cgi-style.css
|
||||||
|
#
|
||||||
|
# Purpose : Style sheet for the web-based config interface.
|
||||||
|
#
|
||||||
|
# Copyright : Written by and Copyright (C) 2001 members of the
|
||||||
|
# Privoxy team. https://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
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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%; }
|
||||||
154
privoxy/templates/client-tags
Normal file
154
privoxy/templates/client-tags
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# client-tags 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 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 Privoxy project, which 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 administrator 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>Available client tags - 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">
|
||||||
|
<!-- @if-tags-expire-start -->
|
||||||
|
<meta http-equiv="refresh" content="@refresh-delay@">
|
||||||
|
<!-- if-tags-expire-end@ -->
|
||||||
|
</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>Available client tags</h2>
|
||||||
|
<p>
|
||||||
|
This page shows the configured
|
||||||
|
<a title="Lookup client-specific-tag directive in the user-manual"
|
||||||
|
href="@user-manual@config.html#CLIENT-SPECIFIC-TAG">client-specific tags</a>,
|
||||||
|
and whether or not they are enabled for the address your request came from
|
||||||
|
(@client-ip-addr@):
|
||||||
|
</p>
|
||||||
|
|
||||||
|
@client-tags@
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="box">
|
||||||
|
<h2>More Privoxy:</h2>
|
||||||
|
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
155
privoxy/templates/connect-failed
Normal file
155
privoxy/templates/connect-failed
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
86
privoxy/templates/connection-timeout
Normal file
86
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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
130
privoxy/templates/default
Normal file
130
privoxy/templates/default
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
147
privoxy/templates/edit-actions-add-url-form
Normal file
147
privoxy/templates/edit-actions-add-url-form
Normal file
@@ -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 members of the
|
||||||
|
# Privoxy team. https://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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
1315
privoxy/templates/edit-actions-for-url
Normal file
1315
privoxy/templates/edit-actions-for-url
Normal file
File diff suppressed because it is too large
Load Diff
30
privoxy/templates/edit-actions-for-url-filter
Normal file
30
privoxy/templates/edit-actions-for-url-filter
Normal file
@@ -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
|
||||||
|
# members of the Privoxy team. https://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-action-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>
|
||||||
40
privoxy/templates/edit-actions-for-url-string-action
Normal file
40
privoxy/templates/edit-actions-for-url-string-action
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
# members of the Privoxy team. https://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="string_action_@abbr-action-type@_r@index@" value="Y" @this-filter-y@></td>
|
||||||
|
<td class="dis1" align="center" valign="middle"><input type="radio" name="string_action_@abbr-action-type@_r@index@" value="N" @this-filter-n@></td>
|
||||||
|
<td class="noc1" align="center" valign="middle"><input type="radio" name="string_action_@abbr-action-type@_r@index@" value="X"></td>
|
||||||
|
<td class="action">
|
||||||
|
<input type="hidden" name="string_action_@abbr-action-type@_t@index@" value="@abbr-action-type@">
|
||||||
|
<input type="hidden" name="string_action_@abbr-action-type@_c@index@" value="@code@">
|
||||||
|
<input type="hidden" name="string_action_@abbr-action-type@_o@index@" value="@name@">
|
||||||
|
<a href="@user-manual@@actions-help-prefix@@anchor@">@filter-type@</a> @name@
|
||||||
|
</td>
|
||||||
|
<td>@desc@.</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="bg1" align="left" valign="top" id="string_action_@abbr-action-type@_@index@_opts">
|
||||||
|
<td class="en1"> </td>
|
||||||
|
<td class="dis1"> </td>
|
||||||
|
<td class="noc1"> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td>@input_desc@:<br>
|
||||||
|
<input type="text" name="string_action_@abbr-action-type@_n@index@" size="40" value="@name@">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
279
privoxy/templates/edit-actions-list
Normal file
279
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. https://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="https://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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
33
privoxy/templates/edit-actions-list-button
Normal file
33
privoxy/templates/edit-actions-list-button
Normal file
@@ -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 members of the
|
||||||
|
# Privoxy team. https://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>
|
||||||
67
privoxy/templates/edit-actions-list-section
Normal file
67
privoxy/templates/edit-actions-list-section
Normal file
@@ -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 members of the
|
||||||
|
# Privoxy team. https://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>
|
||||||
54
privoxy/templates/edit-actions-list-url
Normal file
54
privoxy/templates/edit-actions-list-url
Normal file
@@ -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 members of the
|
||||||
|
# Privoxy team. https://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>
|
||||||
132
privoxy/templates/edit-actions-remove-url-form
Normal file
132
privoxy/templates/edit-actions-remove-url-form
Normal file
@@ -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 members of the
|
||||||
|
# Privoxy team. https://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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
150
privoxy/templates/edit-actions-url-form
Normal file
150
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 members of the
|
||||||
|
# Privoxy team. https://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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
166
privoxy/templates/forwarding-failed
Normal file
166
privoxy/templates/forwarding-failed
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
12
privoxy/templates/mod-local-help
Normal file
12
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@ -->
|
||||||
33
privoxy/templates/mod-support-and-service
Normal file
33
privoxy/templates/mod-support-and-service
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# 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. https://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.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
# This template should be kept in sync with the "blocked" template
|
||||||
|
# whose JavaScript version duplicates the content.
|
||||||
|
<h2>Support and Service:</h2>
|
||||||
|
<p>
|
||||||
|
The Privoxy Team values your feedback.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Please have a look at the User Manual to learn how to
|
||||||
|
<a title="Privoxy User Manual: Contacting the developers, Bug Reporting and Feature Requests"
|
||||||
|
href="@user-manual@contact.html">get support or report problems</a>.
|
||||||
|
<p>
|
||||||
|
If you want to support the Privoxy Team, you can
|
||||||
|
<a href="https://www.privoxy.org/participate">participate</a>
|
||||||
|
or <a href="https://www.privoxy.org/donate">donate</a>.
|
||||||
|
</p>
|
||||||
4
privoxy/templates/mod-title
Normal file
4
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>
|
||||||
7
privoxy/templates/mod-unstable-warning
Normal file
7
privoxy/templates/mod-unstable-warning
Normal file
@@ -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
privoxy/templates/no-server-data
Normal file
95
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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
157
privoxy/templates/no-such-domain
Normal file
157
privoxy/templates/no-such-domain
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 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
153
privoxy/templates/show-request
Normal file
153
privoxy/templates/show-request
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
436
privoxy/templates/show-status
Normal file
436
privoxy/templates/show-status
Normal file
@@ -0,0 +1,436 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 Privoxy project, which maintains this software.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
# 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 administrator 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
|
||||||
|
# extended-statistics:
|
||||||
|
# Privoxy was compiled with extended statistiscs support.
|
||||||
|
# In this case the following symbols are available:
|
||||||
|
# block-reason-statistics:
|
||||||
|
# Table content of block reasons and how often they were used.
|
||||||
|
# filter-statistics:
|
||||||
|
# Table content of content filter statistics.
|
||||||
|
# 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.
|
||||||
|
# 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@ -->
|
||||||
|
|
||||||
|
<!-- @if-extended-statistics-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="box">
|
||||||
|
<h2>Block Reason Statistics:</h2>
|
||||||
|
<table summary="Statistics for block reasons" border="1">
|
||||||
|
<tr><th>Block reason</th><th>Count</th></tr>
|
||||||
|
@block-reason-statistics@ </table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="box">
|
||||||
|
<h2>Content Filter Statistics:</h2>
|
||||||
|
<table summary="Statistics for content filters" border="1">
|
||||||
|
<tr><th>Filter name</th><th>Executions</th><th>Response bodies modified</th><th>Hits</th></tr>
|
||||||
|
@filter-statistics@ </table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-extended-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_64_BIT_TIME_T</code></td>
|
||||||
|
<td>@if-FEATURE_64_BIT_TIME_T-then@ Yes @else-not-FEATURE_64_BIT_TIME_T@ No @endif-FEATURE_64_BIT_TIME_T@</td>
|
||||||
|
<td>Dates before 1970 and after 2038 are (hopefully) supported.</td>
|
||||||
|
</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_BROTLI</code></td>
|
||||||
|
<td>@if-FEATURE_BROTLI-then@ Yes @else-not-FEATURE_BROTLI@ No @endif-FEATURE_BROTLI@</td>
|
||||||
|
<td>Allows to decompress content with Brotli before filtering it. Requires external brotli library.</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_CLIENT_TAGS</code></td>
|
||||||
|
<td>@if-FEATURE_CLIENT_TAGS-then@ Yes @else-not-FEATURE_CLIENT_TAGS@ No @endif-FEATURE_CLIENT_TAGS@</td>
|
||||||
|
<td>
|
||||||
|
Allows clients to request to be tagged.
|
||||||
|
</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_EXTENDED_STATISTICS</code></td>
|
||||||
|
<td>@if-FEATURE_EXTENDED_STATISTICS-then@ Yes @else-not-FEATURE_EXTENDED_STATISTICS@ No @endif-FEATURE_EXTENDED_STATISTICS@</td>
|
||||||
|
<td>Gather statistics for block reasons and filter executions.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>FEATURE_EXTERNAL_FILTERS</code></td>
|
||||||
|
<td>@if-FEATURE_EXTERNAL_FILTERS-then@ Yes @else-not-FEATURE_EXTERNAL_FILTERS@ No @endif-FEATURE_EXTERNAL_FILTERS@</td>
|
||||||
|
<td>
|
||||||
|
Allows to <a href="@user-manual@actions-file.html#EXTERNAL-FILTER">filter content
|
||||||
|
with external scripts and programs</a> written in any language the system Privoxy
|
||||||
|
runs on supports.
|
||||||
|
</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 blocking for a single page using the prefix
|
||||||
|
<q><code>@force-prefix@</code></q> provided blocks aren't enforced with the
|
||||||
|
<a href="@user-manual@config.html#ENFORCE-BLOCKS">enforce-blocks</a> directive.
|
||||||
|
</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_HTTPS_INSPECTION</code></td>
|
||||||
|
<td>@if-FEATURE_HTTPS_INSPECTION-then@ Yes @else-not-FEATURE_HTTPS_INSPECTION@ No @endif-FEATURE_HTTPS_INSPECTION@</td>
|
||||||
|
<td>Allows to intercept and filter HTTPS traffic. Experimental.</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_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_PCRE_HOST_PATTERNS</code></td>
|
||||||
|
<td>@if-FEATURE_PCRE_HOST_PATTERNS-then@ Yes @else-not-FEATURE_PCRE_HOST_PATTERNS@ No @endif-FEATURE_PCRE_HOST_PATTERNS@</td>
|
||||||
|
<td>Allow to use extended host patterns and vanilla host patterns
|
||||||
|
at the same time by prefixing extended host patterns with
|
||||||
|
"PCRE-HOST-PATTERN:".
|
||||||
|
</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-filtering 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.</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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
145
privoxy/templates/show-status-file
Normal file
145
privoxy/templates/show-status-file
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
292
privoxy/templates/show-url-info
Normal file
292
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 members of the
|
||||||
|
# Privoxy team. https://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 administrator 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-and-no-https-inspection-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-and-no-https-inspection-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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
149
privoxy/templates/toggle
Normal file
149
privoxy/templates/toggle
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
<p>
|
||||||
|
The toggle state affects all clients that are using Privoxy.
|
||||||
|
In multi-user setups <a href="@user-manual@config.html#CLIENT-SPECIFIC-TAG">
|
||||||
|
client-specific tags</a> can be used as a more powerful alternative.
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="box">
|
||||||
|
<h2>More Privoxy:</h2>
|
||||||
|
<ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
90
privoxy/templates/toggle-mini
Normal file
90
privoxy/templates/toggle-mini
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# 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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
190
privoxy/templates/untrusted
Normal file
190
privoxy/templates/untrusted
Normal file
@@ -0,0 +1,190 @@
|
|||||||
|
##########################################################
|
||||||
|
#
|
||||||
|
# "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 proxy 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 Privoxy project, which 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 administrator 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>
|
||||||
|
|
||||||
|
<!-- @if-have-help-info-start -->
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-local-help
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- if-have-help-info-end@ -->
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="info" colspan="2">
|
||||||
|
|
||||||
|
#include mod-support-and-service
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
14
privoxy/templates/url-info-osd.xml
Normal file
14
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>
|
||||||
11
privoxy/templates/wpad.dat
Normal file
11
privoxy/templates/wpad.dat
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
function FindProxyForURL(url, host) {
|
||||||
|
var proxy = "PROXY @my-ip-address@:@my-port@; DIRECT";
|
||||||
|
var direct = "DIRECT";
|
||||||
|
if (isPlainHostName(host)) {
|
||||||
|
return direct;
|
||||||
|
}
|
||||||
|
if (url.substring(0, 4) == "ftp:" || url.substring(0, 6) == "rsync:") {
|
||||||
|
return direct;
|
||||||
|
}
|
||||||
|
return proxy;
|
||||||
|
}
|
||||||
81
privoxy/trust
Normal file
81
privoxy/trust
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
######################################################################
|
||||||
|
#
|
||||||
|
# File : trust
|
||||||
|
#
|
||||||
|
# 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. https://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:
|
||||||
|
# https://sourceforge.net/p/ijbswa/support-requests/
|
||||||
|
# * Submit bugs only thru our bug forum:
|
||||||
|
# https://sourceforge.net/p/ijbswa/bugs/
|
||||||
|
# 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, git sources.
|
||||||
|
# * Submit feature requests only thru our feature request tracker:
|
||||||
|
# https://sourceforge.net/p/ijbswa/feature-requests/
|
||||||
|
#
|
||||||
|
# For any other issues, feel free to use the mailing lists.
|
||||||
|
# Anyone interested in actively participating in development and related
|
||||||
|
# discussions can join the appropriate mailing list here:
|
||||||
|
# https://lists.privoxy.org/mailman/listinfo. 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 https://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
|
||||||
204
privoxy/user.action
Normal file
204
privoxy/user.action
Normal file
@@ -0,0 +1,204 @@
|
|||||||
|
######################################################################
|
||||||
|
#
|
||||||
|
# File : user.action
|
||||||
|
#
|
||||||
|
# Purpose : User-maintained actions file, see
|
||||||
|
# https://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 https://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
|
||||||
|
|
||||||
|
######### Examples for SSL actions #########
|
||||||
|
# Following section enables TLS/SSL filtering for all sites defined by pattern and requested by HTTPS.
|
||||||
|
# {+https-inspection}
|
||||||
|
# privoxy.org
|
||||||
|
|
||||||
|
# Following section turns off certificate verification for all sites defined by pattern.
|
||||||
|
# {+ignore-certificate-errors}
|
||||||
|
# privoxy.org
|
||||||
0
privoxy/user.filter
Normal file
0
privoxy/user.filter
Normal file
2
shadow
2
shadow
@@ -76,3 +76,5 @@ squid:!!:18921::::::
|
|||||||
laser:$6$3IDnJkLhNhDa5MUg$ysajgR6P3uElTVSBuLJbix4lHHNheJ.JBIrGFRvUPsY2/265PmO3vjgWTculxKkywvas0vcVrX3Q4QQZ/qufR.:18954:0:99999:7:30::
|
laser:$6$3IDnJkLhNhDa5MUg$ysajgR6P3uElTVSBuLJbix4lHHNheJ.JBIrGFRvUPsY2/265PmO3vjgWTculxKkywvas0vcVrX3Q4QQZ/qufR.:18954:0:99999:7:30::
|
||||||
pydio:!!:19102:0:99999:7:30::
|
pydio:!!:19102:0:99999:7:30::
|
||||||
sftp:!!:19193:0:99999:7:30::
|
sftp:!!:19193:0:99999:7:30::
|
||||||
|
toranon:!!:19312::::::
|
||||||
|
privoxy:!!:19312::::::
|
||||||
|
|||||||
2
shadow-
2
shadow-
@@ -25,7 +25,6 @@ cockpit-ws:!!:18424::::::
|
|||||||
cockpit-wsinstance:!!:18424::::::
|
cockpit-wsinstance:!!:18424::::::
|
||||||
sshd:!!:18424::::::
|
sshd:!!:18424::::::
|
||||||
chrony:!!:18424::::::
|
chrony:!!:18424::::::
|
||||||
rngd:!!:18424::::::
|
|
||||||
named:!!:18526::::::
|
named:!!:18526::::::
|
||||||
redis:!!:18526::::::
|
redis:!!:18526::::::
|
||||||
memcached:!!:18526::::::
|
memcached:!!:18526::::::
|
||||||
@@ -77,3 +76,4 @@ squid:!!:18921::::::
|
|||||||
laser:$6$3IDnJkLhNhDa5MUg$ysajgR6P3uElTVSBuLJbix4lHHNheJ.JBIrGFRvUPsY2/265PmO3vjgWTculxKkywvas0vcVrX3Q4QQZ/qufR.:18954:0:99999:7:30::
|
laser:$6$3IDnJkLhNhDa5MUg$ysajgR6P3uElTVSBuLJbix4lHHNheJ.JBIrGFRvUPsY2/265PmO3vjgWTculxKkywvas0vcVrX3Q4QQZ/qufR.:18954:0:99999:7:30::
|
||||||
pydio:!!:19102:0:99999:7:30::
|
pydio:!!:19102:0:99999:7:30::
|
||||||
sftp:!!:19193:0:99999:7:30::
|
sftp:!!:19193:0:99999:7:30::
|
||||||
|
toranon:!!:19312::::::
|
||||||
|
|||||||
22
tor/README
Normal file
22
tor/README
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
The default configuration file for Tor is "/etc/tor/torrc" and is used when you
|
||||||
|
run this command:
|
||||||
|
|
||||||
|
# systemctl start tor.service
|
||||||
|
|
||||||
|
Multiple instances of Tor can be run simultaneously using different
|
||||||
|
configuration files. For example, tor@custom.service will use the configuration
|
||||||
|
file "/etc/tor/custom.torrc".
|
||||||
|
|
||||||
|
# touch /etc/tor/custom.torrc
|
||||||
|
# echo "SOCKSPort 9051" >> /etc/tor/custom.torrc
|
||||||
|
# echo "DataDirectory /var/lib/tor/custom" >> /etc/tor/custom.torrc
|
||||||
|
# mkdir /var/lib/tor/custom
|
||||||
|
# chown toranon:root /var/lib/tor/custom
|
||||||
|
# systemctl start tor@custom.service
|
||||||
|
|
||||||
|
To restart, reload, or stop all running instances of Tor (including tor.service
|
||||||
|
and any tor@.service), use tor-master.service. For example, to restart all
|
||||||
|
instances of Tor, run this command:
|
||||||
|
|
||||||
|
# systemctl restart tor-master.service
|
||||||
|
|
||||||
259
tor/torrc
Normal file
259
tor/torrc
Normal file
@@ -0,0 +1,259 @@
|
|||||||
|
## Configuration file for a typical Tor user
|
||||||
|
## Last updated 28 February 2019 for Tor 0.3.5.1-alpha.
|
||||||
|
## (may or may not work for much older or much newer versions of Tor.)
|
||||||
|
##
|
||||||
|
## Lines that begin with "## " try to explain what's going on. Lines
|
||||||
|
## that begin with just "#" are disabled commands: you can enable them
|
||||||
|
## by removing the "#" symbol.
|
||||||
|
##
|
||||||
|
## See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
|
||||||
|
## for more options you can use in this file.
|
||||||
|
##
|
||||||
|
## Tor will look for this file in various places based on your platform:
|
||||||
|
## https://www.torproject.org/docs/faq#torrc
|
||||||
|
|
||||||
|
ControlSocket /run/tor/control
|
||||||
|
ControlSocketsGroupWritable 1
|
||||||
|
CookieAuthentication 1
|
||||||
|
CookieAuthFile /run/tor/control.authcookie
|
||||||
|
CookieAuthFileGroupReadable 1
|
||||||
|
|
||||||
|
## Tor opens a SOCKS proxy on port 9050 by default -- even if you don't
|
||||||
|
## configure one below. Set "SOCKSPort 0" if you plan to run Tor only
|
||||||
|
## as a relay, and not make any local application connections yourself.
|
||||||
|
#SOCKSPort 9050 # Default: Bind to localhost:9050 for local connections.
|
||||||
|
#SOCKSPort 192.168.0.1:9100 # Bind to this address:port too.
|
||||||
|
|
||||||
|
## Entry policies to allow/deny SOCKS requests based on IP address.
|
||||||
|
## First entry that matches wins. If no SOCKSPolicy is set, we accept
|
||||||
|
## all (and only) requests that reach a SOCKSPort. Untrusted users who
|
||||||
|
## can access your SOCKSPort may be able to learn about the connections
|
||||||
|
## you make.
|
||||||
|
#SOCKSPolicy accept 192.168.0.0/16
|
||||||
|
#SOCKSPolicy accept6 FC00::/7
|
||||||
|
#SOCKSPolicy reject *
|
||||||
|
|
||||||
|
## Logs go to stdout at level "notice" unless redirected by something
|
||||||
|
## else, like one of the below lines. You can have as many Log lines as
|
||||||
|
## you want.
|
||||||
|
##
|
||||||
|
## We advise using "notice" in most cases, since anything more verbose
|
||||||
|
## may provide sensitive information to an attacker who obtains the logs.
|
||||||
|
##
|
||||||
|
## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
|
||||||
|
#Log notice file /var/log/tor/notices.log
|
||||||
|
## Send every possible message to /var/log/tor/debug.log
|
||||||
|
#Log debug file /var/log/tor/debug.log
|
||||||
|
## Use the system log instead of Tor's logfiles
|
||||||
|
#Log notice syslog
|
||||||
|
## To send all messages to stderr:
|
||||||
|
#Log debug stderr
|
||||||
|
|
||||||
|
## Uncomment this to start the process in the background... or use
|
||||||
|
## --runasdaemon 1 on the command line. This is ignored on Windows;
|
||||||
|
## see the FAQ entry if you want Tor to run as an NT service.
|
||||||
|
#RunAsDaemon 1
|
||||||
|
|
||||||
|
## The directory for keeping all the keys/etc. By default, we store
|
||||||
|
## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
|
||||||
|
#DataDirectory /var/lib/tor
|
||||||
|
|
||||||
|
## The port on which Tor will listen for local connections from Tor
|
||||||
|
## controller applications, as documented in control-spec.txt.
|
||||||
|
#ControlPort 9051
|
||||||
|
## If you enable the controlport, be sure to enable one of these
|
||||||
|
## authentication methods, to prevent attackers from accessing it.
|
||||||
|
#HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
|
||||||
|
#CookieAuthentication 1
|
||||||
|
|
||||||
|
############### This section is just for location-hidden services ###
|
||||||
|
|
||||||
|
## Once you have configured a hidden service, you can look at the
|
||||||
|
## contents of the file ".../hidden_service/hostname" for the address
|
||||||
|
## to tell people.
|
||||||
|
##
|
||||||
|
## HiddenServicePort x y:z says to redirect requests on port x to the
|
||||||
|
## address y:z.
|
||||||
|
|
||||||
|
#HiddenServiceDir /var/lib/tor/hidden_service/
|
||||||
|
#HiddenServicePort 80 127.0.0.1:80
|
||||||
|
|
||||||
|
#HiddenServiceDir /var/lib/tor/other_hidden_service/
|
||||||
|
#HiddenServicePort 80 127.0.0.1:80
|
||||||
|
#HiddenServicePort 22 127.0.0.1:22
|
||||||
|
|
||||||
|
################ This section is just for relays #####################
|
||||||
|
#
|
||||||
|
## See https://www.torproject.org/docs/tor-doc-relay for details.
|
||||||
|
|
||||||
|
## Required: what port to advertise for incoming Tor connections.
|
||||||
|
#ORPort 9001
|
||||||
|
## If you want to listen on a port other than the one advertised in
|
||||||
|
## ORPort (e.g. to advertise 443 but bind to 9090), you can do it as
|
||||||
|
## follows. You'll need to do ipchains or other port forwarding
|
||||||
|
## yourself to make this work.
|
||||||
|
#ORPort 443 NoListen
|
||||||
|
#ORPort 127.0.0.1:9090 NoAdvertise
|
||||||
|
## If you want to listen on IPv6 your numeric address must be explicitly
|
||||||
|
## between square brackets as follows. You must also listen on IPv4.
|
||||||
|
#ORPort [2001:DB8::1]:9050
|
||||||
|
|
||||||
|
## The IP address or full DNS name for incoming connections to your
|
||||||
|
## relay. Leave commented out and Tor will guess.
|
||||||
|
#Address noname.example.com
|
||||||
|
|
||||||
|
## If you have multiple network interfaces, you can specify one for
|
||||||
|
## outgoing traffic to use.
|
||||||
|
## OutboundBindAddressExit will be used for all exit traffic, while
|
||||||
|
## OutboundBindAddressOR will be used for all OR and Dir connections
|
||||||
|
## (DNS connections ignore OutboundBindAddress).
|
||||||
|
## If you do not wish to differentiate, use OutboundBindAddress to
|
||||||
|
## specify the same address for both in a single line.
|
||||||
|
#OutboundBindAddressExit 10.0.0.4
|
||||||
|
#OutboundBindAddressOR 10.0.0.5
|
||||||
|
|
||||||
|
## A handle for your relay, so people don't have to refer to it by key.
|
||||||
|
## Nicknames must be between 1 and 19 characters inclusive, and must
|
||||||
|
## contain only the characters [a-zA-Z0-9].
|
||||||
|
## If not set, "Unnamed" will be used.
|
||||||
|
#Nickname ididnteditheconfig
|
||||||
|
|
||||||
|
## Define these to limit how much relayed traffic you will allow. Your
|
||||||
|
## own traffic is still unthrottled. Note that RelayBandwidthRate must
|
||||||
|
## be at least 75 kilobytes per second.
|
||||||
|
## Note that units for these config options are bytes (per second), not
|
||||||
|
## bits (per second), and that prefixes are binary prefixes, i.e. 2^10,
|
||||||
|
## 2^20, etc.
|
||||||
|
#RelayBandwidthRate 100 KBytes # Throttle traffic to 100KB/s (800Kbps)
|
||||||
|
#RelayBandwidthBurst 200 KBytes # But allow bursts up to 200KB (1600Kb)
|
||||||
|
|
||||||
|
## Use these to restrict the maximum traffic per day, week, or month.
|
||||||
|
## Note that this threshold applies separately to sent and received bytes,
|
||||||
|
## not to their sum: setting "40 GB" may allow up to 80 GB total before
|
||||||
|
## hibernating.
|
||||||
|
##
|
||||||
|
## Set a maximum of 40 gigabytes each way per period.
|
||||||
|
#AccountingMax 40 GBytes
|
||||||
|
## Each period starts daily at midnight (AccountingMax is per day)
|
||||||
|
#AccountingStart day 00:00
|
||||||
|
## Each period starts on the 3rd of the month at 15:00 (AccountingMax
|
||||||
|
## is per month)
|
||||||
|
#AccountingStart month 3 15:00
|
||||||
|
|
||||||
|
## Administrative contact information for this relay or bridge. This line
|
||||||
|
## can be used to contact you if your relay or bridge is misconfigured or
|
||||||
|
## something else goes wrong. Note that we archive and publish all
|
||||||
|
## descriptors containing these lines and that Google indexes them, so
|
||||||
|
## spammers might also collect them. You may want to obscure the fact that
|
||||||
|
## it's an email address and/or generate a new address for this purpose.
|
||||||
|
##
|
||||||
|
## If you are running multiple relays, you MUST set this option.
|
||||||
|
##
|
||||||
|
#ContactInfo Random Person <nobody AT example dot com>
|
||||||
|
## You might also include your PGP or GPG fingerprint if you have one:
|
||||||
|
#ContactInfo 0xFFFFFFFF Random Person <nobody AT example dot com>
|
||||||
|
|
||||||
|
## Uncomment this to mirror directory information for others. Please do
|
||||||
|
## if you have enough bandwidth.
|
||||||
|
#DirPort 9030 # what port to advertise for directory connections
|
||||||
|
## If you want to listen on a port other than the one advertised in
|
||||||
|
## DirPort (e.g. to advertise 80 but bind to 9091), you can do it as
|
||||||
|
## follows. below too. You'll need to do ipchains or other port
|
||||||
|
## forwarding yourself to make this work.
|
||||||
|
#DirPort 80 NoListen
|
||||||
|
#DirPort 127.0.0.1:9091 NoAdvertise
|
||||||
|
## Uncomment to return an arbitrary blob of html on your DirPort. Now you
|
||||||
|
## can explain what Tor is if anybody wonders why your IP address is
|
||||||
|
## contacting them. See contrib/tor-exit-notice.html in Tor's source
|
||||||
|
## distribution for a sample.
|
||||||
|
#DirPortFrontPage /etc/tor/tor-exit-notice.html
|
||||||
|
|
||||||
|
## Uncomment this if you run more than one Tor relay, and add the identity
|
||||||
|
## key fingerprint of each Tor relay you control, even if they're on
|
||||||
|
## different networks. You declare it here so Tor clients can avoid
|
||||||
|
## using more than one of your relays in a single circuit. See
|
||||||
|
## https://www.torproject.org/docs/faq#MultipleRelays
|
||||||
|
## However, you should never include a bridge's fingerprint here, as it would
|
||||||
|
## break its concealability and potentially reveal its IP/TCP address.
|
||||||
|
##
|
||||||
|
## If you are running multiple relays, you MUST set this option.
|
||||||
|
##
|
||||||
|
## Note: do not use MyFamily on bridge relays.
|
||||||
|
#MyFamily $keyid,$keyid,...
|
||||||
|
|
||||||
|
## Uncomment this if you want your relay to be an exit, with the default
|
||||||
|
## exit policy (or whatever exit policy you set below).
|
||||||
|
## (If ReducedExitPolicy, ExitPolicy, or IPv6Exit are set, relays are exits.
|
||||||
|
## If none of these options are set, relays are non-exits.)
|
||||||
|
#ExitRelay 1
|
||||||
|
|
||||||
|
## Uncomment this if you want your relay to allow IPv6 exit traffic.
|
||||||
|
## (Relays do not allow any exit traffic by default.)
|
||||||
|
#IPv6Exit 1
|
||||||
|
|
||||||
|
## Uncomment this if you want your relay to be an exit, with a reduced set
|
||||||
|
## of exit ports.
|
||||||
|
#ReducedExitPolicy 1
|
||||||
|
|
||||||
|
## Uncomment these lines if you want your relay to be an exit, with the
|
||||||
|
## specified set of exit IPs and ports.
|
||||||
|
##
|
||||||
|
## A comma-separated list of exit policies. They're considered first
|
||||||
|
## to last, and the first match wins.
|
||||||
|
##
|
||||||
|
## If you want to allow the same ports on IPv4 and IPv6, write your rules
|
||||||
|
## using accept/reject *. If you want to allow different ports on IPv4 and
|
||||||
|
## IPv6, write your IPv6 rules using accept6/reject6 *6, and your IPv4 rules
|
||||||
|
## using accept/reject *4.
|
||||||
|
##
|
||||||
|
## If you want to _replace_ the default exit policy, end this with either a
|
||||||
|
## reject *:* or an accept *:*. Otherwise, you're _augmenting_ (prepending to)
|
||||||
|
## the default exit policy. Leave commented to just use the default, which is
|
||||||
|
## described in the man page or at
|
||||||
|
## https://www.torproject.org/documentation.html
|
||||||
|
##
|
||||||
|
## Look at https://www.torproject.org/faq-abuse.html#TypicalAbuses
|
||||||
|
## for issues you might encounter if you use the default exit policy.
|
||||||
|
##
|
||||||
|
## If certain IPs and ports are blocked externally, e.g. by your firewall,
|
||||||
|
## you should update your exit policy to reflect this -- otherwise Tor
|
||||||
|
## users will be told that those destinations are down.
|
||||||
|
##
|
||||||
|
## For security, by default Tor rejects connections to private (local)
|
||||||
|
## networks, including to the configured primary public IPv4 and IPv6 addresses,
|
||||||
|
## and any public IPv4 and IPv6 addresses on any interface on the relay.
|
||||||
|
## See the man page entry for ExitPolicyRejectPrivate if you want to allow
|
||||||
|
## "exit enclaving".
|
||||||
|
##
|
||||||
|
#ExitPolicy accept *:6660-6667,reject *:* # allow irc ports on IPv4 and IPv6 but no more
|
||||||
|
#ExitPolicy accept *:119 # accept nntp ports on IPv4 and IPv6 as well as default exit policy
|
||||||
|
#ExitPolicy accept *4:119 # accept nntp ports on IPv4 only as well as default exit policy
|
||||||
|
#ExitPolicy accept6 *6:119 # accept nntp ports on IPv6 only as well as default exit policy
|
||||||
|
#ExitPolicy reject *:* # no exits allowed
|
||||||
|
|
||||||
|
## Bridge relays (or "bridges") are Tor relays that aren't listed in the
|
||||||
|
## main directory. Since there is no complete public list of them, even an
|
||||||
|
## ISP that filters connections to all the known Tor relays probably
|
||||||
|
## won't be able to block all the bridges. Also, websites won't treat you
|
||||||
|
## differently because they won't know you're running Tor. If you can
|
||||||
|
## be a real relay, please do; but if not, be a bridge!
|
||||||
|
##
|
||||||
|
## Warning: when running your Tor as a bridge, make sure than MyFamily is
|
||||||
|
## NOT configured.
|
||||||
|
#BridgeRelay 1
|
||||||
|
## By default, Tor will advertise your bridge to users through various
|
||||||
|
## mechanisms like https://bridges.torproject.org/. If you want to run
|
||||||
|
## a private bridge, for example because you'll give out your bridge
|
||||||
|
## address manually to your friends, uncomment this line:
|
||||||
|
#PublishServerDescriptor 0
|
||||||
|
|
||||||
|
## Configuration options can be imported from files or folders using the %include
|
||||||
|
## option with the value being a path. This path can have wildcards. Wildcards are
|
||||||
|
## expanded first, using lexical order. Then, for each matching file or folder, the following
|
||||||
|
## rules are followed: if the path is a file, the options from the file will be parsed as if
|
||||||
|
## they were written where the %include option is. If the path is a folder, all files on that
|
||||||
|
## folder will be parsed following lexical order. Files starting with a dot are ignored. Files
|
||||||
|
## on subfolders are ignored.
|
||||||
|
## The %include option can be used recursively.
|
||||||
|
#%include /etc/torrc.d/*.conf
|
||||||
|
|
||||||
48
tor/torsocks.conf
Normal file
48
tor/torsocks.conf
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# This is the configuration for libtorsocks (transparent socks) for use
|
||||||
|
# with tor, which is providing a socks server on port 9050 by default.
|
||||||
|
#
|
||||||
|
# Lines beginning with # and blank lines are ignored
|
||||||
|
# Much more documentation than provided in these comments can be found in
|
||||||
|
#
|
||||||
|
# torsocks.conf(5), torsocks(1) and torsocks(8) manpages.
|
||||||
|
|
||||||
|
# Default Tor address and port. By default, Tor will listen on localhost for
|
||||||
|
# any SOCKS connection and relay the traffic on the Tor network.
|
||||||
|
TorAddress 127.0.0.1
|
||||||
|
TorPort 9050
|
||||||
|
|
||||||
|
# Tor hidden sites do not have real IP addresses. This specifies what range of
|
||||||
|
# IP addresses will be handed to the application as "cookies" for .onion names.
|
||||||
|
# Of course, you should pick a block of addresses which you aren't going to
|
||||||
|
# ever need to actually connect to. This is similar to the MapAddress feature
|
||||||
|
# of the main tor daemon.
|
||||||
|
OnionAddrRange 127.42.42.0/24
|
||||||
|
|
||||||
|
# SOCKS5 Username and Password. This is used to isolate the torsocks connection
|
||||||
|
# circuit from other streams in Tor. Use with option IsolateSOCKSAuth (on by
|
||||||
|
# default) in tor(1). TORSOCKS_USERNAME and TORSOCKS_PASSWORD environment
|
||||||
|
# variable overrides these options.
|
||||||
|
#SOCKS5Username <username>
|
||||||
|
#SOCKS5Password <password>
|
||||||
|
|
||||||
|
# Set Torsocks to accept inbound connections. If set to 1, listen() and
|
||||||
|
# accept() will be allowed to be used with non localhost address. (Default: 0)
|
||||||
|
#AllowInbound 1
|
||||||
|
|
||||||
|
# Set Torsocks to allow outbound connections to the loopback interface.
|
||||||
|
# If set to 1, connect() will be allowed to be used to the loopback interface
|
||||||
|
# bypassing Tor. If set to 2, in addition to TCP connect(), UDP operations to
|
||||||
|
# the loopback interface will also be allowed, bypassing Tor. This option
|
||||||
|
# should not be used by most users. (Default: 0)
|
||||||
|
#AllowOutboundLocalhost 1
|
||||||
|
|
||||||
|
# Set Torsocks to use an automatically generated SOCKS5 username/password based
|
||||||
|
# on the process ID and current time, that makes the connections to Tor use a
|
||||||
|
# different circuit from other existing streams in Tor on a per-process basis.
|
||||||
|
# If set, the SOCKS5Username and SOCKS5Password options must not be set.
|
||||||
|
# (Default: 0)
|
||||||
|
#IsolatePID 1
|
||||||
|
|
||||||
|
# Enable IPv6 support in torsocks. torsocks IPv6 support is currently incomplete
|
||||||
|
# and can have some tricky failure modes.
|
||||||
|
#EnableIPv6 1
|
||||||
Reference in New Issue
Block a user