From owner-freebsd-current@FreeBSD.ORG Thu Aug 24 19:26:14 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0B9C16A4E5 for ; Thu, 24 Aug 2006 19:26:14 +0000 (UTC) (envelope-from sullrich@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 219C643D49 for ; Thu, 24 Aug 2006 19:26:13 +0000 (GMT) (envelope-from sullrich@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so711613nfc for ; Thu, 24 Aug 2006 12:26:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dERoOBFJWfPb06Eko21r3v2Kx1Tz0GnQ3wkT1soD1IpUgo+ldL+/wZlYuZLAgd5g0vNov+ydsvLOSpE0RmYdvXOP/kUh2LY5JDB7GrypLUQlzcxdBJAqrh09ESN5iZGLD+5ZyAZ1GCO4vpl9KAe3ftLYKSHM0JQNaer0ZjgD310= Received: by 10.66.240.12 with SMTP id n12mr1332018ugh; Thu, 24 Aug 2006 12:26:10 -0700 (PDT) Received: by 10.67.28.14 with HTTP; Thu, 24 Aug 2006 12:26:10 -0700 (PDT) Message-ID: Date: Thu, 24 Aug 2006 15:26:10 -0400 From: "Scott Ullrich" To: "Carlos Silva" In-Reply-To: <44EDFAD7.6080503@yourdot-mail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44EDFAD7.6080503@yourdot-mail.com> Cc: freebsd-current@freebsd.org Subject: Re: squid page manipulation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 19:26:14 -0000 On 8/24/06, Carlos Silva wrote: > Hi, > > Is that possible to manipulate a page that squid proxies? > For example, in that page, there is an javascript alert(); function and > i want to discard that so the browser doesn't see that. > Basically, I want that squid change the HTML source codes from the pages > that i download, with matching criterias. Yes, this should be possible. While this is not exactly what your looking for it does modify the images mid-stream so it should be possible to do the same for the HTML mid-flight. Take a look at http://www.ex-parrot.com/~pete/upside-down-ternet.html which is an interesting idea. Scott