[squid-users] How to customize ERR page with tag for user-agent ?

From: Alexander Grüner <agruener@dont-contact.us>
Date: Tue, 11 Apr 2006 12:45:20 +0200

Hello :-)

I am running squid-2.5.STABLE9-4.6 on SuSE Linux 9.2 (i586).

My squid.conf directs browsers with certain malware user-agents to an
error page:

...
acl browser-deny browser -i "/etc/squid/squid.deny-useragents"
...
http_access deny browser-deny
...
deny_info ERR_MALWARE browser-deny

So far it works fine.

I want to add to this error page the reason or user-agent for the user,
like:

Your access has been denied because of "%user-agent".

http://www.squid-cache.org/Doc/FAQ/FAQ-19.html#custom-err-msgs did not
help me, because there seems to be no tag for this purpose.

I found nothing on this list or in google etc. ;-)

Any ideas ?

Thank you and regards,
Alexander
Received on Tue Apr 11 2006 - 04:45:28 MDT

This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT