Re: redirection

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 08 Mar 2007 23:22:54 +0100

fre 2007-03-09 klockan 00:57 +0530 skrev Siddhesh PaiRaikar:

> >>httpAppendBody is probably a better place..
>
>
> we are using squid 2.6 stable 6 and i cudnt find that fucntion in the source code.. is it a part of the later releases?

Hmm.. yes, http.c was a bit restructured in 2.6.STABLE10.
 
> what would be the easiest way to start the redirection to our server's custom page
> which says "page blocked" as in what function is responsible for starting
> the redirection to another page and the data structures also responsible for
> holding the current URL so that we can replace it with the new blocking URL
> of our server.

Easiest: Implement your filter using ICAP, and in your ICAP server agent
buffer the response until you find it's OK. If not OK replace the
response with your blocking page..

Doing this within Squid is a bit hairy..

Regards
Henrik

Received on Thu Mar 08 2007 - 15:23:06 MST

This archive was generated by hypermail pre-2.1.9 : Sun Apr 01 2007 - 12:00:01 MDT