Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- acl haarp_lst url_regex -i "/etc/haarp/haarp.lst"
- cache_peer 192.168.1.11 parent 8080 0 no-tproxy
- cache_peer_access 192.168.1.11 allow haarp_lst
- cache_peer_access 192.168.1.11 deny all
- dead_peer_timeout 2 seconds
- always_direct deny haarp_lst
- acl google url_regex -i (googlevideo.com|youtube.com)
- request_header_access User-Agent deny google
- request_header_replace User-Agent Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
- reply_header_access Alternate-Protocol deny all
- } elsif ($u=~ m/^https?\:\/\/.*\.(youtube|googlevideo).*videoplayback\?(.*)/){
- @watchid = m/[&?]watchid\=([^\&\s]*)/;
- @itag = m/[&?](itag\=[0-9]*)/;
- @range = m/[&?](range\=[^\&\s]*)/;
- @cpn = m/[&?]cpn\=([^\&\s]*)/;
- @mime = m/[&?](mime\=[^\&\s]*)/;
- @id = m/[&?]id\=([^\&\s]*)/;
- if (defined(@cpn[0])){
- if (-e "/tmp/@cpn"){
- open FILE, "/tmp/@cpn";
- @id = <FILE>;
- close FILE;}
- }
- $out="OK store-id=http://video-srv.squid.internal/watchid=@watchid@mime@range";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement