X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2Fuser-manual%2Factions-file.html;h=1e2b7341a426936c2e8265fbd3c97c2e9de39be0;hp=add8d7ce18dbcd3302b96ef2298cc9dd37560d36;hb=873efe14859c0fb3f53a905eb346c36cf5fe7eda;hpb=c8793ac1fddebec7d03a4b65c1551f8d4565fef9 diff --git a/doc/webserver/user-manual/actions-file.html b/doc/webserver/user-manual/actions-file.html index add8d7ce..1e2b7341 100644 --- a/doc/webserver/user-manual/actions-file.html +++ b/doc/webserver/user-manual/actions-file.html @@ -4,7 +4,7 @@ Actions Files - + @@ -15,7 +15,7 @@ + +
+

8.5.6. client-header-tagger

Typical use:
@@ -942,7 +997,7 @@ TAG:^IP-ADDRESS: 10\.0\.0\.1$
-

8.5.6. +

8.5.7. content-type-overwrite

@@ -1011,7 +1066,7 @@ www.example.net/.*style

-

8.5.7. crunch-client-header

+

8.5.8. crunch-client-header

Typical use:
@@ -1070,7 +1125,7 @@ www.example.net/.*style
-

8.5.8. crunch-if-none-match

+

8.5.9. crunch-if-none-match

Typical use:
@@ -1122,7 +1177,7 @@ www.example.net/.*style
-

8.5.9. +

8.5.10. crunch-incoming-cookies

@@ -1168,7 +1223,7 @@ www.example.net/.*style

-

8.5.10. +

8.5.11. crunch-server-header

@@ -1228,7 +1283,7 @@ www.example.net/.*style

-

8.5.11. +

8.5.12. crunch-outgoing-cookies

@@ -1273,7 +1328,7 @@ www.example.net/.*style

-

8.5.12. deanimate-gifs

+

8.5.13. deanimate-gifs

Typical use:
@@ -1316,7 +1371,7 @@ www.example.net/.*style
-

8.5.13. delay-response

+

8.5.14. delay-response

Typical use:
@@ -1359,7 +1414,7 @@ www.example.net/.*style
-

8.5.14. +

8.5.15. downgrade-http-version

@@ -1406,7 +1461,7 @@ problem-host.example.com

-

8.5.15. external-filter

+

8.5.16. external-filter

Typical use:
@@ -1468,7 +1523,7 @@ problem-host.example.com
-

8.5.16. fast-redirects

+

8.5.17. fast-redirects

Typical use:
@@ -1549,7 +1604,7 @@ problem-host.example.com
-

8.5.17. filter

+

8.5.18. filter

Typical use:
@@ -1587,11 +1642,11 @@ problem-host.example.com completely rendered doesn't change much, but it may be perceived as slower since the page is not incrementally displayed.) This effect will be more noticeable on slower connections.

"Rolling your own" filters requires a knowledge of "Regular - Expressions" and "Regular + Expressions" and "HTML". This is very powerful feature, and potentially very intrusive. Filters should be used with caution, and where an equivalent "action" is not available.

-

The amount of data that can be filtered is limited to the The amount of data that can be filtered is limited by the buffer-limit option in the main config file. The default is 4096 KB (4 Megs). Once this limit is exceeded, the buffered data, and all pending data, is passed through unfiltered.

@@ -1823,6 +1878,15 @@ problem-host.example.com +

+ + + + +
+
+filter{github}              # Removes the annoying "Sign-Up" banner and the Cookie disclaimer.
+

@@ -1832,6 +1896,14 @@ problem-host.example.com
+

+ + + + +
+
+filter{imdb}                # Removes some ads on IMDb.
+

@@ -1859,12 +1931,21 @@ problem-host.example.com
+

+ + + + +
+
+filter{sourceforge}         # Reduces the amount of ads for proprietary software on SourceForge.
+
-

8.5.18. force-text-mode

+

8.5.19. force-text-mode

Typical use:
@@ -1921,7 +2002,7 @@ problem-host.example.com
-

8.5.19. forward-override

+

8.5.20. forward-override

Typical use:
@@ -2028,7 +2109,7 @@ TAG:^User-Agent: fetch libfetch/2\.0$
-

8.5.20. +

8.5.21. handle-as-empty-document

