Re: redirection

From: Amos Jeffries <squid3@dont-contact.us>
Date: Fri, 09 Mar 2007 09:10:49 +1300

Siddhesh PaiRaikar wrote:
>
>
>> we need to block a particular site based on the content. we are
>> planning to block the page from the function storeAppend() in store.c.
>> wold it be the
>> right place for blocking the page or should it be blocked elsewhere.
>
>
>
>>> 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?
>
> also please if any one can tell us...

A quick grep of my branch of squid3 shows no sign of it. Maybe its some
of the new code from storework Henrik and Adrian have been doing to
2.6stable9+.

>
>
> 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.
>

Personally I use deny_info passing to a dynamic script with a few %
parameters depending on the situation.

Amos
Received on Thu Mar 08 2007 - 13:10:57 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:01 MDT