Re: Error message to non-users

From: Bernd P. Ziller <bziller@dont-contact.us>
Date: Fri, 21 Mar 1997 18:28:19 +0100 (MET)

> From: Alberto de Poo Bas <adepoo@tamnet.com.mx>

> Right now, some people outside our company is using our cache, I want to
> limit them (with the mail already received) but I want to show some HTML
> error page only to the people that can not access our service because they
> connect with other company.
>
> Also, how can I change the error messages? I work in Mexico and making the
> error messages also in spanish, with the company logo will be great, is
> there a way?

Sorry for my last 'reply', i hit the wrong keys...

Try something like:

acl all src 0.0.0.0/0.0.0.0
acl my-hosts src x.x.x.0/255.255.255 127.0.0.1/255.255.255.255
acl deny_info url_regex ^http://your.server/deny_info.html$

http_access allow my-hosts
http_access allow deny_info
http_access deny all

deny_info http://your.server/deny_info.html all

This should send all people outside your company a Location-Reply to
your web-server. The deny_info - acl is necessary to allow these
people to access your web-server through your cache for this info
document.

Haven't tried this, but I have something alike here in our squid working.

-- 
   Bernd                  bziller@ba-stuttgart.de
-------------------------------------------------
      http://www.ba-stuttgart.de/~bziller/
  Perry Rhodan - Blind Guardian - Morwen   Pages
Received on Fri Mar 21 1997 - 09:35:51 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:44 MST