Johnathan Kupferer writes ..

>I know this probably isn't a beginners question...
>
>I need to set up a proxy server to filter IFRAME tags before a thrid
>party piece of software sees them and chokes on them. The third party
>application is good about listening making requests using a proxy on
>any port I want, I just need a proxy that can listen on these ports.
>The whole thing runs on linux and isn't portable anyway so I could
>care less about whether the proxy is portable. It just needs to listen
>on a port and relay the communications, snipping IFRAMEs out of the
>responses.
>
>I looked at CGIProxy and it won't work because it alters all links in
>the document. (Its not based on listening on ports)
>
>We're using a java based proxy called muffin now. Problem is muffin
>tends to stop responding for no apparent reason. Maybe memory leaks or
>something... They're only on version 0.93a so I can understand why its
>buggy.
>
>I think apache may be able to do something like this, but I also saw
>there was some controversy about using apache to filter banner ads...
>
>If anyone has dealt with any such things, and can point in the right   
>direction, I'd be most greatful. I'd like to stick with Perl, but I'm  
>also comfortable with Python, Java, C and C++.                         


if you're using Apache then there are a heap of Apache proxies available for
various functions - one might fit the bill

but the bees knees is Apache::Filter .. both can be viewed from
http://search.cpan.org/ by searching for Apache


alternatively you could reinvent the wheel by writing your own by looking at
HTTP::Daemon (part of libwww) which implements a simple HTTP/1.1 server

words of warning: proxies are never as easy to write as they seem

references:

  http://search.cpan.org/search?mode=module&query=apache
  http://search.cpan.org/search?dist=libwww-perl

-- 
  jason king

  It is illegal to "annoy a bird" in any city park of Honolulu, Hawaii.
  - http://dumblaws.com/

Reply via email to