A Nikolaev wrote: > > I have Squid v. 2.4.7 on my Linux box. > I downloaded and installed Squidguard v 1.2. > I need it not to allow banners to appear on internet pages > downloaded. When I open internet page Squidguard substitutes my > small picture for banners (that is everything is ok).
If you'll use the 1x1.gif (attached), you'll see a nice white space where the ads once were. > When I check Squid log files I find that in any case Squid makes > requests on banner URLs, get packets from there and only then > redirects to my picture. Here's the way it works: You've told squid to use squidGuard as a redirector, so squid will *first* send every request to squidGuard for approval. Let's say squid receives a request to retrieve http://yahoo.com/news.html: - Squid logs the request as shown above. - Squid sends the request to squidGuard. - squidGuard checks the request and user against the parameters that you've given it, and decides the request is OK. - squidGuard then returns an empty (blank) response to squid. - Squid retrieves and returns http://yahoo.com/news.html Now within the file news.html there are several images that need to be retrieved; squid first sends each of those to squidGuard, too. One of the image requests that squid sends to squidGuard is for http://yahoo.com/ads/banner_123456.gif: - Squid logs the request as shown above. - Squid sends the request to squidGuard. - squidGuard checks the request and user against the parameters that you've given it, and finds a match in your ads destination group. - squidGuard then returns a response to squid that contains the redirect specified in your squidGuard.conf file: http://my.in-house-server.com/1x1.gif - Squid retrieves and returns http://my.in-house-server.com/1x1.gif Does that answer your question? Or maybe I misunderstood what you were asking... Rick Matthews
1x1.gif
Description: GIF image
