May 222009
 

baru tadi sadar, kalo youtube caching nya gak bisa?gak ada satupun yg hit. 🙁
coba utak atik, bisa nge cache kembali yg ada di googlevideo.com
quick workaround.

di script perl store_url_rewrite ubah jadi seperti ini:

$url =~s@^http://(.*?)/get_video\?(.*)video_id=(.*?)&.*@squid://videos.youtube.INTERNAL/ID=$3@;
$url =~s@^http://(.*?)/get_video\?(.*)video_id=(.*?)$@squid://videos.youtube.INTERNAL/ID=$3@;
$url =~s@^http://(.*?)/videoplayback\?(.*)id=(.*?)$@squid://videos.google.INTERNAL/ID=$3@;
$url =~s@^http://(.*?)/videoplayback\?(.*)id=(.*?)&.*@squid://videos.google.INTERNAL/ID=$3@;

di squid.conf:

acl store_rewrite_list url_regex ^http://(.*?)/get_video\?
acl store_rewrite_list url_regex ^http://(.*?)/videoplayback\?
refresh_pattern ^http://(.*?)/get_video\? 10080 90% 999999 override-expire ignore-no-cache ignore-private
refresh_pattern ^http://(.*?)/videoplayback\? 10080 90% 999999 override-expire ignore-no-cache ignore-private

saya test bisa meng-cache yg ada di google video

1243017933.687 55980 172.18.1.5 TCP_HIT/200 5007160 GET http://v14.lscache7.googlevideo.com/videoplayback?ip=0.0.0.0&sparams=id,expire,ip,ipbits,itag&itag=34&ipbits=0&sver=3&expire=1243015200&key=yt1&signature=A1743BEF65E797AEF9E5B98998D45E2F7661B41F.55FDA15EF1725A1C0EA18CA9E4C88ED99465529F&id=26cccdee1f384d7b - NONE/- video/x-flv

nb: setelah di pikir2 sepertinya lebih enak pake aplikasi cachevideos, http://cachevideos.com/download. dengan sedikit modifikasi hasil caching nya bisa di share untuk squid proxy yg lain.

Oct 092008
 

YouTube is a video-sharing website on which users can upload, share, and view videos, created by three former PayPal employees in February 2005. The company is based in San Bruno, California, and uses Adobe Flash Video and HTML5[4] technology to display a wide variety of user-generated video content, including movie clips, TV clips, and music videos, as well as amateur content such as video blogging and short original videos. Most of the content on YouTube has been uploaded by individuals, although media corporations including CBS, BBC, Vevo, Hulu and other organizations offer some of their material via the site, as part of the YouTube partnership program.

Nerusin topik sebelumnya , setelah berhasil bikin proxy pakai squid di winxp, akan di coba nambahin local resolver dns pakai bind9(windows precompile binary).

step pertama, nginstall bind9 di winxp
download precompile bind9 untuk windows di sini:

http://ftp.isc.org/isc/bind9/9.5.0-P2-W2/BIND9.5.0-P2-W2.zip

  • extrak di satu folder.
  • didalam folder klik 2 kali BINDInstall
  • muncul popup windows installer kecil, biarkan semua nya default, kecuali service account password,klik install

tunggu sampai selesai.

hasil instalasi nya nanti akan berada di sini C:\WINDOWS\system32\dns

  • klik start -> run -> ketik cmd, cd ke C:\WINDOWS\system32\dns\etc\

– buat file dengan nama named.conf,isinya seperti ini:

Continue reading »