Search squid archive

How to customize ERR page with tag for user-agent ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux