Hi Alvar,

On 19-Jul-2000 Alvar Freude wrote:
> Hi,
> 
> I want to create a service which filters HTML files like this: 
> http://www.a-blast.org/web-blast.html ==> 
> http://www.a-blast.org/web-blast.plx?url=http://www.nsa.gov/programs/employ/
> 
> 
> But it should go through a proxy, you don't need to access another site
> and all filtering works transparent in background, within the proxy.
> 
> 
> So my idea was to make this with mod_proxy and mod_perl, but I did not
> found any documentation to do this.
> 
> The user should enter a proxy in his Browser config, e.g.
> superproxy2000.here.org:7777, and after this he can surf through the web
> and gets filtered files.
> 
> Is this possible with mod_perl and md_proxy?
> 
> 
> And if yes: where I can find documentation for this?
> 
> Or has somebody code snippets? ;)

I've created something like this.

I've attached the script I used to build mod_proxy and mod_perl, and a short
Apache::MyFilter to show how to use this.  Note: I've cut down the handler from
my version without really testing it, so it may have a couple syntax errors.

I'm using it like this:

<VirtualHost _default_:8080>
        PerlTransHandler Apache::SurfLogin
</VirtualHost>

so that I can still have a normal webserver on port 80.

Hope that helps,

Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
[EMAIL PROTECTED]

MyFilter.pm

BuildApache-without-modssl

Reply via email to