The pfSense Store

Author Topic: (SHARE) MENGATASI ERROR BUKA YOUTUBE  (Read 66949 times)

0 Members and 1 Guest are viewing this topic.

Offline poscom

  • Full Member
  • ***
  • Posts: 202
  • Karma: +0/-0
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #30 on: April 13, 2012, 10:36:32 am »
hmmmm begini setelah saya melakukan perubahan seperti diatas masalah eror dan galat sudah tidak pernah muncul, hanya saja dengan adanya perubahan tersebut untk link youtbe yang dari vevo belum bisa tercache, jadi perlu ada pembenahan lagi di storerl.pl nya.
dan untk nyang ini:

http://aacable.wordpress.com/2012/01/30/youtube-caching-problem-an-error-occured-please-try-again-later-solved/


Ngintip Dari Sebelah Mudah-mudahan sedikit membantu (setidaknya tidak terjadi galat lagi)

sebenarnya forum yang dari pakistan it nyomot punyanya bang ucok k, cuman ditambahi sana dan sini, karena dari awal saya jga ngikutin dia, bahkan yang pertama bahasanya masih indo dan skr keliatannya sdah diedit
serahkan semuanya pada abang saya bang chudy dijamin ok

klo pengen tau rahasia bang chudy rata2 semua tercache asal bisa maininnya ngepaskan saja ga usah dimasukin macem2
liat putty hit dan trafic wan dan lan (yang dimasukan itu sebetulnya sudah ada di chudy UNIVERSAL script)

coba tolong temen2 postingin link youtube yang bermasalah tar kita bahas rame - rame
ayo youtube ok
« Last Edit: April 13, 2012, 08:42:26 pm by poscom »

Offline poscom

  • Full Member
  • ***
  • Posts: 202
  • Karma: +0/-0
    • View Profile

Offline meunara.net

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • afffiikaaa...!!!
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #32 on: April 13, 2012, 11:28:12 pm »
di net saya ndak semua vevo eror, youtube vevo yang ini http://www.youtube.com/watch?v=VT1-sitWRtY&feature=related ndak bisa...., tapi kalo vevo yang ini http://www.youtube.com/watch?v=qMxX-QOV9tI tercache dengan baik...., trus kalo youtube biasa yang mempunyai resolusi 240P itu pasti error...

Offline poscom

  • Full Member
  • ***
  • Posts: 202
  • Karma: +0/-0
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #33 on: April 14, 2012, 01:38:16 am »
di net saya ndak semua vevo eror, youtube vevo yang ini http://www.youtube.com/watch?v=VT1-sitWRtY&feature=related ndak bisa...., tapi kalo vevo yang ini http://www.youtube.com/watch?v=qMxX-QOV9tI tercache dengan baik...., trus kalo youtube biasa yang mempunyai resolusi 240P itu pasti error...
klo di config sy ga pake resolusi yg terpisah misal resolusi 240P
pokoknya maknyos :)

itu jessy j ok banget

Offline meunara.net

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • afffiikaaa...!!!
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #34 on: April 14, 2012, 05:04:23 am »
Quote
klo di config sy ga pake resolusi yg terpisah misal resolusi 240P
pokoknya maknyos Smiley

itu jessy j ok banget
nah ini dia yang saya tunggu".... gimana cara setting storeurl.pl tanpa resolusi yang terpisah....,?? coz resolusi youtube itu ngak dikit..., masak mesti isi manual.... maunya simple tapi lancar....  ;D  ;D  ;D ,
kasi tau donk storeurl.pl nya..., ndak ngerti ini.....

Offline kaptenhook

  • Full Member
  • ***
  • Posts: 139
  • Karma: +0/-0
  • pisssss
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #35 on: April 14, 2012, 05:08:15 am »
di net saya ndak semua vevo eror, youtube vevo yang ini http://www.youtube.com/watch?v=VT1-sitWRtY&feature=related ndak bisa...., tapi kalo vevo yang ini http://www.youtube.com/watch?v=qMxX-QOV9tI tercache dengan baik...., trus kalo youtube biasa yang mempunyai resolusi 240P itu pasti error...

