[Privoxy-users] HTTP status code for blocked pages

Fabian Keil fk at fabiankeil.de
Sat Jul 31 13:09:13 UTC 2021


Jamie <lists.privoxy.org at jimbobmcgee.com> wrote on 2021-07-30:

> Is there any way to alter the HTTP status code returned by Privoxy when
> a page is blocked?  The "normal" action is to present a response page
> with a "Go there anyway" link, but that page isn't being shown for me in
> Firefox -- instead it shows the default Firefox error page "The proxy
> server is refusing connections".  As such, I can't click through.
> 
> If I examine the network traffic, I can see the "403 Request blocked by
> Privoxy" response, so I'm fairly certain I'm getting to Privoxy.  I
> think it's because of the 403 status code.  If I'm reading Firefox's
> Bugzilla 493699 (https://bugzilla.mozilla.org/show_bug.cgi?id=493699,
> closed WONTFIX), Firefox does not show the custom content for
> non-successful proxy responses.
> 
> While 403 is probably the right status code, I'd like to alter this to
> something 2xx (maybe 202 or 203) to bypass this behaviour.  I appreciate
> that this change might not be for everyone, so I am hoping for a config
> value somewhere.
> 
> I'm running an older release at the moment (and am constrained by my
> OS's packaging), so I'm happy if the answer is "has been fixed/provided
> in vX" but, if it hasn't been considered, is there any mileage in a
> config/override setting?

There currently I no option to change the status code for the
"Blocked" page and I think having such an option would not solve
your problem anyway.

I suspect you're only seeing the issue for HTTPS requests with
https-inspection disabled.

https-inspection has been added in Privoxy 3.0.29 and allows
Privoxy to send the "Blocked" page encrypted in which case
it appears to the client as if it was sent by a server.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-users/attachments/20210731/c65c8390/attachment.bin>


More information about the Privoxy-users mailing list