[squid-users] Start page for Squid

From: Joakim Lagerqvist <joakim@dont-contact.us>
Date: Mon, 18 Jun 2007 20:45:57 +0700

Dear all,

I am looking for a way of redirecting my users to a "start page" when
they first start their browser through my transparent squid proxy. I
have found one (old) example on the web that explains that one could use
a perl script as this:

#!/usr/bin/perl
$|=1;
my %logged_in;

while(<>) {
  if (!defined($logged_in{$_})) {
    $logged_in{$_} = 1;
    print "ERR\n";
  } else {
    print "OK\n";
  }
}

So I put this in a file called sessions in /usr/local/bin and give it
execution possibilities.

Further, the example explains that squid.conf should have something
similar:

external_acl_type session ...
acl session external session

So I add:

external_acl_type session /usr/local/bin/session
acl session external session

But it needs a FORMAT but I am not sure which...so I add %LOGIN.

Further more the following needs to be added:

http_access deny !session
deny_info http://some_url/ session

But it doesn't work and I am not redirected. Could someone please direct
me?

Thanks in advance!

best regards,
Joakim Lagerqvist
Received on Mon Jun 18 2007 - 07:46:41 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:04 MDT