kalo masih ada yang eror coba dirubah sesuai petunjuk yg ada, tapi sebelumnya, back up dulu storeurl.pl yang asli, liat perbandingannya dengan setelah dirubah, apabila kurang puas atau ga sreg kan bisa dikembalikan seperti semula, masalahnya setelah saya melakukan perubahan, ditempat saya youtube resolusi berapapun tidak ada masalah, youtube hd jg oke

Offline meunara.net

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • afffiikaaa...!!!
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #36 on: April 18, 2012, 09:42:37 pm »
terimakasih buat para guru pfsense, sekarang error youtube tidak lagi saya temukan setelah saya mencerna kata" dari mas poscom
Quote
klo di config sy ga pake resolusi yg terpisah misal resolusi 240P
pokoknya maknyos  :)
dan mengikuti tutorial ts , di modif dikit seperti saran pak kapten,
Quote
untuk yang masih ngeror juga, tidak usah galau cobain dulu, untuk bagian ini coba dihapus saja

# youtube All itag (semua resolusi)
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(itag=[0-9]*).*?\&(id=[a-zA-Z0-9]*).*/) {
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . "&" . $3 . "\n";
 
                       # youtube All itag (semua resolusi) posisi kebalikan
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(id=[a-zA-Z0-9]*).*?\&(itag=[0-9]*).*/) {
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $3 . "&" . $2 . "\n";

diganti dengan ini

Code:

                                # youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";
walau masih ada video yang tidak tercache saya rasa tidak menjadi sebuah masalah selama tidak muncul error, sekali lagi thanks buat para guru yang sudah membimbing saya dengan sabar walau agak sedikit dongkol akibat oot nya saya...  ;D  ;D  ;D  sorry emang bener" newbie masalah server.....,

Offline 9m2pju

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #37 on: April 26, 2012, 02:41:38 am »
jadi nya om kapten harus update storeurl.pl ya ?

Offline askar

  • Jr. Member
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #38 on: May 01, 2012, 12:38:46 pm »

untuk resolusi all itag saya ambil dari website OM Syaifuddin_JW aka ucok_karnadi tetapi belum membuahkan hasil, saya tidak memiliki resolusi (itag) 240p , maka karena itu saya tidak bisa memutar video yang memiliki kualitas 240p, bagi yang memiliki storeurl.pl untuk youtube ukran 240p sudi kiranya mempostingkan settingan storeurl.pl nya disini  ^_^

untuk yang masih ngeror juga, tidak usah galau cobain dulu, untuk bagian ini coba dihapus saja

# youtube All itag (semua resolusi)
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(itag=[0-9]*).*?\&(id=[a-zA-Z0-9]*).*/) {
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . "&" . $3 . "\n";
 
                       # youtube All itag (semua resolusi) posisi kebalikan
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(id=[a-zA-Z0-9]*).*?\&(itag=[0-9]*).*/) {
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $3 . "&" . $2 . "\n";

diganti dengan ini

Code:

                                # youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";











Udah dilakukan semua
baik ganti storeurl.plnya dengan yang dari http://pastebin.com/e3TUtigH
dan juga yg diubah dengan

# youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";


Tp masih error gan,
Bahkan youtubenya jlan, eh tengah jalan berhenti n ngulang terus dr awal

Mohn pencerahan
tq

Offline meunara.net

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • afffiikaaa...!!!
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #39 on: May 01, 2012, 10:31:45 pm »
Quote
Udah dilakukan semua
baik ganti storeurl.plnya dengan yang dari http://pastebin.com/e3TUtigH
dan juga yg diubah dengan

# youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";


Tp masih error gan,
Bahkan youtubenya jlan, eh tengah jalan berhenti n ngulang terus dr awal

Mohn pencerahan
tq
izin ngebantu ya mas askar...
storeurl.pl saya yang sudah saya ubah seperti panduan kanda-kanda senior dan tidak mengalami error
Quote
#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion
$|=1;
while (<>) {
    @X = split;
#   $X[1] =~ s/&sig=.*//;
   $x = $X[0] . " ";
   $_ = $X[1];
   $u = $X[1];

         #photos-X.ak.fbcdn.net where X a-z
if (m/^http:\/\/photos-[a-z]?(.ak.fbcdn.net.*)/) {
   print $x . "http://photos" . $1  . "\n";

         #maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
   print $x . "http://" . $1  . $2 . "\n";
   
                #ini untuk cache partial
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(id=[a-zA-Z0-9]*).*?\&(range=[0-9]*).*/) {
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . $3 . "\n";
 
                # compatibility for old cached get_video?video_id
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) {
        $z = $2; $z =~ s/video_id=/get_video?video_id=/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $z . "\n";
       
                              # youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";

} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
   print $x . "http://www.google-analytics.com/__utm.gif\n";

         #Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
   $y = $3;$z = $2;
   for ($y) {
   s/pixel;.*/pixel/;
   s/activity;.*/activity/;
   s/(imgad[^&]*).*/\1/;
   s/;ord=[?0-9]*//;
   s/;&timestamp=[0-9]*//;
   s/[&?]correlator=[0-9]*//;
   s/&cookie=[^&]*//;
   s/&ga_hid=[^&]*//;
   s/&ga_vid=[^&]*//;
   s/&ga_sid=[^&]*//;
   # s/&prev_slotnames=[^&]*//
   # s/&u_his=[^&]*//;
   s/&dt=[^&]*//;
   s/&dtd=[^&]*//;
   s/&lmt=[^&]*//;
   s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/[;&?]ord=[?0-9]*//;
   s/[;&]mpvid=[^&;]*//;
   s/&xpc=[^&]*//;
   # yieldmanager
   s/\?clickTag=[^&]*//;
   s/&u=[^&]*//;
   s/&slotname=[^&]*//;
   s/&page_slots=[^&]*//;
   }
   print $x . "http://" . $1 . $2 . $y . "\n";

         #cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
   print $x . "http://" . $1 . "/" . $2  . "\n";

} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
   print $x . "http://" . $1 . "\n";

         #cdn, varialble 1st path
} elsif (($u =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
   @y = ($1,$2,$4,$5);
   $y[0] =~ s/[a-z0-9]{2,5}/cdn./;
   print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

         #rapidshare
} elsif (($u =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
   print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($u =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
   print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";
   
         #domain/path/.*/path/filename
} elsif (($u =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
   @y = ($1,$2,$4,$5,$6);
   $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
   print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\n";

         #like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($u =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
   print $x . "http://cdn." . $4 . $6 . "\n";

         #for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
   print $x . "http://cdn.yimg.com//" . $3 . "\n";
   
         #for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
   print $x . "http://cdn.yimg.com/"  . $3 . "\n";

         #for yimg.com with &sig=
} elsif (m/^http:\/\/([^\.]*)\.yimg\.com\/(.*)/) {
   @y = ($1,$2);
   $y[0] =~ s/[a-z]+([0-9]+)?/cdn/;
   $y[1] =~ s/&sig=.*//;
   print $x . "http://" . $y[0] . ".yimg.com/"  . $y[1] . "\n";
         
         #youjizz. We use only domain and filename
} elsif (($u =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
   @y = ($1,$2,$4,$5);
   $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
   print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

         #general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
   print $x . "http://squid-cdn-url//" . $2  . "." . $3 . "\n";

         # spicific extention
# } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
   # @y = ($1,$2);
   # $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
   # print $x . "http://" . $y[0] . "." . $y[1] . "\n";

         #generic http://variable.domain.com/path/filename."ex", "ext" or "exte"
         #http://cdn1-28.projectplaylist.com
         #http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
   @y = ($1,$2,$3,$4);
   $y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
   print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

         # all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
   print $x . "http://" . $1 . "/" . $2  . "\n";

} else {
   print $x . $_ . "\n";
}
}
saya tidak mengcopas semua storeurl.pl dari web http://pastebin.com/e3TUtigH  melain kan hanya mengambil settingan youtube saja...

Offline pfsense_aja

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #40 on: May 02, 2012, 12:43:31 am »
Quote
Udah dilakukan semua
baik ganti storeurl.plnya dengan yang dari http://pastebin.com/e3TUtigH
dan juga yg diubah dengan

# youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";


Tp masih error gan,
Bahkan youtubenya jlan, eh tengah jalan berhenti n ngulang terus dr awal

Mohn pencerahan
tq
izin ngebantu ya mas askar...
storeurl.pl saya yang sudah saya ubah seperti panduan kanda-kanda senior dan tidak mengalami error
Quote
#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion
$|=1;
while (<>) {
    @X = split;
#   $X[1] =~ s/&sig=.*//;
   $x = $X[0] . " ";
   $_ = $X[1];
   $u = $X[1];

         #photos-X.ak.fbcdn.net where X a-z
if (m/^http:\/\/photos-[a-z]?(.ak.fbcdn.net.*)/) {
   print $x . "http://photos" . $1  . "\n";

         #maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
   print $x . "http://" . $1  . $2 . "\n";
   
                #ini untuk cache partial
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(id=[a-zA-Z0-9]*).*?\&(range=[0-9]*).*/) {
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . $3 . "\n";
 
                # compatibility for old cached get_video?video_id
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) {
        $z = $2; $z =~ s/video_id=/get_video?video_id=/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $z . "\n";
       
                              # youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";

} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
   print $x . "http://www.google-analytics.com/__utm.gif\n";

         #Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
   $y = $3;$z = $2;
   for ($y) {
   s/pixel;.*/pixel/;
   s/activity;.*/activity/;
   s/(imgad[^&]*).*/\1/;
   s/;ord=[?0-9]*//;
   s/;&timestamp=[0-9]*//;
   s/[&?]correlator=[0-9]*//;
   s/&cookie=[^&]*//;
   s/&ga_hid=[^&]*//;
   s/&ga_vid=[^&]*//;
   s/&ga_sid=[^&]*//;
   # s/&prev_slotnames=[^&]*//
   # s/&u_his=[^&]*//;
   s/&dt=[^&]*//;
   s/&dtd=[^&]*//;
   s/&lmt=[^&]*//;
   s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
   s/[;&?]ord=[?0-9]*//;
   s/[;&]mpvid=[^&;]*//;
   s/&xpc=[^&]*//;
   # yieldmanager
   s/\?clickTag=[^&]*//;
   s/&u=[^&]*//;
   s/&slotname=[^&]*//;
   s/&page_slots=[^&]*//;
   }
   print $x . "http://" . $1 . $2 . $y . "\n";

         #cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
   print $x . "http://" . $1 . "/" . $2  . "\n";

} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
   print $x . "http://" . $1 . "\n";

         #cdn, varialble 1st path
} elsif (($u =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
   @y = ($1,$2,$4,$5);
   $y[0] =~ s/[a-z0-9]{2,5}/cdn./;
   print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

         #rapidshare
} elsif (($u =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
   print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($u =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
   print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";
   
         #domain/path/.*/path/filename
} elsif (($u =~ /fucktube/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?[^\/]*\/[^\/]*)\/(.*)\/([^\/]*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
   @y = ($1,$2,$4,$5,$6);
   $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
   print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "/" . $y[3] . "." . $y[4] . "\n";

         #like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($u =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
   print $x . "http://cdn." . $4 . $6 . "\n";

         #for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
   print $x . "http://cdn.yimg.com//" . $3 . "\n";
   
         #for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
   print $x . "http://cdn.yimg.com/"  . $3 . "\n";

         #for yimg.com with &sig=
} elsif (m/^http:\/\/([^\.]*)\.yimg\.com\/(.*)/) {
   @y = ($1,$2);
   $y[0] =~ s/[a-z]+([0-9]+)?/cdn/;
   $y[1] =~ s/&sig=.*//;
   print $x . "http://" . $y[0] . ".yimg.com/"  . $y[1] . "\n";
         
         #youjizz. We use only domain and filename
} elsif (($u =~ /media[0-9]{1,5}\.youjizz/) && (m/^http:\/\/(.*?)(\.[^\.\-]*?\.[^\/]*)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})(\?.*?)$/)) {
   @y = ($1,$2,$4,$5);
   $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|([^\.]*cdn[^\.]*)|([^\.]*cache[^\.]*))/cdn/;
   print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

         #general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
   print $x . "http://squid-cdn-url//" . $2  . "." . $3 . "\n";

         # spicific extention
# } elsif (m/^http:\/\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf).*?/) {
   # @y = ($1,$2);
   # $y[0] =~ s/((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
   # print $x . "http://" . $y[0] . "." . $y[1] . "\n";

         #generic http://variable.domain.com/path/filename."ex", "ext" or "exte"
         #http://cdn1-28.projectplaylist.com
         #http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/) {
   @y = ($1,$2,$3,$4);
   $y[0] =~ s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
   print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

         # all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
   print $x . "http://" . $1 . "/" . $2  . "\n";

} else {
   print $x . $_ . "\n";
}
}
saya tidak mengcopas semua storeurl.pl dari web http://pastebin.com/e3TUtigH  melain kan hanya mengambil settingan youtube saja...

hasilnya gimana kk??  kebetulan ane baru semalam belajar lagi pfsense i

Offline meunara.net

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • afffiikaaa...!!!
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #41 on: May 02, 2012, 02:13:51 am »
Quote
hasilnya gimana kk??  kebetulan ane baru semalam belajar lagi pfsense i
sudah tidak ada masalah error lagi, walau ada jenis video youtube yang tidak tercache..., tidak menjadi masalah jika tidak terjadi error..

Offline pfsense_aja

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #42 on: May 02, 2012, 04:47:55 am »
Quote
hasilnya gimana kk??  kebetulan ane baru semalam belajar lagi pfsense i
sudah tidak ada masalah error lagi, walau ada jenis video youtube yang tidak tercache..., tidak menjadi masalah jika tidak terjadi error..
berarti dah mantap tuh..

sampe sekarang ane masih gagal terus nih ikutin materi di trit sebelah,.. tutor2nya aneh2 kk

Offline kaptenhook

  • Full Member
  • ***
  • Posts: 139
  • Karma: +0/-0
  • pisssss
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #43 on: May 02, 2012, 11:16:40 am »
Untuk nyang kemaren link dari Vevo belum hit, coba storeurl.pl nya di update lagi, bagian ini:

Quote
   
                #ini untuk cache partial
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(id=[a-zA-Z0-9]*).*?\&(range=[0-9]*).*/) {
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $2 . $3 . "\n";
 
                # compatibility for old cached get_video?video_id
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) {
        $z = $2; $z =~ s/video_id=/get_video?video_id=/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $z . "\n";
       
                              # youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";



diganti dengan ini:

                                 #youtube All itag (semua resolusi)
} elsif ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        @begin = m/[&?](begin=[^\&\s]*)/;
        @redirect = m/[&?](redirect_counter=[^\&]*)/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range@begin@redirect\n";



Offline meunara.net

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
  • afffiikaaa...!!!
    • View Profile
Re: (SHARE) MENGATASI ERROR BUKA YOUTUBE
« Reply #44 on: May 02, 2012, 07:32:00 pm »
trimakasih telah di koreksi pak kapten....,
siap di laksanakan editan nya....,
monggo buat teman - teman di praktekan storeurl.pl editan pak kapten....  :)  :)