Fabian Keil [Sun, 16 Dec 2012 11:06:40 +0000 (11:06 +0000)]
Remove an incorrect sentence in the toggle section
The toggle state doesn't affect whether or not the windows
version uses the tray icon and having to toggle Privoxy off
to not show the icon makes no sense (to me) anyway.
Reported by Zeno Kugy in #
3596395.
Fabian Keil [Sun, 16 Dec 2012 11:06:08 +0000 (11:06 +0000)]
Remove a useless comment in the toggle section
Fabian Keil [Sun, 16 Dec 2012 10:49:11 +0000 (10:49 +0000)]
Block imp.double.net/
Reported by David Bo in #
3070411.
Fabian Keil [Sat, 15 Dec 2012 13:01:39 +0000 (13:01 +0000)]
Block gm-link.com/ whis is used for email tracking
Reported by David Bo in #
1812733.
Fabian Keil [Sat, 15 Dec 2012 13:01:22 +0000 (13:01 +0000)]
Verify that requests to "bwp." are blocked
URL taken from #
1736879 submitted by Francois Marier.
Fabian Keil [Sat, 15 Dec 2012 13:00:59 +0000 (13:00 +0000)]
Bump copyright
Fabian Keil [Sat, 15 Dec 2012 13:00:49 +0000 (13:00 +0000)]
Stop pretending that updated versions of this file are released on their own
Fabian Keil [Fri, 14 Dec 2012 11:09:43 +0000 (11:09 +0000)]
Block /.*bannerid=
Reported by Adam Piggott in #
2975779.
Fabian Keil [Fri, 14 Dec 2012 10:59:50 +0000 (10:59 +0000)]
Block cltomedia.info/delivery/ and .adexprt.com/
Anonymously reported in #
2965254.
Fabian Keil [Fri, 14 Dec 2012 10:15:17 +0000 (10:15 +0000)]
Block requests to de17a.com/
Reported by David Bo in #
3061472.
Fabian Keil [Fri, 14 Dec 2012 10:14:51 +0000 (10:14 +0000)]
Block oskar.tradera.com/
Reported by David Bo in #
3060596.
Fabian Keil [Wed, 12 Dec 2012 15:16:28 +0000 (15:16 +0000)]
Block /scripts/webtrends\.js
Reported by johnd16 in #
3002729.
Fabian Keil [Wed, 12 Dec 2012 14:29:05 +0000 (14:29 +0000)]
Block requests for pool.*.adhese.com/
Reported by johnd16 in #
3002716.
Fabian Keil [Wed, 12 Dec 2012 14:15:23 +0000 (14:15 +0000)]
Update path pattern for Coremetrics and add tests
Pattern and URLs submitted by Adam Piggott #
3168443.
Fabian Keil [Wed, 12 Dec 2012 14:03:35 +0000 (14:03 +0000)]
Enable +fast-redirects{check-decoded-url} for tr.anp.se/
Reported by David Bo in #
3268832.
Fabian Keil [Wed, 12 Dec 2012 13:25:07 +0000 (13:25 +0000)]
Unblock .conrad.se/newsletter/banners/
Reported by David Bo in #
3413824.
Fabian Keil [Wed, 12 Dec 2012 13:24:51 +0000 (13:24 +0000)]
Block requests for .tynt.com/
Reported by Dan Stahlke in #
3421767.
Fabian Keil [Wed, 12 Dec 2012 13:24:26 +0000 (13:24 +0000)]
Unblock .bbci.co.uk/radio/
Reported by Adam Piggott in #
3569603.
Fabian Keil [Wed, 12 Dec 2012 12:56:50 +0000 (12:56 +0000)]
Block requests to service.maxymiser.net/
Reported by johnd16 in #
3118401 (with a previous URL).
Fabian Keil [Wed, 12 Dec 2012 12:56:00 +0000 (12:56 +0000)]
Disable fast-redirects for Google's "let's pretend your computer is infected" page
Fabian Keil [Sun, 9 Dec 2012 12:28:14 +0000 (12:28 +0000)]
Let fatal_error() write to the logfile right away
.. before showing the Windows-specific error message
which blocks until the user acknowledges it, thus
complicating automatic error detection.
Reported by Adriaan in #
3593603.
Fabian Keil [Sun, 9 Dec 2012 12:27:01 +0000 (12:27 +0000)]
Optionally let parse_header_time() sanity check strptime() results before trusting them
Broken strptime() implementations have caused problems in the
past and the most recent offender seems to be FreeBSD's libc:
http://www.freebsd.org/cgi/query-pr.cgi?pr=173421
Fabian Keil [Fri, 7 Dec 2012 12:50:37 +0000 (12:50 +0000)]
Downgrade a log message in change_request_destination()
Fabian Keil [Fri, 7 Dec 2012 12:50:17 +0000 (12:50 +0000)]
Fix warning on Debian GNU/Linux
Fabian Keil [Fri, 7 Dec 2012 12:49:47 +0000 (12:49 +0000)]
Correct a return code in compile_host_pattern()
Fabian Keil [Fri, 7 Dec 2012 12:49:20 +0000 (12:49 +0000)]
Reject URLs with invalid port
Previously they were parsed incorrectly and characters between
the port number and the first slash were silently dropped as
shown by curl test 187.
Fabian Keil [Fri, 7 Dec 2012 12:48:23 +0000 (12:48 +0000)]
Rebuild docs for +limit-cookie-lifetime{} and forward-socks5t
Fabian Keil [Fri, 7 Dec 2012 12:47:48 +0000 (12:47 +0000)]
Ditch $Log$ which broke the dok target due to Docbook being awesome
Fabian Keil [Fri, 7 Dec 2012 12:46:32 +0000 (12:46 +0000)]
Document forward-socks5t
Fabian Keil [Fri, 7 Dec 2012 12:46:04 +0000 (12:46 +0000)]
Accept and highlight: Optimistically sending 318 bytes of client headers intended for privoxy.org
Fabian Keil [Fri, 7 Dec 2012 12:45:20 +0000 (12:45 +0000)]
Add support for Tor's optimistic-data SOCKS extension
.. which can reduce the latency for requests on newly
created connections.
Currently only the headers are sent optimistically and
only if the client request has already been read completely
which rules out requests with large bodies.
Fabian Keil [Fri, 7 Dec 2012 12:43:55 +0000 (12:43 +0000)]
Add support for chunk-encoded client request bodies
It's simplistic and requires the whole request body to be buffered
before the request is forwarded. If the buffer limit is reached,
the request is rejected.
Previously chunk-encoded request bodies weren't guaranteed
to be forwarded correctly, so this can also be considered a
bug fix although chunk-encoded request bodies aren't commonly
used in the real world.
Fabian Keil [Fri, 7 Dec 2012 12:43:05 +0000 (12:43 +0000)]
Make any_loaded_file_changed() more reliable
Using the timestamps from csp->config->config_file_list
doesn't always work as they are only updated when the
config file is changed.
If an action or filter file is reloaded the timestamps
aren't updated so any_loaded_file_changed() continued
to report file changes.
Fabian Keil [Thu, 29 Nov 2012 09:57:39 +0000 (09:57 +0000)]
Use strdup_or_die() instead of strdup()
The strings are known to be short.
Fabian Keil [Thu, 29 Nov 2012 09:53:28 +0000 (09:53 +0000)]
Remove remnant of FEATURE_COOKIE_JAR
Fabian Keil [Sat, 24 Nov 2012 14:14:37 +0000 (14:14 +0000)]
Add #108: Allow to use a somewhat random string intead of PRIVOXY-FORCE
According to #
2963658 this was already on "the TODO list",
but apparently not on this one.
Fabian Keil [Sat, 24 Nov 2012 14:13:58 +0000 (14:13 +0000)]
Add #107: Support more pcrs variables
Fabian Keil [Sat, 24 Nov 2012 14:12:32 +0000 (14:12 +0000)]
Add Rick Sykes
He suggested something like the +limit-cookie-lifetime{} action in #
1049575.
Fabian Keil [Sat, 24 Nov 2012 14:11:09 +0000 (14:11 +0000)]
Fix sorting
Fabian Keil [Sat, 24 Nov 2012 14:09:11 +0000 (14:09 +0000)]
Set the SERVER_CONTENT_LENGTH_SET flag after creating a new Content-Length header
This allows to keep the client connection alive after
filtering a chunk-encoded response.
Fabian Keil [Sat, 24 Nov 2012 14:07:57 +0000 (14:07 +0000)]
Let server_set_cookie() stay silent when the cookie isn't modified
It previously would claim to have created a session cookie
after letting a session cookie pass unmodified.
Fabian Keil [Sat, 24 Nov 2012 14:06:18 +0000 (14:06 +0000)]
Allow HTTP/1.0 clients to signal interest in keep-alive through the Proxy-Connection header
While such client are rare in the real world, it doesn't
hurt and couple of curl tests rely on it.
Fabian Keil [Sat, 24 Nov 2012 14:04:29 +0000 (14:04 +0000)]
Stop considering client sockets tainted after receving a request with body
It hasn't been necessary for a while now and unnecessarily
causes test failures when using curl's test suite.
Fabian Keil [Sat, 24 Nov 2012 14:01:25 +0000 (14:01 +0000)]
Fix a harmless logic bug in mark_server_socket_tainted()
The log message was never printed while the intention was
to only suppress it if the socket was tainted already.
Copy&paste man struck again.
Fabian Keil [Sat, 24 Nov 2012 14:00:25 +0000 (14:00 +0000)]
Allow serve() to keep client connections open if the response content length is zero
Fabian Keil [Sat, 24 Nov 2012 13:59:00 +0000 (13:59 +0000)]
Allow closing curly braces as part of action values as long as they are escaped
Fabian Keil [Sat, 24 Nov 2012 13:58:17 +0000 (13:58 +0000)]
Move string_move() into miscutil.c and make it extern
It's not really a parser.
Fabian Keil [Sat, 24 Nov 2012 13:57:30 +0000 (13:57 +0000)]
Reduce indirection in parse_header_time()
Fabian Keil [Sat, 24 Nov 2012 13:55:51 +0000 (13:55 +0000)]
Increase MAX_AF_FILES to 30
An unused file slot is pretty inexpensive.
Fabian Keil [Sun, 11 Nov 2012 12:42:00 +0000 (12:42 +0000)]
Consistently put the tests between the tested actions and the TAG or URL pattern
It makes it more obvious which test belongs to which action section
and we already use this style in default.action.master.
Fabian Keil [Sun, 11 Nov 2012 12:41:12 +0000 (12:41 +0000)]
Remove a TODO comment about expiring cookies before the end of the session
Fabian Keil [Sun, 11 Nov 2012 12:40:53 +0000 (12:40 +0000)]
Disable limit-cookie-lifetime{} in two tests
Fabian Keil [Sun, 11 Nov 2012 12:39:56 +0000 (12:39 +0000)]
Add limit-cookie-lifetime{} support for the CGI editor
Fabian Keil [Sun, 11 Nov 2012 12:39:41 +0000 (12:39 +0000)]
Bump copyright
Fabian Keil [Sun, 11 Nov 2012 12:39:15 +0000 (12:39 +0000)]
Document limit-cookie-lifetime{}
Fabian Keil [Sun, 11 Nov 2012 12:38:42 +0000 (12:38 +0000)]
Add limit-cookie-lifetime{} action
It can be used to let cookies expire before the end of the session.
limit-cookie-lifetime{0} creates session cookies and can thus
replace the session-cookies-only action in the future.
Fabian Keil [Sun, 11 Nov 2012 12:37:42 +0000 (12:37 +0000)]
Only call time() in server_set_cookie() if the time is actually needed
Fabian Keil [Sun, 11 Nov 2012 12:37:10 +0000 (12:37 +0000)]
Fix a function description
Fabian Keil [Sun, 11 Nov 2012 12:36:45 +0000 (12:36 +0000)]
When parsing action files, use strdup_or_die() instead of strdup()
It simplifies the code, the input is trusted and errors
are already fatal anyway.
Fabian Keil [Sun, 11 Nov 2012 12:30:18 +0000 (12:30 +0000)]
Fix grammar
Fabian Keil [Fri, 9 Nov 2012 10:53:39 +0000 (10:53 +0000)]
Style fix for the previous commit
Fabian Keil [Fri, 9 Nov 2012 10:50:30 +0000 (10:50 +0000)]
Rebuild after documenting --config-test
Fabian Keil [Fri, 9 Nov 2012 10:49:59 +0000 (10:49 +0000)]
Document --config-test option
Fabian Keil [Fri, 9 Nov 2012 10:49:14 +0000 (10:49 +0000)]
Regenerate man page
Fabian Keil [Fri, 9 Nov 2012 10:48:56 +0000 (10:48 +0000)]
Sort options alphabetically
Fabian Keil [Fri, 9 Nov 2012 10:48:40 +0000 (10:48 +0000)]
Document the --config-test option
Fabian Keil [Fri, 9 Nov 2012 10:48:17 +0000 (10:48 +0000)]
Add a --config-test option
It lets Privoxy exit after checking whether or not the
configuration seems valid. The limitations noted in
TODO #22 and #23 still apply.
Logging the problem to the logfile if one is configured
and --no-daemon isn't used could be considered non-intuitive
and might also clobber messages emitted by an already running
instance.
Based on a patch by Ramkumar Chinchani.
Fabian Keil [Fri, 9 Nov 2012 10:47:42 +0000 (10:47 +0000)]
Let finish_http_response() advertise that the Content-Length header has been set
This allows jcc.c v1.412's serve() to keep the client connection open.
Fabian Keil [Fri, 9 Nov 2012 10:47:06 +0000 (10:47 +0000)]
Remove an obsolete master remark
Fabian Keil [Fri, 9 Nov 2012 10:46:50 +0000 (10:46 +0000)]
Disable fast-redirects for .googleapis.com/
Fabian Keil [Fri, 9 Nov 2012 10:46:06 +0000 (10:46 +0000)]
Remove an obsolete debug message in decompress_iob()
Fabian Keil [Fri, 9 Nov 2012 10:45:41 +0000 (10:45 +0000)]
Add a couple of hide-if-modified-since{} tests with different date formats
Fabian Keil [Fri, 9 Nov 2012 10:45:15 +0000 (10:45 +0000)]
Block /openx/www/delivery/
Fabian Keil [Mon, 29 Oct 2012 12:04:42 +0000 (12:04 +0000)]
Do not keep the client connection open if it has to be closed to mark the end of the response
Fabian Keil [Mon, 29 Oct 2012 12:02:55 +0000 (12:02 +0000)]
Clarify that the destination-change detection works for intercepted requests as well
For some values of "clarify".
Fabian Keil [Mon, 29 Oct 2012 12:01:31 +0000 (12:01 +0000)]
Fix an assertion in pcrs_compile_replacement(), nul bytes are actually fine
Fabian Keil [Mon, 29 Oct 2012 12:00:50 +0000 (12:00 +0000)]
In verify_request_length(), express 'unread client data available' in a more reasonable way
Fabian Keil [Mon, 29 Oct 2012 12:00:15 +0000 (12:00 +0000)]
Fix an assertion in verify_request_length()
Fabian Keil [Mon, 29 Oct 2012 11:59:34 +0000 (11:59 +0000)]
Update verify_request_length()'s description
Fabian Keil [Mon, 29 Oct 2012 11:59:08 +0000 (11:59 +0000)]
Accept and highlight: Tainting client socket 7 due to unread data.
Fabian Keil [Sat, 27 Oct 2012 11:02:04 +0000 (11:02 +0000)]
Unblock websupport.wdc.com/
Reported by Adam Piggot in #
3577851.
Fabian Keil [Tue, 23 Oct 2012 10:22:20 +0000 (10:22 +0000)]
Make a log message in serve() more consistent with the rest
Fabian Keil [Tue, 23 Oct 2012 10:20:14 +0000 (10:20 +0000)]
Unbreak compilation without FEATURE_CONNECTION_KEEP_ALIVE
Fabian Keil [Tue, 23 Oct 2012 10:19:04 +0000 (10:19 +0000)]
Make a couple of csp members visible when compiling without FEATURE_CONNECTION_KEEP_ALIVE
They are unconditionally used in a couple of log messages
and ifdef protecting them would be a mess.
Fabian Keil [Tue, 23 Oct 2012 10:18:19 +0000 (10:18 +0000)]
Hide get_expected_content_length() when compiling without FEATURE_CONNECTION_KEEP_ALIVE
It's not called and references functions that aren't available
in that scenario.
Fabian Keil [Tue, 23 Oct 2012 10:17:36 +0000 (10:17 +0000)]
Make socket_is_still_alive() visible when compiling without FEATURE_CONNECTION_KEEP_ALIVE
Nowadays it's used for general timeout detection as well.
Fabian Keil [Tue, 23 Oct 2012 10:16:52 +0000 (10:16 +0000)]
Make mark_connection_closed() visible when compiling without FEATURE_CONNECTION_KEEP_ALIVE
It's used all over the place, ifdef-protecting each
occurrence would be a mess, and calling it doesn't hurt.
Fabian Keil [Sun, 21 Oct 2012 14:40:44 +0000 (14:40 +0000)]
In serve(), stop considering connection sharing a reason to keep the client socket open
This should have been committed with 1.396.
Fabian Keil [Sun, 21 Oct 2012 13:42:46 +0000 (13:42 +0000)]
Add a digit missed in the previous commit
Fabian Keil [Sun, 21 Oct 2012 13:06:20 +0000 (13:06 +0000)]
Accept and highlight: Drained 180 bytes before closing socket 6
Fabian Keil [Sun, 21 Oct 2012 13:05:51 +0000 (13:05 +0000)]
Accept and highlight the extended log message for client sockets
Fabian Keil [Sun, 21 Oct 2012 13:05:09 +0000 (13:05 +0000)]
Bump generated Firefox version to 16
Fabian Keil [Sun, 21 Oct 2012 13:04:34 +0000 (13:04 +0000)]
Remember connections in case of destination mismatches in chat()
... when configured to share connection.
Fabian Keil [Sun, 21 Oct 2012 13:04:08 +0000 (13:04 +0000)]
Rephrase log messages in serve()
Fabian Keil [Sun, 21 Oct 2012 13:03:09 +0000 (13:03 +0000)]
Rebuild documentation for the new config directives in 3.0.20
Fabian Keil [Sun, 21 Oct 2012 13:02:01 +0000 (13:02 +0000)]
Document the tolerate-pipelining directive
Fabian Keil [Sun, 21 Oct 2012 13:01:40 +0000 (13:01 +0000)]
In the keep-alive section, acknowledge that there are other reasons why clients may hang
Fabian Keil [Sun, 21 Oct 2012 13:00:56 +0000 (13:00 +0000)]
Accept and highlight: Client request 4 arrived in time on socket 7.
Fabian Keil [Sun, 21 Oct 2012 13:00:36 +0000 (13:00 +0000)]
Accept and highlight: Closing client socket 8. Keep-alive: 1. Socket alive: 0. Data available: 0. Configuration file change detected: 0. Requests received: 11.
Fabian Keil [Sun, 21 Oct 2012 13:00:06 +0000 (13:00 +0000)]
Keep track of how many requests have been received on a client socket