format specifiers in deny_info URL

From: ian j hart <ianjhart@dont-contact.us>
Date: Tue, 22 Jan 2008 00:04:32 +0000

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.

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
Received on Mon Jan 21 2008 - 17:04:45 MST

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