Re: Squid Proxy Blocking ? How ?

From: Oskar Pearson <oskar@dont-contact.us>
Date: Mon, 30 Jun 1997 11:14:13 +0200

"Magossa'nyi A'rpa'd" writes:
> <I would be happy if experts on the list would point out if anything is
> wrong with my example, and would show a better script than the one at the
> end of the letter. Thanx>
hmm - the only possible problems I can see are that the user does a dns
lookup and then uses the IP address to access sites instead of the dns
names - it's painful for them but they would probably do it.

> And now about the url rewriting. I've tried it once, and the cache didn't
> seem to work. Maybe I've missed something to pass through (I'm not a perl
> expert). I didn't try too hard though. Here's my setup:
> redirect_program /home/www-data/sripts/redirect
> redirect_children 5
> -------/home/www-data/scripts/redirect:-----
> #!/usr/bin/perl
> $|=1;
> while (<>) {
> s@.*sex.*@http://bunuel.tii.matav.hu/forbidden.html@;
> print;
> }
> -----------------------------
> Can anyone give a working version of that? (I don't care about loosing
> "essex", I want a working example only.)
I can't see anything wrong with it - and it work's fine in a simple
command line test - I haven't done any testing in squid though.

Oskar
Received on Mon Jun 30 1997 - 02:20:38 MDT

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