[KLUG Members] Squid ERR_ACCESS_DENIED

Bruce Smith members@kalamazoolinux.org
16 Apr 2003 08:28:38 -0400


> > > 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!

Glad to be of help!  :-)

> > > 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 don't think so, unless you're also running a web server on that box.

> <img src="no_bug.gif"
> BUT, the image doesn't display correctly,

That is what I would expect.

Squid is sending a web page to you.  The IMG tag is part of the web
page.  IMG tags point to images that reside on web servers.  I don't
know of any way in HTML to transfer an image directly.  I think it has
to point to the image on a web server somewhere.

> > 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.

Does your ISP provide you web space on their server?
If so, upload the image there, and reference it in squid.

i.e.:  <img src="http://your.isp/~mike/no_bug.gif">

> > 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

Ah, I get it now!  ;-)

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------