Ricky, I have a problem with deny_info tag.
I found a script which blocks banners for icq and replace them with other banners. I did everything as was written:
acl nobanners src 0/0
acl icq-begin url_regex "/usr/local/etc/squid/icq-begin.acl"
http_access deny nobanners icq-begin
deny_info http://localhost/icq-begin.html icq-begin
acl icq-banner url_regex "/usr/local/etc/squid/icq-banner.acl"
http_access deny nobanners icq-banner
deny_info http://localhost/icq-banner.html icq-banner
icq-begin.html (saved in /var/www/html):
<html>
<body>
<table valign="center" halign="center" width=100% height=94% vspace=0 hspace=0>
<tr><td>
<center>Administration greets you!</center>
<br>
<center><b>Empty (No banner)</b></center>
</td></tr>
</table>
Web-page: <a href="http://www.your.site/">http://www.your.site</a>
</body>
</html>
icq-begin.acl (saved in /etc/squid):
web\.icq\.com/welcome
icq-banner.html (saved in /var/www/html):
<html>
<head>
<title>Welcome to ICQ 2000a </title>
</head>
<!-- "ICQWidth=150" "ICQHeight=55" -->
<body bgcolor="white">
<!-- Ate Windows options -->
<table width="100%" border="0">
<tr>
<td align="CENTER" valign="MIDDLE">
<!-- Icons and Banner -->
<b><a href="mailto:" target="_new">Is ICQ necessary for your work? If not, then quit!</a><br><br>
Administration</b>
<!-- /// Icons and Banner -->
</table>
</body>
</html>
icq-banner.acl (saved in /etc/squid):
cdn\.icq\.com/client/ate/
At the end, when I restart squid, it gives me errors with deny_info. Can you tell me what can be wrong with this code?
Thanks man!