[KLUG Members] Squid ERR_ACCESS_DENIED

Mike Morrett members@kalamazoolinux.org
Wed, 16 Apr 2003 06:22:20 -0400


On 15 Apr 2003 09:13:08 -0400, "Bruce Smith" <bruce@armintl.com> said:
> > Can someone point me to info on how to modify Squid's (IPCOP)
> > /usr/lib/squid/errors/English/ERR_ACCESS_DENIED file?
> 
> vi   :-)

Oh, thanks Bruce... I never thought to use an editor!

> > 1) I know very little about HTML.
> 
> You can add an image with the "img" tag.   i.e.:
> 
> <img src="http://www.somedomain.com/image.jpg">

Done that, BUT, can't the file be located in the
/usr/lib/squid/errors/English directory?

I have replaced the contents of the ERR_ACCESS_DENIED file with this
code:

<html>
<head>
  <title>ERROR: The requested URL could not be retrieved</title>
</head>
<body>
<h1><img src="no_bug.gif" title="Whatever" alt="Blocked"
 style="width: 32px; height: 32px;"></h1>
</body>
</html>

BUT, the image doesn't display correctly, it looks like a broken image
placeholder.  Also, this unwanted line is displayed:

Generated Wed, 16 Apr 2003 10:13:50 GMT by k9.morrett.us
(Squid/2.4.STABLE6)

> 
> The tricky part _could_ be were to get the image.
> Do you have a web server running somewhere?
> If not, you could grab it off the internet somewhere.

Dah, I *already* have the tiny image file... I'm using it with the M$
program.

> You're blocking yourself from some sites on the internet?
> Don't trust yourself?  ;-)

I don't trust all the !@#$ing popup/popunder
ads/cookies/webbugs/etc..................

I have added this code to squid.conf:

acl ads url_regex "/var/ipcop/proxy/badsites.txt"
deny_info ERR_ACCESS_DENIED ads
http_access deny ads

I have added these sites to the badsites.txt:
adserver.com
advertising.com
atdmt.com
doubleclick.com
doubleclick.net
fastclick.net
.
.
.
 
--
Registered Linux User #303093 with the Linux Counter,
http://counter.li.org

Computers are like air conditioners; once windows are open,
they are useless!