Date: Sun, 28 Feb 1999 03:51:04 +1300 From: Andrew McNaughton <andrew@squiz.co.nz> To: Anatoly V Ivanov <main@main.ru> Cc: freebsd-isp@FreeBSD.ORG, Leif Neland <root@neland.dk> Subject: Re: squid config: replace single site. Message-ID: <199902271451.DAA20246@aniwa.sky> In-Reply-To: Your message of "Sat, 27 Feb 1999 12:30:19 %2B0300." <14521.990227@main.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902271451.DAA20246>