From owner-freebsd-isp Sat Feb 27 6:52:14 1999 Delivered-To: freebsd-isp@freebsd.org Received: from aniwa.sky (p6-max12.wlg.ihug.co.nz [216.100.145.6]) by hub.freebsd.org (Postfix) with ESMTP id ACC8E15082 for ; Sat, 27 Feb 1999 06:51:40 -0800 (PST) (envelope-from andrew@squiz.co.nz) Received: from aniwa.sky (localhost [127.0.0.1]) by aniwa.sky (8.9.1a/8.9.1) with ESMTP id DAA20246; Sun, 28 Feb 1999 03:51:05 +1300 (NZDT) Message-Id: <199902271451.DAA20246@aniwa.sky> X-Mailer: exmh version 2.0.2 2/24/98 To: Anatoly V Ivanov Cc: freebsd-isp@FreeBSD.ORG, Leif Neland Subject: Re: squid config: replace single site. In-reply-to: Your message of "Sat, 27 Feb 1999 12:30:19 +0300." <14521.990227@main.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 28 Feb 1999 03:51:04 +1300 From: Andrew McNaughton Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > LN> How can I make squid replace a request for pages from a certain site with > LN> a page of my own? I want to replace requests from some dedicated > LN> banner-servers with a single "ad removed" picture. (It's for my internal > LN> network) > > two steps: > 1) deny this url with ACL > 2) use denyinfo I don't remember the details of how to set it up, but it's possible to tell squid to make use of a re-write script that processes requested URL's eg: #!/usr/local/bin/perl -p s!http://.*doubleclick.com/.*!http://www.local.com/no-banner.gif!; s!http://.*adforce.com/.*!http://www.local.com/no-banner.gif!; [etc] Andrew McNaughton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message