AFIAK if you are using squidGuard with AUTH-HTTP (.htaccess, SMB-auth... etc) you can easily grab the username and forward it to your page.
When I try and access playboy.com this is the URL that is sent to the recirector page: http://garcia.prairiegroup.com/cgi-bin/squidGuard.cgi?clientaddr=104.47.1.106&clientname=&clientuser=m_mcwhorter&clientgroup=fullaccess&targetgroup=blacklist&url=http://playboy.com/ As you can see clientuser will give you the user of that is sending the email, cleintaddr will give you the IP address and url will give you the url they are trying to access. This is just with a generic config from the squidGuard documents on the website. Hope this helps.... Mike Ely wrote: > Hi, > We've got squidGuard running in our K-12 district. If a page is blocked, > the user is redirected to a page running a cgi script that takes input > fields from the web page and blasts off an email to the person who can make > the decision to unblock a given page. > What is (unsurprisingly) happening is that every now and then, one of the > darlings will write a nasty message because we wouldn't let him connect to > playboy.com or the like. Unfortunately, the server handling the redirects > sits in a dmz and can only report that the connection came from the ip of > our lan firewall/nat box. > So we need to make a couple of changes to how the redirects are handled. > One of them will be to run Apache on the proxy machine to handle the > redirects. Does anyone know of a squid plugin which can provide the > following to a web page served on the proxy server: > Ip address of the machine requesting the page be unblocked > Timestamp of the connection > Url which was redirected from > > In addition, the following would be very nice, if at all possible: > Netbios name of the machine which initiated the connection > Logon name of the user on that machine > > We have a win2k lan running Active directory. Any help would be greatly > appreciated. If I'm going to be called every name in the book, and some I > haven't heard before, I'd sure like to know who's doing the name calling! > > Thanks, > Mike Ely > > --- > [This E-mail scanned for viruses by Declude Virus] > >
