[Privoxy-commits] [privoxy] 36/41: Add test scenario acl-ip-address-denied

User Git git at git.privoxy.org
Wed Mar 20 12:39:13 CET 2024


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 13778c50cddb5458b180a378d7066f9890ba5345
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Fri Jun 10 17:15:52 2022 +0200

    Add test scenario acl-ip-address-denied
    
    Sponsored by: Privoxy project funds collected at SPI
---
 tests/cts/acl-ip-address-denied/data/test1   | 25 +++++++++++++++++++++++++
 tests/cts/acl-ip-address-denied/privoxy.conf | 18 ++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/tests/cts/acl-ip-address-denied/data/test1 b/tests/cts/acl-ip-address-denied/data/test1
new file mode 100644
index 00000000..354a8ada
--- /dev/null
+++ b/tests/cts/acl-ip-address-denied/data/test1
@@ -0,0 +1,25 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+</keywords>
+</info>
+
+<client>
+<server>
+none
+</server>
+<name>
+Request from denied IP address
+</name>
+<command>
+http://www.privoxy.org/%TESTNUMBER
+</command>
+</client>
+<verify>
+<errorcode>
+56
+</errorcode>
+</verify>
+</testcase>
diff --git a/tests/cts/acl-ip-address-denied/privoxy.conf b/tests/cts/acl-ip-address-denied/privoxy.conf
new file mode 100644
index 00000000..b5ffdca6
--- /dev/null
+++ b/tests/cts/acl-ip-address-denied/privoxy.conf
@@ -0,0 +1,18 @@
+listen-address 127.0.0.1:9119
+
+debug     1 # Log the destination for each request Privoxy let through. See also debug 1024.
+debug     2 # show each connection status
+debug     4 # show tagging-related messages
+debug     8 # show header parsing
+debug    32 # debug force feature
+debug    64 # debug regular expression filters
+debug   128 # debug redirects
+debug   256 # debug GIF de-animation
+debug   512 # Common Log Format
+debug  1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
+debug  4096 # Startup banner and warnings.
+debug  8192 # Non-fatal errors
+
+deny-access 127.0.0.1
+permit-access 127.0.0.2
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list