[Privoxy-users] How to redirect host?
Andrew J. Caines
A.J.Caines at halplant.com
Wed Feb 8 00:15:55 UTC 2017
Images from is2.4chan.org load inconsistently* yet consistently from
is.4chan.org. All requests are HTTPS. Privoxy 3.0.24 on Ubuntu.
What I want is for all requests for https://is2.4chan.org/... to be
redirected to https://is.4chan.org/...
I tried to redirect requests for is2.4chan.org to is.4chan.org with just
about every combination of A, B and C in user.action added via the web
interface (to eliminate typographic and working config factors) of the form
{+redirect{s at A@B@} \
}
C/
For example,
{+redirect{s at is2\. at https://is.@} \
}
is2.4chan.org/
which logs
Redirect: pcrs command "s at is2\. at https://is.@" changed
"is2.4chan.org:443" to "https://is.4chan.org:443" (1 hit).
Redirect: New URL is: https://is.4chan.org:443
Crunch: Redirected: is2.4chan.org:443
and the browser shows it's trying to load https://is2.4chan.org/... but
reports ERR_TUNNEL_CONNECTION_FAILED. I think the "Crunch" is a clue.
Other combinations either have no effect, give a 404 or when B excludes
the protocol (i.e. https://) logs
Error: pcrs command "s at is2.4chan.org@is.4chan.org at g" changed
"is2.4chan.org:443" to "is.4chan.org:443" (1 hit), but the result
doesn't look like a valid URL and will be ignored.
Clearly I'm not just doing it wrong even after RTFM[1], but more wrong
than I've considered. I'd really appreciate a working config along with
an explanation of what I missed if not obvious.
For those unfamiliar with 4chan, it's not a safe space; rather an image
board with limited moderation which offers the best and worst. Even a
mostly inoffensive board such as "Worksafe Requests"[2] probably isn't
safe for work or home. Caveat browser. A good way to test is to use
"Image hover" in [settings] which renders (or doesn't render) images on
mouseover.
*[Mostly normally, occasionally slowly and/or only after multiple
requests, making testing tricky]
[1] http://config.privoxy.org/user-manual/actions-file.html#REDIRECT
[2] https://boards.4chan.org/wsr/
--
-Andrew J. Caines- Unix Systems Architect A.J.Caines at halplant.com
"Machines take me by surprise with great frequency" - Alan Turing
More information about the Privoxy-users
mailing list