From: Anatoly V Ivanov <main@main.ru> To: freebsd-isp@freebsd.org, Leif Neland <root@neland.dk> Subject: Re: squid config: replace single site. Message-ID: <14521.990227@main.ru> References: <Pine.BSF.4.05.9902270234550.5407-100000@gina.neland.dk>
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
----------------------- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14521.990227>
