Re: [squid-users] Blocking Web bugs?

From: Kevin <kkadow@dont-contact.us>
Date: Sat, 13 Aug 2005 01:20:03 -0500

On 8/12/05, Carlos Zottmann <carlos.zottmann@gmail.com> wrote:
> Does anyone know a way to block web bugs (0x0 gifs) with squid?

Interesting question.

Since the function of a web bug is fulfilled when the URL is retrieved
from the remote server, and since Squid can't see the GIF's dimensions
until after the object is received, I'd say it's technically impossible
to effectively block web bugs using Squid, short of composing a regular
expression to match all likely tracking bug URLs (watch out for false
positives).

You could certainly modify Squid (or any caching proxy) to detect when
a received image has dimensions below a certain minimum, and react by
forcing any _future_ requests for that object to be served from cache
regardless of the headers supplied by the server or a cookie or other
header requested by the client. This wouldn't help the first time any
user triggers a web bug, but would effectively keep private any future
requests for that same exact URL.

Kevin Kadow
Received on Sat Aug 13 2005 - 00:20:05 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Sep 01 2005 - 12:00:01 MDT