Re: format specifiers in deny_info URL

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 22 Jan 2008 09:21:03 +0900

On Tue, Jan 22, 2008, ian j hart wrote:
> ref: http://www.mail-archive.com/squid-users%40squid-cache.org/msg52048.html
>
> Can someone please point me to the code which expands the URL.

Welcome!

Check access_log.c for the access log expansion, and external_acl.c for the
external ACL expansion. Uhm, search for

       case EXT_ACL_URI:
            str = urlCanonical(request);
            break;

Adrian

>

> I'm now using 2.6STABLE18 on FreeBSD 6.3-RELEASE
>
> Thanks
>
> ---------- Forwarded Message ----------
>
> Subject: Re: [squid-users] auto blacklist users
> Date: Friday 11 January 2008
> From: ian j hart <ianjhart@ntlworld.com>
> To: squid-users@squid-cache.org
>
> On Sunday 09 December 2007 07:03:24 Amos Jeffries wrote:
> >
> [snip]
> >
> > Here be mine squid.conf entry:
> >
> > external_acl_type surbl_test ipv6 ttl=5 negative_ttl=5 %SRC %DST
> > /etc/squid6/helper/rhsbl.sh multi.surbl.org RHSBL
> > acl surbl_clean external surbl_test
> > deny_info
> > http://treenet.co.nz/errors/squid-404.php?RBL-SURBL-%m&err=%o&url=%s
> > surbl_clean
> > http_access deny all !surbl_clean
> >
>
> Okay, I'm having a look at this now.
>
> I'm using 2.6.17 on FreeBSD 6.2 (i386)
>
> No problem with %s.
>
> %o works in an error page but not as used above.
>
> %m doesn't seem to be documented.
>
> >
> > The helper is a little complex doing a DNSBL re-formatting and lookup
> > before returning OK/ERR to squid.
> >
> > FYI: SURBL is an anti-malware RHSBL which lists domains advertised in
> > Spam or known for malware distribution.
> > There is no reason particularly why the helper can't do a lookup
> > elsewhere for a locally built list via another medium.
> >
> >
> > Amos
>
> --
> ian j hart

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
Received on Mon Jan 21 2008 - 17:10:47 MST

This archive was generated by hypermail pre-2.1.9 : Wed Jan 30 2008 - 12:00:09 MST