Menu

#390 How to replace URL before forwarding

3.0.x
closed
nobody
filters (152)
5
2006-07-28
2004-08-19
Anonymous
No

I hope someone can help me with this issue:

I need to have a client make a request thru Privoxy to a
non-existent domain, then for Viproxy to remove some
characters to make it valid, and do the opposite on
response. For example:

-User requests http://www.zzSPzz.realserver.com/

-Proxy intercepts request and removes zzSPzz. before
forwarding the request so the request is sent to the
internet as http://www.realserver.com/

-When the request comes back to Viproxy, it adds
zzSPzz. back to the URL so that it is returned to the
client as the original request, with the invalid domain
name.

This would happen for any requests to that particular
domain.

It may seem like a strange request, but we need to do
this in order to index all versions of pages that have the
same URL but are served in different languages
according to the user logged on. I tried using a filter,
but the filter is applied on the way back, not on the
request out from Privoxy. Please advise.

Thanks,
Andres

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Anybody knows how to accomplish this? Please advise.

     
  • Brian

    Brian - 2004-08-24

    Logged In: YES
    user_id=585719

    There's no way to do this with Privoxy, as far as I know.
    Privoxy can only rewrite the contents of the page, not the
    URL itself. Naturally, if the URL is in a link then Privoxy
    can rewrite that, but if someone enters an arbitrary link
    there's no way Privoxy can modify it.

    If I were you I'd setup Apache as a reverse proxy using
    mod_proxy.

     
  • Nobody/Anonymous

    Logged In: NO

    That's too bad. But thanks for the reponse. We will look into
    using something else, then. Thanks again.

     
  • David Schmidt

    David Schmidt - 2006-07-28
    • status: open --> closed
     

Log in to post a comment.