Re: HTTP status code for blocked pages
"Ian Silvester" <[email protected]> Sat, 31 Jul 2021 11:37:55 -0700
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Jamie, On the off-chance that you're running macOS, an updated package is currently in testing and should be released in the next month. Cheers, Ian On Sat, 31 Jul 2021, at 06:09, Fabian Keil wrote: > Jamie <[email protected]> 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 > > _______________________________________________ > Privoxy-users mailing list > [email protected] > https://lists.privoxy.org/mailman/listinfo/privoxy-users >