From owner-freebsd-isp Sat Feb 27 1:32: 2 1999 Delivered-To: freebsd-isp@freebsd.org Received: from darkside.magda.ru (darkside.magda.ru [194.85.102.178]) by hub.freebsd.org (Postfix) with ESMTP id 2232A15149 for ; Sat, 27 Feb 1999 01:31:34 -0800 (PST) (envelope-from main@main.ru) Received: from [195.208.115.164] ([195.208.115.164]:18948 "HELO main.ru" ident: "TIMEDOUT") by darkside.magda.ru with SMTP id <119068-237>; Sat, 27 Feb 1999 12:32:37 +0300 Date: Sat, 27 Feb 1999 12:30:19 +0300 From: Anatoly V Ivanov X-Mailer: The Bat! (v1.21) UNREG Reply-To: Anatoly V Ivanov Organization: MAGDA ISP X-Priority: 3 (Normal) Message-ID: <14521.990227@main.ru> To: freebsd-isp@freebsd.org, Leif Neland Subject: Re: squid config: replace single site. References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ----------------------- e.g.: squid.conf------------------------------- acl banners urlpath_regex sputnik/img\.pl advert.*gif weblist_banner cgi-bin/banner cgi-bin/showad.pl /cgi-rs/showme.cgi /cgi-adv/getimage.cgi cgi-bin/advert http_access deny banners deny_info http://my.cool.doma.in/my_cool_banner.gif banners ----------------------------------------------------------------------- This example illustrates how to replace all banners with your own. Don't forget to look at your users' faces :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message