Re: deny_info problem

From: Peter van Dijk <peter-squid@dont-contact.us>
Date: Sun, 31 Jan 1999 16:16:53 +0100

On Sun, Jan 31, 1999 at 09:35:13AM +0800, Danny Sinang wrote:
> Hi Henrik,
>
> deny_info now works after I removed the "all" from "http_access deny sex
> all" . Thanks.
>
> How can I include or state in my custom "Access Denied" page the site that
> was just blocked ?

Well, one possibility is to use a redirector instead of acl, and redirect them to a
page stating that the site was blocked.

> -----Original Message-----
> From: Henrik Nordstrom <hno@hem.passagen.se>
> To: Danny Sinang <danny@uplink.com.ph>
> Date: Sunday, January 31, 1999 9:15 AM
> Subject: Re: deny_info problem
>
>
> >
> >In your case there is two problems:
> >1. The page returned must be a Squid error page.
> >2. deny_info only checks the last acl, which in your configuration is
> >all.
> >
> >---
> >Henrik Nordstrom
> >Spare time Squid hacker
> >
> >Danny Sinang wrote:
> >>
> >> Sir,
> >>
> >> I need to show a customer "Access Denied" message whenever a user is
> blocked
> >> by my Squid 1.1.8 from accessing a site specified in my "/etc/squid/sex"
> >> file.
> >>
> >> Here's a portion of my squid.conf :
> >>
> >> ~~~~~~~~~~~~~
> >>
> >> acl sex url_regex "/etc/squid/sex"
> >> http_access deny sex all
> >>
> >> deny_info http://www.uplink.com.ph/blockmsg.asp sex
> >>
> >> ~~~~~~~~~~~~~
> >>
> >> I tried accessing the blocked sites and got the default "Access Denied"
> >> page of Squid. Can you tell me what else I missed ?
> >>
> >> Do I need to have an external redirector program like Squirm before I can
> >> get deny_info to work ?

Greetz, Peter.

-- 
.| Peter van Dijk
.| peter@attic.vuurwerk.nl
Received on Sun Jan 31 1999 - 07:59:55 MST

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