Search squid archive

Re: deny_info / url_rewrite_program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

bellow, a Perl script that works for me - it redirect the
URL in browser; when i type in "web.de" the result is
"www.freenet.de".
But the browser don't connect to www.freenet.de,
he shows me a Error: redirect-error - this problem can
be, when Cookies deactivated or denied.
(iceweasel - firefox)
Is that a browser mistake or my logic?

#!/usr/bin/perl -l

$|=1;                   # don't buffer stdout

while (<>) {            # read line from STDIN (squid input)
  $url = m/^([^ ]*)/;
  if ($url !~ /^http:\/\/web\.de/) {
    print "301:http://www.freenet.de/index.html\n";;
  } else {
    print "$url\n";
  }
}
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux