Search squid archive

Re: Question with ACL and UrlRewrite ?

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

 



May be, because of FB is some years ago under HTTPS?


17.01.2018 03:17, Aismel пишет:

Hi,

 

I need allow  all my users navigate through internet but starting at 14:00pm to 20:00pm to X pages only so before no one can access to that X pages.

 

I need redirect when a user ask www.facebook.com to m.facebook.com

 

I found this script but do not why don’t work

 

#!/usr/bin/perl

$mirror = "m.facebook.com";

 

$| = 1;

while (<>) {

    @line = split;

    $_ = $line[0];

    if (m/^http:\/\/((?:[a-z0-9]+\.)?\.facebook\.com)\/(.*)/ &&

        $1 ne $mirror) {

        print "http://" . $mirror . "/" . $2 . "\n";

    } else {

        print $_ . "\n";

    }

}

 

Pd: I set the chmod +x to the script.

 

Thanks any help

 

Best regards



_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

-- 
*****************************
* C++20 : Bug to the future *
*****************************
_______________________________________________
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