privoxy.git
22 years agoAllowing unanchored domain patterns to back off and retry
jongfoster [Thu, 7 Jun 2001 23:10:26 +0000 (23:10 +0000)]
Allowing unanchored domain patterns to back off and retry
if they partially match.  Optimized right-anchored patterns.
Moving ACL and forward files into config file.
Replacing struct gateway with struct forward_spec

22 years agoCosmetic indentation changes.
jongfoster [Thu, 7 Jun 2001 23:09:19 +0000 (23:09 +0000)]
Cosmetic indentation changes.

22 years agoForward and ACL edit options removed.
jongfoster [Thu, 7 Jun 2001 23:08:54 +0000 (23:08 +0000)]
Forward and ACL edit options removed.
Config edit option renamed from "&Junkbuster" to "&Configuration".

22 years agoForward and ACL edit options removed.
jongfoster [Thu, 7 Jun 2001 23:08:12 +0000 (23:08 +0000)]
Forward and ACL edit options removed.

22 years agoThe host parameter to connect_to() is now const.
jongfoster [Thu, 7 Jun 2001 23:06:09 +0000 (23:06 +0000)]
The host parameter to connect_to() is now const.

22 years agoRemoving code related to old forward and ACL files.
jongfoster [Thu, 7 Jun 2001 23:05:19 +0000 (23:05 +0000)]
Removing code related to old forward and ACL files.

22 years agoMade get_actions() static.
jongfoster [Thu, 7 Jun 2001 23:04:34 +0000 (23:04 +0000)]
Made get_actions() static.

22 years agoAdded standard comment at top of file.
jongfoster [Thu, 7 Jun 2001 23:03:56 +0000 (23:03 +0000)]
Added standard comment at top of file.

22 years agoignore logfile
swa [Thu, 7 Jun 2001 17:29:51 +0000 (17:29 +0000)]
ignore logfile

22 years agocosmetics
swa [Thu, 7 Jun 2001 17:28:10 +0000 (17:28 +0000)]
cosmetics

22 years agoadded suse build section
swa [Thu, 7 Jun 2001 17:27:45 +0000 (17:27 +0000)]
added suse build section

22 years agoheader fixed
swa [Thu, 7 Jun 2001 17:18:44 +0000 (17:18 +0000)]
header fixed

