From owner-freebsd-current@FreeBSD.ORG Fri Aug 25 00:51:02 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 95BC316A4E0 for ; Fri, 25 Aug 2006 00:51:02 +0000 (UTC) (envelope-from security@yourdot-mail.com) Received: from jupiter.nswebhost.com (jupiter.nswebhost.com [66.246.252.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EB5143D45 for ; Fri, 25 Aug 2006 00:51:02 +0000 (GMT) (envelope-from security@yourdot-mail.com) Received: from 94.60.30.213.rev.vodafone.pt ([213.30.60.94]:36893 helo=[192.168.1.10]) by jupiter.nswebhost.com with esmtpa (Exim 4.52) id 1GGOze-00022S-MG; Thu, 24 Aug 2006 18:52:14 -0500 Message-ID: <44EE496E.8010603@yourdot-mail.com> Date: Fri, 25 Aug 2006 01:50:54 +0100 From: Carlos Silva User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Scott Ullrich References: <44EDFAD7.6080503@yourdot-mail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ClamAntiVirus-Scanner: This mail is clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - jupiter.nswebhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - yourdot-mail.com X-Source: X-Source-Args: X-Source-Dir: 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: Fri, 25 Aug 2006 00:51:02 -0000 hi, that's not what i am looking for. i want a script with squid that changes the default HTML on a page. someone has a solution? Best Regards, Carlos Silva, CSilva Web: http://www.csilva.org/ Scott Ullrich escreveu: > 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