[Privoxy-users] HTTP status code for blocked pages

Jamie lists.privoxy.org at jimbobmcgee.com
Fri Jul 30 19:15:03 UTC 2021


Hi all;

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?

Regards

J.


More information about the Privoxy-users mailing list