22 years agosuse spec file (as shamelessly used from suse's 2.0-14 version)
swa [Thu, 7 Jun 2001 17:15:13 +0000 (17:15 +0000)]
suse spec file (as shamelessly used from suse's 2.0-14 version)

22 years agomake_path() no longer adds '/' if the dir already ends in '/'.
joergs [Thu, 7 Jun 2001 14:51:38 +0000 (14:51 +0000)]
make_path() no longer adds '/' if the dir already ends in '/'.

22 years agoMissing make_path() added for re_filterfile.
joergs [Thu, 7 Jun 2001 14:46:25 +0000 (14:46 +0000)]
Missing make_path() added for re_filterfile.

22 years agohttp://i.j.b/ijb-send-banner changed to http://i.j.b/send-banner
joergs [Thu, 7 Jun 2001 14:43:51 +0000 (14:43 +0000)]
i.j.b/ijb-send-banner changed to http://i.j.b/send-banner

22 years agoslight mistake in make_path, unix path style is /.
swa [Thu, 7 Jun 2001 14:43:17 +0000 (14:43 +0000)]
slight mistake in make_path, unix path style is /.

22 years agoFix misplaced comment start.
Sarantis Paskalis [Wed, 6 Jun 2001 09:37:59 +0000 (09:37 +0000)]
Fix misplaced comment start.

22 years agoAdding VC++ temporary files, and Win32 config file.
jongfoster [Tue, 5 Jun 2001 22:36:42 +0000 (22:36 +0000)]
Adding VC++ temporary files, and Win32 config file.

22 years agoFixed minor memory leak.
jongfoster [Tue, 5 Jun 2001 22:33:54 +0000 (22:33 +0000)]
Fixed minor memory leak.
Also now uses make_path to prepend the pathnames.

22 years agoNew function make_path() to splice directory and file names together.
jongfoster [Tue, 5 Jun 2001 22:32:01 +0000 (22:32 +0000)]
New function make_path() to splice directory and file names together.

22 years agoNow uses _snprintf() in place of snprintf() under Win32.
jongfoster [Tue, 5 Jun 2001 20:04:09 +0000 (20:04 +0000)]
Now uses _snprintf() in place of snprintf() under Win32.

22 years agoNow compiles in cgi.[ch]
jongfoster [Tue, 5 Jun 2001 20:01:25 +0000 (20:01 +0000)]
Now compiles in cgi.[ch]

22 years agoFixing multiline character string (a GCC-only "feature"), and snprintf (it's _snprint...
jongfoster [Tue, 5 Jun 2001 19:59:16 +0000 (19:59 +0000)]
Fixing multiline character string (a GCC-only "feature"), and snprintf (it's _snprintf under VC++).

22 years agofiles are now prefixed with either `confdir' or `logdir'.
swa [Mon, 4 Jun 2001 18:31:58 +0000 (18:31 +0000)]
files are now prefixed with either `confdir' or `logdir'.
`make redhat-dist' replaces both entries confdir and logdir
with redhat values

22 years agoredirect did not work due to missing /
swa [Mon, 4 Jun 2001 11:28:53 +0000 (11:28 +0000)]
redirect did not work due to missing /

22 years ago`make redhatr-dist' now works. Except for the paths
swa [Mon, 4 Jun 2001 10:44:57 +0000 (10:44 +0000)]
`make redhatr-dist' now works. Except for the paths
in the config file.

22 years agoshow version string of cgi.h and cgi.c
swa [Mon, 4 Jun 2001 10:41:52 +0000 (10:41 +0000)]
show version string of cgi.h and cgi.c

22 years agomoved stuff to cgi.c
oes [Sun, 3 Jun 2001 19:13:05 +0000 (19:13 +0000)]
moved stuff to cgi.c

22 years agoadded struct map, added struct http_response, changed struct interceptors to struct...
oes [Sun, 3 Jun 2001 19:12:58 +0000 (19:12 +0000)]
added struct map, added struct http_response, changed struct interceptors to struct cgi_dispatcher, moved HTML stuff to cgi.h

22 years agoadded FIXME
oes [Sun, 3 Jun 2001 19:12:45 +0000 (19:12 +0000)]
added FIXME

22 years agodeleted const struct interceptors
oes [Sun, 3 Jun 2001 19:12:38 +0000 (19:12 +0000)]
deleted const struct interceptors

22 years agointroduced bindup()
oes [Sun, 3 Jun 2001 19:12:30 +0000 (19:12 +0000)]
introduced bindup()

22 years agofunctions for new struct map, extended enlist_unique
oes [Sun, 3 Jun 2001 19:12:24 +0000 (19:12 +0000)]
functions for new struct map, extended enlist_unique

22 years agointroduced new cgi handling
oes [Sun, 3 Jun 2001 19:12:16 +0000 (19:12 +0000)]
introduced new cgi handling

22 years agofilled comment
oes [Sun, 3 Jun 2001 19:12:07 +0000 (19:12 +0000)]
filled comment

22 years agoextracted-CGI relevant stuff
oes [Sun, 3 Jun 2001 19:12:00 +0000 (19:12 +0000)]
extracted-CGI relevant stuff

22 years agointroduced confdir option
oes [Sun, 3 Jun 2001 19:11:54 +0000 (19:11 +0000)]
introduced confdir option

22 years agoadapted to new enlist_unique arg format
oes [Sun, 3 Jun 2001 19:11:48 +0000 (19:11 +0000)]
adapted to new enlist_unique arg format

22 years agorevoking monster-commit
oes [Sun, 3 Jun 2001 18:52:46 +0000 (18:52 +0000)]
revoking monster-commit

22 years agoChanged confdir to . to reflect sourcetree structure
oes [Sun, 3 Jun 2001 18:38:11 +0000 (18:38 +0000)]
Changed confdir to . to reflect sourcetree structure

22 years agomoved templates to ./templates/
swa [Sun, 3 Jun 2001 17:28:49 +0000 (17:28 +0000)]
moved templates to ./templates/

22 years agoswa for oes
swa [Sun, 3 Jun 2001 17:10:04 +0000 (17:10 +0000)]
swa for oes

22 years agoswa for oes: reversed my earlier change
swa [Sun, 3 Jun 2001 17:09:09 +0000 (17:09 +0000)]
swa for oes: reversed my earlier change

22 years agoswa for oes
swa [Sun, 3 Jun 2001 17:07:27 +0000 (17:07 +0000)]
swa for oes

22 years agocompile cgi.c (for andreas' GUI)
swa [Sun, 3 Jun 2001 13:57:26 +0000 (13:57 +0000)]
compile cgi.c (for andreas' GUI)

22 years agoMakefile/in
oes [Sun, 3 Jun 2001 11:04:49 +0000 (11:04 +0000)]
Makefile/in

introduced cgi.c

actions.c:

adapted to new enlist_unique arg format

conf loadcfg.c

introduced confdir option

filters.c filtrers.h

 extracted-CGI relevant stuff

jbsockets.c

 filled comment

jcc.c

 support for new cgi mechansim

list.c list.h

functions for new list type: "map"
extended enlist_unique

miscutil.c .h
introduced bindup()

parsers.c parsers.h

deleted const struct interceptors

pcrs.c
added FIXME

project.h

added struct map
added struct http_response
changes struct interceptors to struct cgi_dispatcher
moved HTML stuff to cgi.h

re_filterfile:

changed

showargs.c
NO TIME LEFT

22 years agodon't commit automatically generated files or binariess
swa [Sun, 3 Jun 2001 09:43:53 +0000 (09:43 +0000)]
don't commit automatically generated files or binariess

22 years agodon't commit automatically generated files or binariess
swa [Sun, 3 Jun 2001 09:37:52 +0000 (09:37 +0000)]
don't commit automatically generated files or binariess

22 years agoRemoving "tinygif" option.
jongfoster [Fri, 1 Jun 2001 20:17:10 +0000 (20:17 +0000)]
Removing "tinygif" option.

22 years agoFixing file copying.
jongfoster [Fri, 1 Jun 2001 20:15:05 +0000 (20:15 +0000)]
Fixing file copying.

22 years agoAdded +image-blocker{} option - comment and default setting.
jongfoster [Fri, 1 Jun 2001 20:08:59 +0000 (20:08 +0000)]
Added +image-blocker{} option - comment and default setting.

22 years agoNow uses action +image-blocker{} rather than config->tinygif
jongfoster [Fri, 1 Jun 2001 20:07:23 +0000 (20:07 +0000)]
Now uses action +image-blocker{} rather than config->tinygif

22 years agoRemoved support for "tinygif" option - moved to actions file.
jongfoster [Fri, 1 Jun 2001 20:06:24 +0000 (20:06 +0000)]
Removed support for "tinygif" option - moved to actions file.

22 years agoSupport for +image-blocker{}: added ACTION_IMAGE_BLOCKER
jongfoster [Fri, 1 Jun 2001 20:05:36 +0000 (20:05 +0000)]
Support for +image-blocker{}: added ACTION_IMAGE_BLOCKER
constant, and removed csp->tinygif.

22 years agoAdded +image-blocker{string}
jongfoster [Fri, 1 Jun 2001 20:04:19 +0000 (20:04 +0000)]
Added +image-blocker{string}

22 years agoBetter memory management - current_action->strings[] now
jongfoster [Fri, 1 Jun 2001 20:03:42 +0000 (20:03 +0000)]
Better memory management - current_action->strings[] now
contains copies of the strings, not the original.

22 years agoReplaced "list_share" with "list" - the tiny memory gain was not
jongfoster [Fri, 1 Jun 2001 18:49:17 +0000 (18:49 +0000)]
Replaced "list_share" with "list" - the tiny memory gain was not
worth the extra complexity.

22 years agoChanging the calls to strerr() to check HAVE_STRERR (which is defined
jongfoster [Fri, 1 Jun 2001 18:14:49 +0000 (18:14 +0000)]
Changing the calls to strerr() to check HAVE_STRERR (which is defined
in config.h if appropriate) rather than the NO_STRERR macro.

22 years agoCorrecting target directory of chartables.c
jongfoster [Fri, 1 Jun 2001 18:12:50 +0000 (18:12 +0000)]
Correcting target directory of chartables.c

22 years agoThis file now just includes JunkBuster's config.h, to prevent duplication
jongfoster [Fri, 1 Jun 2001 17:57:11 +0000 (17:57 +0000)]
This file now just includes JunkBuster's config.h, to prevent duplication
and make it easier to build.  (In fact, this file wasn't ever updated
before, so this is a bugfix).

22 years agoRemoving generated files config.h and pcre/chartables.c
jongfoster [Fri, 1 Jun 2001 17:56:07 +0000 (17:56 +0000)]
Removing generated files config.h and pcre/chartables.c
Now use a custom build step to copy config.h.win to config.h
New VC++ project pcre/vc_dftables.dsp will generate pcre/chartables.c
Also adding the new files list.[ch], actions.[ch] to the console build.

22 years agoCorrecting some typos, and an obsolete comment.
jongfoster [Fri, 1 Jun 2001 17:05:32 +0000 (17:05 +0000)]
Correcting some typos, and an obsolete comment.

22 years agoAdapted patterns to new syntax and fixed yahoo.com login
oes [Fri, 1 Jun 2001 13:56:20 +0000 (13:56 +0000)]
Adapted patterns to new syntax and fixed yahoo.com login

22 years agoAdded constants for anchoring selection bitmap
oes [Fri, 1 Jun 2001 10:32:47 +0000 (10:32 +0000)]
Added constants for anchoring selection bitmap

22 years agoAdded character class matching to trivimatch; renamed to simplematch
oes [Fri, 1 Jun 2001 10:31:51 +0000 (10:31 +0000)]
Added character class matching to trivimatch; renamed to simplematch

22 years agoAdded optional left-anchoring to domaincmp
oes [Fri, 1 Jun 2001 10:30:55 +0000 (10:30 +0000)]
Added optional left-anchoring to domaincmp

22 years agoFixed line continuation problem
oes [Fri, 1 Jun 2001 03:27:04 +0000 (03:27 +0000)]
Fixed line continuation problem

22 years agoRemoving obsolete settings.
jongfoster [Thu, 31 May 2001 21:52:16 +0000 (21:52 +0000)]
Removing obsolete settings.

22 years agoRemoving some commented out, obsolete blocks of code.
jongfoster [Thu, 31 May 2001 21:40:00 +0000 (21:40 +0000)]
Removing some commented out, obsolete blocks of code.

22 years agoAdded list.[ch] and actions.[ch]
jongfoster [Thu, 31 May 2001 21:38:52 +0000 (21:38 +0000)]
Added list.[ch] and actions.[ch]

22 years agoGUI changes to rename "permissions file" to "actions file".
jongfoster [Thu, 31 May 2001 21:37:11 +0000 (21:37 +0000)]
GUI changes to rename "permissions file" to "actions file".

22 years agoAdded RCS for actions.[ch] and list.[ch]
jongfoster [Thu, 31 May 2001 21:36:07 +0000 (21:36 +0000)]
Added RCS for actions.[ch] and list.[ch]

22 years agoChanges for new actions file, replacing permissionsfile
jongfoster [Thu, 31 May 2001 21:33:53 +0000 (21:33 +0000)]
Changes for new actions file, replacing permissionsfile
and parts of the config file.  Also added support for
list_shared.

22 years agoChanged to include many of the new actions.
jongfoster [Thu, 31 May 2001 21:32:15 +0000 (21:32 +0000)]
Changed to include many of the new actions.
This should really be renamed actionsfile.

22 years agoRemoved list code - it's now in list.[ch]
jongfoster [Thu, 31 May 2001 21:30:33 +0000 (21:30 +0000)]
Removed list code - it's now in list.[ch]
Renamed "permission" to "action", and changed many features
to use the actions file rather than the global config.

22 years agoRemoved all permissionsfile code - it's now called the actions
jongfoster [Thu, 31 May 2001 21:28:49 +0000 (21:28 +0000)]
Removed all permissionsfile code - it's now called the actions
file, and (almost) all the code is in actions.c

22 years agoRemoved many options from the config file and into the
jongfoster [Thu, 31 May 2001 21:27:13 +0000 (21:27 +0000)]
Removed many options from the config file and into the
"actions" file: add_forwarded, suppress_vanilla_wafer,
wafer, add_header, user_agent, referer, from
Also globally replaced "permission" with "action".

22 years agoChanged "permission" to "action" throughout.
jongfoster [Thu, 31 May 2001 21:24:47 +0000 (21:24 +0000)]
Changed "permission" to "action" throughout.
Removed DEFAULT_USER_AGENT - it must now be specified manually.
Moved vanilla wafer check into chat(), since we must now
decide whether or not to add it based on the URL.

22 years agoPermissionsfile / actions file changes:
jongfoster [Thu, 31 May 2001 21:21:30 +0000 (21:21 +0000)]
Permissionsfile / actions file changes:
- Changed "permission" to "action" throughout
- changes to file format to allow string parameters
- Moved helper functions to actions.c

22 years agoAdded files actions.[ch], actionlist.h, list.[ch] to Makefile
jongfoster [Thu, 31 May 2001 21:18:45 +0000 (21:18 +0000)]
Added files actions.[ch], actionlist.h, list.[ch] to Makefile

22 years agoNew file containing list of the actions to parse for.
jongfoster [Thu, 31 May 2001 21:17:20 +0000 (21:17 +0000)]
New file containing list of the actions to parse for.

22 years agoMoved functions to process the action list into this new file.
jongfoster [Thu, 31 May 2001 21:16:46 +0000 (21:16 +0000)]
Moved functions to process the action list into this new file.

22 years ago- Moved linked list support to new "list.c" file.
jongfoster [Thu, 31 May 2001 21:11:53 +0000 (21:11 +0000)]
- Moved linked list support to new "list.c" file.
  Structure definitions are still in project.h,
  function prototypes are now in "list.h".
- Added support for "struct list_share", which is identical
  to "struct list" except it saves memory by not duplicating
  the strings.  Obviously, this only works if there is some
  other way of managing the memory used by the strings.
  (These list_share lists are used for lists which last
  for only 1 request, and where all the list entries are
  just coming directly from entries in the actionsfile.)
  Note that you still need to destroy list_share lists
  properly to free the nodes - it's only the strings
  which are shared.

22 years ago - Enhanced domain part globbing with infix and prefix asterisk
oes [Thu, 31 May 2001 17:35:20 +0000 (17:35 +0000)]
 - Enhanced domain part globbing with infix and prefix asterisk
   matching and optional unanchored operation

22 years agoCRLF -> LF
oes [Thu, 31 May 2001 17:33:13 +0000 (17:33 +0000)]
CRLF -> LF

22 years agoIncluded some changes from my personal permissionsfile.
joergs [Thu, 31 May 2001 15:50:59 +0000 (15:50 +0000)]
Included some changes from my personal permissionsfile.

22 years ago - load_config_line() and load_permissions_file() now use chomp()
oes [Tue, 29 May 2001 23:25:24 +0000 (23:25 +0000)]
 - load_config_line() and load_permissions_file() now use chomp()

22 years ago - Moved strsav() from showargs to miscutil
oes [Tue, 29 May 2001 23:11:38 +0000 (23:11 +0000)]
 - Moved strsav() from showargs to miscutil

22 years ago - Introduced chomp()
oes [Tue, 29 May 2001 23:10:09 +0000 (23:10 +0000)]
 - Introduced chomp()
 - Moved strsav() from showargs to miscutil

22 years agoAmigaOS bugfix: PCRS needs a lot of stack, stacksize for child threads
joergs [Tue, 29 May 2001 20:14:01 +0000 (20:14 +0000)]
AmigaOS bugfix: PCRS needs a lot of stack, stacksize for child threads
increased.

22 years ago'/* inside comment' warning removed.
joergs [Tue, 29 May 2001 20:11:19 +0000 (20:11 +0000)]
'/* inside comment' warning removed.

22 years agoHTTP_REDIRECT_TEMPLATE fixed.
joergs [Tue, 29 May 2001 20:09:15 +0000 (20:09 +0000)]
HTTP_REDIRECT_TEMPLATE fixed.

22 years agoFixed exit() macro not exiting if called before InitAmiga()
joergs [Tue, 29 May 2001 20:05:06 +0000 (20:05 +0000)]
Fixed exit() macro not exiting if called before InitAmiga()
(junkbuster --help and --version).

22 years agoChanges for AmigaOS added.
joergs [Tue, 29 May 2001 20:02:48 +0000 (20:02 +0000)]
Changes for AmigaOS added.

22 years agoTrying to make sure that locally changed files
oes [Tue, 29 May 2001 12:47:12 +0000 (12:47 +0000)]
Trying to make sure that locally changed files
don't get accidentally committed. Use -f for these.

22 years agoChanged banner blocking patterns to new interceptor
oes [Tue, 29 May 2001 11:54:01 +0000 (11:54 +0000)]
Changed banner blocking patterns to new interceptor

22 years ago"See why" link added to "blocked" page
oes [Tue, 29 May 2001 11:53:23 +0000 (11:53 +0000)]
"See why" link added to "blocked" page

22 years agoConditional compilation of w32_socket_error
oes [Tue, 29 May 2001 11:52:21 +0000 (11:52 +0000)]
Conditional compilation of w32_socket_error

22 years agoUnified blocklist/imagelist/permissionslist.
jongfoster [Tue, 29 May 2001 09:50:24 +0000 (09:50 +0000)]
Unified blocklist/imagelist/permissionslist.
File format is still under discussion, but the internal changes
are (mostly) done.

Also modified interceptor behaviour:
- We now intercept all URLs beginning with one of the following
  prefixes (and *only* these prefixes):
    * http://i.j.b/
    * http://ijbswa.sf.net/config/
    * http://ijbswa.sourceforge.net/config/
- New interceptors "home page" - go to http://i.j.b/ to see it.
- Internal changes so that intercepted and fast redirect pages
  are not replaced with an image.
- Interceptors now have the option to send a binary page direct
  to the client. (i.e. ijb-send-banner uses this)
- Implemented show-url-info interceptor.  (Which is why I needed
  the above interceptors changes - a typical URL is
  "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
  The previous mechanism would not have intercepted that, and
  if it had been intercepted then it then it would have replaced
  it with an image.)