Search squid archive

Re: redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux