Re: [SQU] deny_info URL ACL

From: Juri Haberland <[email protected]>
Date: Fri, 08 Dec 2000 18:55:37 +0100

Jiri Bohac wrote:
>
> Is there a way to force the squid 1.x behaviour of deny_info - i.e specify
> a URL instead of a file in the ...squid/errors directory?
>
> I want to use it primarily for banner filtering (but others as well
> - imagine a huge dirty pig showing on-screen when user types in
> "www.porn_whatever.com" :-)) such as:
>
> acl banners url_regex "...banner_definition_regexp_file"
> acl porn url_regex "...porn_def_file"
> http_access deny porn
> http_access deny banners
>
> deny_info "http://...../emty.gif"
> deny_info "http://...../pig.gif" :-)
>
> Note that I DO NOT REQUIRE the target to be a URL, a locally stored GIF
> would do the same job for me....

What about putting a redirect directive into the local error page?
Something like:
<html>
<head>
   <meta http-equiv="REFRESH" content="1; url=http://...../emty.gif">
</head>
<body></body>
</html>

And then point the deny_info to this squid/errors/whatever file?

Juri

-- 
juri.haberland@innominate.com
system engineer                                         innominate AG
clustering & security                            the linux architects
tel: +49-30-308806-45   fax: -77            http://www.innominate.com
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Fri Dec 08 2000 - 10:58:11 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:53 MST