@@ -2081,7 +2162,7 @@ example.org/.*\.js$

-

8.5.21. handle-as-image

+

8.5.22. handle-as-image

Typical use:
@@ -2141,7 +2222,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash
-

8.5.22. +

8.5.23. hide-accept-language

@@ -2194,7 +2275,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash

-

8.5.23. +

8.5.24. hide-content-disposition

@@ -2250,7 +2331,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash

-

8.5.24. +

8.5.25. hide-if-modified-since

@@ -2309,7 +2390,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash

-

8.5.25. hide-from-header

+

8.5.26. hide-from-header

Typical use:
@@ -2360,7 +2441,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash
-

8.5.26. hide-referrer

8.5.27. hide-referrer
@@ -2441,7 +2522,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash
-

8.5.27. hide-user-agent

+

8.5.28. hide-user-agent

Typical use:
@@ -2485,7 +2566,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash occasionally useful to forge this in order to access sites that won't let you in otherwise (though there may be a good reason in some cases).

More information on known user-agent strings can be found at http://www.user-agents.org/ and http://www.user-agents.org/ and http://en.wikipedia.org/wiki/User_agent.

Example usage:
@@ -2493,7 +2574,8 @@ nasty-banner-server.example.com/junk.cgi\?output=trash
-
+hide-user-agent{Netscape 6.1 (X11; I; Linux 2.4.18 i686)}
+
+hide-user-agent{Mozilla/5.0 (X11; ElectroBSD i386; rv:78.0) Gecko/20100101 Firefox/78.0}
@@ -2502,7 +2584,7 @@ nasty-banner-server.example.com/junk.cgi\?output=trash
-

8.5.28. https-inspection

+

8.5.29. https-inspection

Typical use:
@@ -2549,7 +2631,7 @@ www.example.com
-

8.5.29. +

8.5.30. ignore-certificate-errors

@@ -2596,7 +2678,7 @@ www.example.com

-

8.5.30. limit-connect

+

8.5.31. limit-connect

Typical use:
@@ -2648,7 +2730,7 @@ www.example.com
-

8.5.31. +

8.5.32. limit-cookie-lifetime

@@ -2700,7 +2782,7 @@ www.example.com

-

8.5.32. prevent-compression

+

8.5.33. prevent-compression

Typical use:
@@ -2772,7 +2854,7 @@ www.example.com
-

8.5.33. +

8.5.34. overwrite-last-modified

@@ -2834,7 +2916,7 @@ www.example.com

-

8.5.34. redirect

+

8.5.35. redirect

Typical use:
@@ -2930,7 +3012,7 @@ www.privoxy.org/user-manual/
-

8.5.35. +

8.5.36. server-header-filter

@@ -2980,7 +3062,7 @@ example.org/instance-that-is-delivered-as-xml-but-is-not

-

8.5.36. +

8.5.37. server-header-tagger

@@ -3037,7 +3119,45 @@ TAG:^image/

-

8.5.37. +

8.5.38. suppress-tag

+
+
+
Typical use:
+
+

Suppress client or server tag.

+
+
Effect:
+
+

Server or client tags to which this action applies are not added to the request, thus making all + actions that are specific to these request tags inactive.

+
+
Type:
+
+

Multi-value.

+
+
Parameter:
+
+

The result tag of a server-header or client-header tagger, as defined in one of the filter files.

+
+
Example usage (section):
+
+ + + + +
+
# Suppress tag produced by range-requests client-header tagger for requests coming from address 10.0.0.1
+{+suppress-tag{RANGE-REQUEST}}
+TAG:^IP-ADDRESS: 10\.0\.0\.1$
+
+
+
+
+

+
+

8.5.39. session-cookies-only

@@ -3099,7 +3219,7 @@ TAG:^image/
-

8.5.38. set-image-blocker

+

8.5.40. set-image-blocker

Typical use:
@@ -3188,7 +3308,7 @@ TAG:^image/
-

8.5.39. Summary

+

8.5.41. Summary

Note that many of these actions have the potential to cause a page to misbehave, possibly even not to display at all. There are many ways a site designer may choose to design his site, and what HTTP header content, and other criteria, he may depend on. There is no way to have hard and fast rules for all sites. See