[HOT POOLLING]Apakah Youtube Error Lagi ?

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [HOT POOLLING]Apakah Youtube Error Lagi ?

Post by q_p » 24 Mar 2013, 17:15

Anda tdk menjawab pertanyaan saya tentang "kronologi" :)
sya mengikuti cara ini
build squid dengan "--enable-referer-log"
bagaimana anda melakukannya ?


User avatar
hidden_net
Posts: 20
Joined: 20 Mar 2013, 00:27

Post by hidden_net » 24 Mar 2013, 17:55

udah bisa mas youtube nya setelah pake ini heheheh

if ($X[1] =~ /(youtube|google).*videoplayback\?/){
@cp = m/[&\?\s](cp=[^\&\s]*)/;
@itag = m/[&?](itag=[^\&\s]*)/;
@range = m/[&?](range=[^\&\s]*)/;
@id = 'id='.(substr join("", @cp), 15, 9);
print $x . "http://video-srv.youtube.com.SQUIDINTER ... g&@range\n";


User avatar
beling
Posts: 15
Joined: 16 Feb 2013, 20:14
Location: gresik
Contact:

Post by beling » 24 Mar 2013, 17:58

aadanwde wrote:Mas.. kalo mau download video dr youtube gimana ya? udah keliling pake cara downverter, cara di folder /tmp youtube-dl -o tetep ga bisa.. bagaimana ya?
Pake keepvid aja mas :D
Pragola_Pati wrote:Anda tdk menjawab pertanyaan saya tentang "kronologi" :)
sya mengikuti cara ini
build squid dengan "--enable-referer-log"
bagaimana anda melakukannya ?
idem pertanyaannya, compile / build squid "--enable-referer-log" caranya gimana ya ?


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 24 Mar 2013, 19:30

@beling
Coba anda simak lagi yang di atas ini, sudah pernah saya singgung pada halaman sebelumnya
:D


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 04:15

Hallo All,

Saya baru gabung di forum ini.

Tutorialnya mantap.
Dan saya sudah berhasil untuk caching youtube.
Config saya pakai yang cah_clacap.
Configurasi ulang lusca dengan tut dari Rhobbyn.
Dan storeurl pakai yang ucok & chudy yang di jabarkan Adith.
Thank's untuk smua yang telah membantu.

Kalau ada teman-teman yang butuh bantuan, saya siap membantu.


User avatar
AbiLL_O2n
Posts: 2
Joined: 25 Mar 2013, 04:09

Post by AbiLL_O2n » 25 Mar 2013, 04:36

THANKS FOR ALLL......gaya dikit gpp lah...heee

sya jg bru gbung nih.....

kalian luar biasa........skali lg mksih bnyak ya kawan2 fui.....maju terus hancurkan y**tu**....kkkkk


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 05:59

JuldianTan wrote:Hallo All,

Saya baru gabung di forum ini.

Tutorialnya mantap.
Dan saya sudah berhasil untuk caching youtube.
Config saya pakai yang cah_clacap.
Configurasi ulang lusca dengan tut dari Rhobbyn.
Dan storeurl pakai yang ucok & chudy yang di jabarkan Adith.
Thank's untuk smua yang telah membantu.

Kalau ada teman-teman yang butuh bantuan, saya siap membantu.


__________________________________

MAntapppp /.......
KAlo sya malah gagal terus pas nerapin di LUSCA ... kalo di Squid 2.7 sih OK ....
Tolong master semua yg sudah bisa di LUSCA digelas Storeurl.pl nya .....
Terus di LUSCA selalu muncul pesan UNLOCATED ....... gimana cara mengatasinya TQ b4..


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 05:59

digelar mas brooo


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 06:00

itu masih error mas .... masih acak nyimpen videonya .....


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 06:03

...ayo bozzz yg .....dishare yg utk LUSCA ..... kasihan teman2 masih byk yg gagal nerapinnya di LUSCA 14089


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 06:04

Tetap belum bisa mas ...utk LUSCA


User avatar
sonor
Posts: 38
Joined: 20 Jun 2011, 16:22

Post by sonor » 25 Mar 2013, 09:01

ikut nyimak dulu...blm sempat ngoprek


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 09:04

cah_clacap wrote:Tetap belum bisa mas ...utk LUSCA
Stuck di bagian mana mas ?


User avatar
riophone
Posts: 34
Joined: 21 Mar 2013, 21:40
Location: Medan, Indonesia

Post by riophone » 25 Mar 2013, 10:41

Di tempat saya pakai lusca, youtube HIT dengan baik. Cuma recompile ulang luscanya dan penambahan storeurl + squidconf.

#-----------------------------------------------------#
## SQUID - High Performance Configuration
#-----------------------------------------------------#

http_port 3128 transparent
cache_mem 8 MB
server_http11 on

pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid/
error_directory /usr/share/squid/errors/English
icon_directory /usr/share/squid/icons
mime_table /etc/squid/mime.conf

maximum_object_size_in_memory 4 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
minimum_object_size 0 KB
maximum_object_size 500 MB
cache_swap_low 90%
cache_swap_high 95%
cache_dir aufs /cache1 400000 16 256
#cache_dir aufs /cache2 150000 16 256
#cache_dir aufs /cache3 150000 16 256
#cache_dir aufs /cache4 150000 16 256
#cache_dir aufs /home/cache4 12000 28 256
access_log /cache/access.log
cache_log /cache/cache.log
cache_log /dev/null
cache_store_log /cache/store.log
referer_log /cache/referer.log
redirect_rewrites_host_header off
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255

acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 # http
acl Safe_ports port 20 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 631 # cups
acl Safe_ports port 10000 # webmin
acl Safe_ports port 901 # SWAT
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 110 # POP3
acl Safe_ports port 25 # SMTP
acl Safe_ports port 2095 2096 # webmail from cpanel
acl Safe_ports port 2082 2083 # cpanel

acl CONNECT method CONNECT
acl dynamic urlpath_regex cgi-bin \?
acl all src 0.0.0.0/0
acl lokal src 192.168.0.0/24 192.168.118.0/24
http_access allow manager
http_access allow localhost
http_access allow lokal
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all

acl winupdate dstdomain -i .windowsupdate.com .meitu.com
acl video urlpath_regex "/etc/squid/video.acl"
acl mallware url_regex "/etc/squid/mallware.url"
acl conficker url_regex "/etc/squid/conficker.url"
acl block dstdomain "/etc/squid/block"
acl blokir url_regex -i "/etc/squid/blokir.txt"
#acl belok url_regex -i "/etc/squid/belok.txt"

acl ads1 dstdom_regex -i google-analytics.com webtrendslive.com intellitxt.com webtrendslive.com doubleclick.net googlesyndication.com grapeshot.co.uk atwola.com addthis.com advertising.com tacoda.net atdmt.com digg.com advertising.com
http_access deny ads1
acl ads2 dstdom_regex -i serving-sys.com collective-media.net fmpub.net scorecardresearch.com quantserve.com
http_access deny ads2
acl ads3 dstdom_regex -i smartadserver.com xiti.com googleadservices.com adsonar.com
http_access deny ads3
acl ads4 urlpath_regex -i utusan/iklan myMetro/Ads BHimages/ad
http_access deny ads4
acl ads5 dstdom_regex -i adtimes.nstp.com.my cdn.innity.com perfisio.com cachefly.net hmetro.egglad.com click.thestar.com.my niexus.emedia.com.my
http_access deny ads5
acl ads6 dstdom_regex -i opencandy.com
http_access deny ads6
#acl porn dstdom_regex -i 1tube.com media.1tube.com fuckish.com
#http_aacess deny porn

http_access deny winupdate
http_access deny blokir
http_access deny mallware
http_access deny conficker
http_access deny block


#acl admin src 192.168.10.250/32
#acl management src 192.168.10.251/32
# Agar yotube tidak loopback
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite

acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.mpe$ \.mid$ \.flv$ \.3gp$
acl download url_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$
acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.mp2$ \.mpa$ \.wax$
acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$
acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$
acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$ \.mkv$

delay_pools 1

delay_class 1 1
delay_parameters 1 -1/-1
delay_access 1 allow lokal
delay_access 1 allow download
delay_access 1 deny all


# Caching Youtube
acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.youporn\.com\/(.*)\.flv
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url url_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl videocache_allow_url url_regex -i \.apniisp\.com\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
acl videocache_allow_url url_regex -i \.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_url url_regex -i redtube\.com\/(.*)\.flv
acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET

storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access deny videocache_deny_dom
storeurl_access allow videocache_allow_url
storeurl_access allow videocache_allow_dom
storeurl_access deny all

storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 7
storeurl_rewrite_concurrency 100

acl store_rewrite_list urlpath_regex -i \/(get_video\?|videodownload\?|videoplayback.*id)
acl store_rewrite_list urlpath_regex -i \.flv$ \.mp3$ \.mp4$ \.swf$ \
storeurl_access allow store_rewrite_list
storeurl_access deny all

#konten dinamik
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.co(m|\.id) streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com

acl dontrewrite url_regex yimg.com redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\?
acl getmethod method GET

storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
storeurl_access deny all


refresh_pattern -i \.flv$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.mp3$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.mp4$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.swf$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.gif$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.jpg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.jpeg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
refresh_pattern -i \.exe$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth

# 1 year = 525600 mins, 1 month = 10080 mins, 1 day = 1440
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern \.(ico|video-stats) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
refresh_pattern \.etology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern galleries\.video(\?|sz) 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern brazzers\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern \.adtology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 10080 20% 10080 ignore-no-cache ignore-private override-expire ignore-reload ignore-auth negative-ttl=40320 max-stale=10
refresh_pattern ^.*safebrowsing.*google 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth negative-ttl=10080
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 10080 80% 10080 override-expire ignore-reload ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.jpg 10080 80% 10080 override-expire ignore-reload
refresh_pattern images\.friendster\.com.*\.(png|gif) 10080 80% 10080 override-expire ignore-reload
refresh_pattern garena\.com 10080 80% 10080 override-expire reload-into-ims
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 override-expire ignore-reload
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 10080 80% 10080 ignore-no-cache override-expire override-lastmod
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 reload-into-ims override-expire ignore-private
refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080

#ads
refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 129600 20% 129600 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth store-stale negative-ttl=40320 max-stale=1440
#specific sites
refresh_pattern ^.*safebrowsing.*google 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth negative-ttl=10080 store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 129600 99100% 129600 override-expire ignore-reload store-stale
refresh_pattern \.(ico|video-stats) 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod negative-ttl=10080 store-stale

#images facebook
refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache

# website
#refresh_pattern -i \.(xml|html|htm|js|jsp|txt|css|php|asp)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale
#refresh_pattern -i \.(xml|js|jsp|txt|css)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale
#refresh_pattern -i \.(xml|js|jsp|txt|css)\? 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale

#sound, video multimedia
refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|wmv)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache store-stale
refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private store-stale

#All File
refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|mar|rpm|exe|inc|cab|qt) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims

refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern ^ftp: 10080 95% 10080 override-lastmod reload-into-ims
refresh_pattern . 1440 95% 10080 override-lastmod reload-into-ims


hierarchy_stoplist (ini|ui|lst|inf||mh-|sc-)$ (afs.dat|update.txt|vdf.info.gz|captcha|reset.css|gamenotice|ickernew.css)
acl QUERY urlpath_regex -i \.(ini|ui|lst|inf|mh-|sc-)$
acl QUERY urlpath_regex -i (afs.dat|captcha|reset.css|update.txt|gamenotice|vdf.info.gz)
cache deny QUERY


fqdncache_size 4096
ipcache_low 98
ipcache_high 99
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 75
shutdown_lifetime 10 seconds
memory_pools off
buffered_logs off
log_icp_queries off
logfile_rotate 1
log_fqdn off
forwarded_for off
icp_hit_stale on
query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 2 minutes
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off
cache_mgr riophone@yahoo.com
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.ebty3jumpa.net
unique_hostname ebty3jumpa.proxy
cachemgr_passwd none all
client_db on
max_filedescriptors 8192

# TAG: ZPH
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136


Kalau utk storeurl sama pakai update seperti yg di atas


User avatar
riophone
Posts: 34
Joined: 21 Mar 2013, 21:40
Location: Medan, Indonesia

Post by riophone » 25 Mar 2013, 10:56

Untuk lusca coba perhatikan letak referer.log
#######################
sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/cache/referer.log'); readline))
####################
di Squid.Conf
referer_log /cache/referer.log

dan tambahkan line berikut agar youtube tidak loopback di atas storeurl_access deny dontrewrite yg lainnya

acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite

###################


User avatar
sipelaut
Posts: 1965
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Post by sipelaut » 25 Mar 2013, 13:32

hebaatt semua nichh pada bisa ngecache yutub semua sekarang
sekarang ane tantangin hayooo, mesin siapa yang bisa ngecache yutub yang ini hekekek.....
[video:youtube]http://www.youtube.com/watch?v=2XwmldWC_Ls[/video]

atau yang ini
[video:youtube]http://www.youtube.com/watch?feature=pl ... sA9PhnYASQ[/video]
kurang kerjaan tuchh yang uploadd
bendwithnya sampek muntah kalii yaaa ????


User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Post by anbel » 25 Mar 2013, 13:59

Saya pakai LUSCA gak masalah mas, lancar2 saja
Pesan Unlocated saat instruksi apa?
cah_clacap wrote:
JuldianTan wrote:Hallo All,

Saya baru gabung di forum ini.

Tutorialnya mantap.
Dan saya sudah berhasil untuk caching youtube.
Config saya pakai yang cah_clacap.
Configurasi ulang lusca dengan tut dari Rhobbyn.
Dan storeurl pakai yang ucok & chudy yang di jabarkan Adith.
Thank's untuk smua yang telah membantu.

Kalau ada teman-teman yang butuh bantuan, saya siap membantu.


__________________________________

MAntapppp /.......
KAlo sya malah gagal terus pas nerapin di LUSCA ... kalo di Squid 2.7 sih OK ....
Tolong master semua yg sudah bisa di LUSCA digelas Storeurl.pl nya .....
Terus di LUSCA selalu muncul pesan UNLOCATED ....... gimana cara mengatasinya TQ b4..


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 14:37

Hi All...
Saya gelar smuanya ya.


INSTALASI UBUNTU
[spoiler]1. MASUKKAN CD UBUNTU KE CDROM DAN boot pilih ke cdroom,
2. Pilih language english (enter)
3. Pilih instal ubuntu server (enter)
4. Tekan enter pada choose langguage english
5. Pada pilihan lokasi pilih asia dan pilh jakarta.
6. Klik no pada detect keyboard layout?
7. Klik USA pada ubuntu installer main menu
8. Klik USA pada keyboard layout
9. Klik continue pada configure the network
10. Pilih configure network manually dan isi ip addressnya =======>ini ip address proxy bkan gateway proxy ya (contoh:192.168.2.2 atau 192.168.3.10 TERSERAH ANDA asal digit terakhir jangan 1 ) pilih continue enter

11. Netmask 255.255.255.0 pilih continue enter

12. Gateway=======>langsung di enter saja ip gateway otomatis terisi sesuai dengan ip address yang anda masukan tadi contohnya (192.168.2.1) terus klik continue

13. Name server addresses 192.168.2.1 pilih continue enter (langsung enter saja)

14. Hotsname : isi dg contohnya ====> (THEKIDNET) terus pilih continue enter (isi sesuai keinginan anda misalnya disini nama warnet saya)

15. Domain name: di kosongin saja, pilih continue enter
16. Pada configure the clok pilih select from worldwide list terus cari jakarta (sesuaikan lokasi anda) terus enter
17. Pada menu partition disk pilih manual
18. Kita hapus partisi lama dulu :(Kalo ada klw ga ada ya langsung aja ke step 21)
19. Pilih partisi nya terus enter pilih delete the partion (ulangi perintah ini untuk semua partisi yg tersisa)
20. Jika telah selesai pilih Guided partitioning, kemudian pilih manual arahkan pada FREE SPACE (enter)

21. Pilih Create new partition (enter)

22. New partition size isi 256 mb (pilih continue dan enter), pilih Primary (enter), pilih Beginning (enter), pada use as pilih EXT4 (enter) pada Mount point pilih /boot (enter), pd mount option pilih[*]
noatime (pilih continue dan enter), pada Bootable Flag rubah menjadi on JIKA STATUS NYA TDK BERUBAH ABAIKAN SAJA kemudian pilih done setting up the partition

23. New partition size isi 15 gb (pilih continue dan enter), pilih Primary (enter), pilih Beginning (enter), pada use as pilih EXT4 (enter) pada Mount point pilih /root (enter), pd mount option pilih[*] noatime
(pilih continue dan enter), kemudian pilih done setting up the partition

24. New partition size isi 35 gb (pilih continue dan enter), pilih Primary (enter), pilih Beginning (enter), pada use as pilih EXT4 (enter) pada Mount point pilih /home (enter), pd mount option pilih[*] noatime
(pilih continue dan enter), kemudian pilih done setting up the partition

25. Arahkan pada FREE SPACE (enter), pilih Create new partition (enter) new partition size isi 4 gb ( besarnya 2x RAM) pilih continue dan enter, pilih Primary (enter), pilih Beginning (enter), pada use as
pilih swap area (enter), kemudian Pilih done setting up the partition

26. Arahkan pada FREE SPACE (enter), pilih Create new partition (enter) new partition size isi sisa semua harddisk (pilih continue dan enter), pilih Primary (enter), pilih Beginning (enter),
pada use as pilih btrFS untuk 64bit atau Reinsfers untuk 32bit (enter) pada Moun point enter manually buat menjadi /cache, pd mount option pilih[*] noatime dan realtime kemudian Pilih continue dan done setting up the partition

27. Kemudian pilih finis partitioning and write changes to disk, write the changes to disk pilih yes
28. pada full name for the new user isi dg contoh>>>(THEKIDNET), terus continue & enter
29. pada Username for your account isi dg THEKIDNET, terus continue & enter
30. pada a password for the new user isi dg THEKIDNET, terus continue & enter
31. pada re-enter password to verify isi dg THEKIDNET, terus continue & enter
32. pada use weak password pilih yes
33. pada encrypt your home directory pilih no
34. pada HTTP proxy information KOSONGIN SAJA
35. pada configurasi apt 43% tekan enter, juga pada 81% tekan enter pilih no automatic update
36. pada choose software to install pilih OpenSSH server pilih continus pd finish the installation dan reboot, ambil CD Ubuntu >>>> (klw saya ditambah print server sama samba file sharing)
37. setelah reboot buka putty dan login ke mesin proxy anda dengan username dan password yang telah anda buat tadi
38. setelah masuk ketik sudo su
39. lalu masukan password
40. ketik passwd lalu isi password baru dan konfirmasi passwordnya dan reboot.[/spoiler]

INSTALASI LUSCA
===============
Cek CHOST dan CFLAGS sesuai dengan CPU
- cat /proc/cpuinfo
AMD 64bit http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD
Intel http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel

Update Ubuntu
- apt-get -y update && apt-get -y upgrade

Install paket yang dibutuhkan
- apt-get -y install squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9 acpid unzip libfile-readbackwards-perl

Download LUSCA
- wget http://juldian.web.id/lusca/LUSCA_HEAD-r14809.tar.gz
- extract: tar -xvzf LUSCA_HEAD-r14809.tar.gz
- pindah ke dir lusca: cd cd LUSCA_HEAD-r14809
- download patch lusca: http://juldian.web.id/lusca/LUSCA_HEAD- ... CTH.tar.gz
- extract: tar -zxvf LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
- jalankan patchnya:
patch -p0 /proc/sys/fs/file-max
fi
ulimit -n $SQUID_MAXFD
}

start () {
cdr=`grepconf2 cache_dir /var/spool/$NAME`
ctp=`grepconf cache_dir ufs`

case "$cdr" in
[0-9]*)
log_failure_msg "squid: squid.conf contains 2.2.5 syntax - not starting!"
log_end_msg 1
exit 1
;;
esac

#
# Create spool dirs if they don't exist.
#
if [ -d "$cdr" -a ! -d "$cdr/00" ] || [ "$ctp" = "coss" -a ! -w "$cdr" ]
then
log_warning_msg "Creating squid cache structure"
$DAEMON $SQUID_ARGS -z
fi

if [ "$CHUID" = "" ]; then
CHUID=root
fi

maxfds
umask 027
start-stop-daemon --quiet --start \
--pidfile $PIDFILE \
--chuid $CHUID \
--exec $DAEMON -- $SQUID_ARGS /dev/null`
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name squid
#
# Now we have to wait until squid has _really_ stopped.
#
sleep 2
if test -n "$PID" && kill -0 $PID 2>/dev/null
then
log_action_begin_msg " Waiting"
cnt=0
while kill -0 $PID 2>/dev/null
do
cnt=`expr $cnt + 1`
if [ $cnt -gt 24 ]
then
log_action_end_msg 1
return 1
fi
sleep 5
log_action_cont_msg ""
done
log_action_end_msg 0
return 0
else
return 0
fi
}

case "$1" in
start)
log_daemon_msg "Starting Squid HTTP proxy" "squid"
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
stop)
log_daemon_msg "Stopping Squid HTTP proxy" "squid"
if stop ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
reload|force-reload)
log_action_msg "Reloading Squid configuration files"
$DAEMON -k reconfigure
log_action_end_msg 0
;;
restart)
log_daemon_msg "Restarting Squid HTTP proxy" "squid"
stop
if start ; then
log_end_msg $?
else
log_end_msg $?
fi
;;
status)
status_of_proc -p "$PIDFILE" "$DAEMON" squid && exit 0 || exit $?
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart|status}"
exit 3
;;
esac

exit 0
[/spoiler]

squid.conf
[spoiler]http_port 3128 transparent
server_http11 on

pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid/
error_directory /usr/share/squid/errors/English
icon_directory /usr/share/squid/icons
mime_table /etc/squid/mime.conf

cache_mem 8 MB
maximum_object_size_in_memory 512 bytes
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA

minimum_object_size 0 KB
maximum_object_size 512 MB
cache_swap_low 97
cache_swap_high 99

cache_dir aufs /cache 50000 16 256


access_log daemon:/var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
referer_log /var/log/squid/referer.log
cache_store_log none
store_dir_select_algorithm round-robin
logfile_daemon /usr/lib/squid/logfile-daemon
logfile_rotate 1

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8
acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16


acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl purge method PURGE
acl snmppublic snmp_community public
include /etc/squid/pattern.conf

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access allow localnet
http_access allow all
http_access deny all

icp_access allow localnet
icp_access deny all
icp_port 0

buffered_logs on

acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

forwarded_for off
header_access From deny all
header_access Server deny all
header_access Link deny all
header_access Via deny all
header_access X-Forwarded-For deny all
httpd_suppress_version_string on

shutdown_lifetime 10 seconds

snmp_port 3401
snmp_access allow snmppublic all
dns_timeout 1 minutes

#dns_nameservers 8.8.8.8
#dns_testnames 127.0.0.1

#fqdncache_size 4096 # aslinya
fqdncache_size 16384
#ipcache_size 10240 # aslinya
ipcache_size 16384
ipcache_low 97
ipcache_high 99
log_fqdn off
memory_pools off

maximum_single_addr_tries 2
retry_on_error on

icp_hit_stale on

strip_query_terms on

query_icmp on
reload_into_ims on
emulate_httpd_log off
negative_ttl 0 seconds
pipeline_prefetch on
vary_ignore_expire on
half_closed_clients off
high_page_fault_warning 2
nonhierarchical_direct on
prefer_direct off
cache_mgr juldian@j-com.web.id
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.j-com.web.id
unique_hostname proxy.j-com.web.id
cachemgr_passwd none all
client_db on
max_filedescriptors 8192

# TAG: ZPH
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136[/spoiler]


refresh pattern
[spoiler]nano /etc/squid/pattern.conf
============================
acl store_rewrite_list urlpath_regex \/(get_video|video\?v|videoplayback\?id|videoplayback.*id)
acl store_rewrite_list urlpath_regex \/(get_video\?|videodownload\?|videoplayback.*id|watch\?)
acl store_rewrite_list urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z)\?
acl store_rewrite_list_domain url_regex ^http:\/\/(([a-z-]+[0-9-]+)|([0-9-]+[a-z-]+))\.[a-z0-9-]*\.[a-z]{2,4}
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(3gp|mp(3|4)|flv|(m|f)4v|on2|fid|avi|mov|wm(a|v)|(mp(e?g|a|e|1|2))|mk(a|v)|jp(e?g|e|2)|gif|png|tiff?|bmp|tga|svg|ico|swf|exe|ms(i|u|p)|cab|psf|mar|bin|z(ip|[0-9]{2})|r(ar|[0-9]{2})|7z)$
acl store_rewrite_list_domain_CDN url_regex (cbk|mt|khm|mlt|tbn)[0-9]?.google\.co(m|\.uk|\.id)
acl store_rewrite_list_domain_CDN url_regex photos-[a-z].ak.fbcdn.net
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/([a-z])[0-9]?(\.gstatic\.com|\.wikimapia\.org)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/.*speedtest.*
acl store_rewrite_list_domain_CDN url_regex streamate.doublepimp.com.*\.js\? \.doubleclick\.net.* yieldmanager cpxinteractive quantserve\.com
acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
acl speedtest_allow_dom dstdomain .speedtest.net

acl dontrewrite url_regex (get_video|video\?v=|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\? \.asp\? \.aspx\? threadless.*\.jpg\?r=
acl getmethod method GET

storeurl_access deny dontrewrite
storeurl_access deny !getmethod

storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
storeurl_access allow speedtest_allow_url
storeurl_access allow speedtest_allow_dom
storeurl_access deny all
storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 4
storeurl_rewrite_concurrency 10

acl DENYCACHE urlpath_regex \.(ini|ui|lst|inf|pak|ver|patch|md5|cfg|lst|list|rsc|log|conf|dbd|db)$
acl DENYCACHE urlpath_regex (notice.html|afs.dat|dat.asp|patchinfo.xml|version.list|iepngfix.htc|updates.txt|patchlist.txt)
acl DENYCACHE urlpath_regex (pointblank.css|login_form.css|form.css)$
acl DENYCACHE urlpath_regex (Loader|gamenotice|sources|captcha|notice|reset)
cache deny DENYCACHE

refresh_pattern \.facebook\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 43800 99999% 43200 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern \.fbcdn\.net.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 43800 99999% 43800 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale negative-ttl=0
refresh_pattern ^.*safebrowsing.*google 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale

#ads
refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 2629742 20% 2629742 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=1440

refresh_pattern (get_video\?|videoplayback\?|videodownload\?|watch\?\.flv?|.vid\?) 2629742 99999999% 2629742 override-expire ignore-reload ignore-must-revalidate ignore-no-cache ignore-no-store ignore-private store-stale negative-ttl=0
refresh_pattern (\.swf\?|\.avi\?|\.mov\?|\.wm(a|v)\?|\.3gp\?|\.mp(4|3)\?|\.rm\?|\.ram\?|\.m4v\?|\.on2\?) 43200 999999% 2629742 override-expire ignore-reload ignore-must-revalidate ignore-no-cache ignore-no-store ignore-private store-stale negative-ttl=0
refresh_pattern \.(ico|video-stats) 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale

refresh_pattern (photobucket|pbsrc|flickr|yimg|ytimg|twimg|gravatar)\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern ^http:\/\/images|image|img|pics|openx|thumbs[0-9]\. 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern (zynga|ninjasaga|mafiawars|cityville|farmville|crowdstar|spilcdn|agame|popcap)\.com/.* 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern \.(akamaihd|edgecastcdn|spilcdn|zgncdn|(tw|y|yt)img)\.com.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern \.gstatic\.com/images\? 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern (gstatic|diggstatic)\.com/.* 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-private ignore-no-store ignore-must-revalidate store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt|tbn)[0-9]?)\.google\.co(m|\.uk|\.id) 43200 999999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate ignore-no-store negative-ttl=10080 store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 2629742 999999% 2629742 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern \.speedtest/.* 43200 99999% 432000 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern galleries\.video(\?|sz) 2629742 999999% 2629742 override-expire ignore-reload ignore-no-cache ignore-must-revalidate ignore-private store-stale
refresh_pattern \.wikimapia\.org\/? 43200 99999% 43200 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-must-revalidate store-stale
refresh_pattern \.(rackcdn|spilcdn|zgncdn)\.com.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 43200 9999% 43200 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern code.googlec.com.*(svn|download) 0 50% 1440 reload-into-ims

#sensitive site
refresh_pattern -i \.(sc-|dl-|ex-|mh-|dll|da-|iop) 0 5% 60 reload-into-ims
refresh_pattern -i \.(mst|Xtp)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (main.exe|update.exe|grandchase.exe|FSLauncher.exe|FreeStyle_Setup.exe|grandchase.exe|filelist.zip|autoupgrade.exe)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (UpdaterModifier.exe|FreeStyle.exe|PBLauncher.exe|update.exe|NewLauncher.exe|NewAvalon.exe|hon.exe.zip|cabal.exe)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (PointBlank.exe.zip|HSUpdate.exe.zip|PBConfig.exe.zip) 0 50% 1440 reload-into-ims
refresh_pattern -i (wks_avira-win32-en-pecl.info.gz|wks_avira10-win32-en-pecl.info.gz)$ 0 50% 1440 reload-into-ims
refresh_pattern -i (setup.exe.gz|avscan.exe.gz|avguard.exe.gz|filelist.zip|AvaClient.exe) 0 50% 1440 reload-into-ims
refresh_pattern -i (livescore.com|goal.com|bobet) 0 50% 60 reload-into-ims

#antivirus
refresh_pattern avast.com.*\.vpx 40320 90% 161280 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate reload-into-ims
refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
refresh_pattern kaspersky.*\.avc$ 2629742 999999% 2629742 ignore-reload store-stale
refresh_pattern kaspersky 1440 50% 161280 ignore-no-cache store-stale

#general
refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 2629742 999999% 2629742 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-private ignore-must-revalidate store-stale
refresh_pattern \.(z(ip|[0-9]{2})|r(ar|[0-9]{2})|jar|bz2|gz|tar|rpm|vpu) 2629742 999999% 2629742 override-expire reload-into-ims ignore-no-cache ignore-private ignore-must-revalidate ignore-no-store store-stale
refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape) 2629742 999999% 2629742 override-expire reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-must-revalidate ignore-no-store store-stale
refresh_pattern \.(exe|msi|msp|msu|dmg|bin|xpi|iso|swf|mar|psf|cab) 2629742 999999% 2629742 override-expire reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-must-revalidate ignore-no-store store-stale
refresh_pattern \.(mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 2629742 999999% 2629742 override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-auth ignore-must-revalidate ignore-no-store negative-ttl=0 store-stale
refresh_pattern -i (cgi-bin) 0 0% 0
refresh_pattern \.(php|jsp|cgi|asx|asp|aspx)\? 0 0% 0
refresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stale
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 50% 40320 store-stale[/spoiler]


storeurl.pl
[spoiler]nano /etc/squid/storeurl.pl | chmod +x /etc/squid/storeurl.pl
=============================================================
#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamp ... Discussion
# http://www.facebook.com/stressss

$|=1;
while () {
@X = split;
$x = $X[0] . " ";

#facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)/) {
print $x . "http://facebook.SQUIDINTERNAL" . $2 . "fb" . $5 . "\n";

#Speedtest
} elsif (m/^http\:\/\/.*\/speedtest\/(.*)\?.*/) {
print $x . "http://speedtest.SQUIDINTERNAL/speedtest/" . $1 . "\n";

#reverbnation
} elsif (m/^http:\/\/[a-z0-9]{4}\.reverbnation\.com\/.*\/([0-9]*).*/) {
print $x . "http://reverbnation.com.SQUIDINTERNAL/" . "$1" . "\n";

#BLOGSPOT
} elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
print $x . "http://blog-cdn." . $1 . "\n";

#ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
print $x . "http://cdn.ytimg.com" . $1 . "\n";

#AVAST
} elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
print $x . "http://avast-cdn." . $1 . "\n";

#KAV
} elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
print $x . "http://kav-cdn." . $1 . "\n";

#AVG
} elsif (m/^http:\/\/update.avg.com/) {
print $x . "http://avg-cdn." . $1 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
print $x . "http://" . $1 . $2 . "\n";

#gstatic and/or wikimapia
} elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
print $x . "http://" . $1 . $2 . "\n";

#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
print $x . "http://" . $1 . $2 . "\n";

# for ALL Youtube ( range & non range )
# first you need do this
# build your squid with "--enable-referer-log"
# install package dependencies "apt-get install libfile-readbackwards-perl"
# add this "referer_log /var/log/squid/referer.log" to your squid config

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
@itag = m/[&?](itag=[0-9]*)/;
@CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
@IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
$id = &GetID($CPN[0], $IDS[0]);
@range = m/[&?](range=[^\&\s]*)/;
print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";

#Google
} 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 (($X[1] =~ /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 (($X[1] =~ /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 (($X[1] =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

#domain/path/.*/path/filename
} elsif (($X[1] =~ /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 (($X[1] =~ /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 (($X[1] =~ /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. "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 . $X[1] . "\n";
}
}


sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/var/log/squid/referer.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*cpn=$CPN[0].*video\_id=([a-zA-Z0-9\-\_]*).*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*video\_id=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $1;
last;
}
}
$ref_log->close();
return $id;
}[/spoiler]


Cmd Lusca
=========
squid -f /etc/squid/squid.conf -z
sudo /etc/init.d/squid restart
squid -NDd1
tail -f /cache1/access.log | ccze
update-rc.d squid defaults
netstat -pln |grep squid


Squidstats
==========
apt-get -y install librrds-perl libsnmp-session-perl snmpd rrdtool snmp apache2
perl -MCPAN -e 'install Config::IniFiles'
cd /var/www
wget http://juldian.web.id/lusca/squidstats-r54.tar
tar -xvf squidstats-r54.tar
cd squidstats-r54
cp mib.txt /etc/squid/
cp snmpd.conf /etc/snmp/
untuk squid.conf tambahkan berikut ini :
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all
make && make install
snmpwalk -v 1 -c public localhost
squidstats.pl createdb
squidstats.pl gather
crontab -e
*/5 * * * * /usr/local/bin/squidstats.pl gather >/dev/null
cp squidstats.conf /etc/apache2/conf.d
reboot
hasilnya masuk ke http://ipproxy/squidstats/graph-summary.cgi


Boot Error
==========
nano /etc/grub.d/00_header
ubah -1 menjadi ${2}
update-grub
cek: nano /boot/grub/grub.cfg


nano /etc/apt/sources.list untuk ubuntu 9
=========================================
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic universe
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu karmic-security main restricted
deb http://old-releases.ubuntu.com/ubuntu karmic-security universe
deb-src http://old-releases.ubuntu.com/ubuntu karmic-security universe
deb http://old-releases.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu karmic-security multiverse



situs porno
[spoiler]tube8
flytube.com
bokep
cheat
cheatengine
youjizz.com
sunporno.com
pornoxo.com
cheatengine561.exe
playboy.com
penthouse.com
duniasex.com
17tahun.com
bangbros.com
youporn.com
redtube.com
kukusikis.org
porncall.tv
sikis*.com
sikis*.org
sikis*.tv
sexy-hentai.net
8teenxxx.com
gonzoxxxmovies.com
freeporn.com
***.com
xxxsex.com
yobt.com
porntube.com
porn.com
nudetube.com
FIFA_Installer_v205.1.exe
Ak akoyun
dailymotion.com
videotube.com
sexy-employee.com
sextube.com
sexkitty.net
tubegalore.com
eskimotube.com
tubesex.org
rawtube.com
sextubehere.com
coitustube.com
maturesextube.in
sextubestore.com
retrosextube.net
milfsextube.net
homemoviestube.com
maturevideostube.com
sexvideomix.com
redtubedump.com
bizarresextube.net
sexmothertube.com
freeanimalsextube.net
tubesexshow.com
sexmaturetube.com
bestgrannytube.com
tubetimefun.com
sexstreamingtube.com
sextubedump.com
porngus.com
amateurteenvideo.cn
tubepornfever.com
tubepornpages.com[/spoiler]

Boleh dicoba.
Copas dari cah_clacap, Rhobbyn, ucok & chudy dan Adith.


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 15:00

waduw .....


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 15:01

space hdd harus besar tuh.
kyknya pakai cachevideos bisa tuh.


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 15:03

cah_clacap wrote:waduw .....

ad ap mas bro

bantu di tes donk config yg sy gelar


User avatar
nagas
Posts: 8
Joined: 25 Mar 2013, 14:50

Post by nagas » 25 Mar 2013, 15:03

salam kenal semua warga fui
sya warga baru ijin coba compile.......
mohon bimbingannya para master...


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 15:15

nagas wrote:salam kenal semua warga fui
sya warga baru ijin coba compile.......
mohon bimbingannya para master...


boleh dicobaaaaa
kl ad kesulitan nanti dibantu


User avatar
eby54321
Posts: 2
Joined: 24 Mar 2013, 05:10
Location: Jakarta, Indonesia
Contact:

Post by eby54321 » 25 Mar 2013, 15:39

hai for all, thanx to mr ucok & chudy & this forum, store urlnya..youtube ditempat saya dah jalan normal kembali hitnya..


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 15:49

@Riophon
[size:17pt]Urgent[/size]

Code: Select all

acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
Coba anda perhatikan pada ekor setiap baris code di atas. Di sana terdapat karakter $. Artinya pada setiap baris yang bersangkutan masih ada kelanjutannya. Itu terjadi karena keterbasan layar PuTTy (windows) dan Terminal (Ubuntu).
Untuk memastikan dugaan saya, coba anda lakukan =
1. Dari jendela PuTTy atau Terminal, jalankan =

Code: Select all

# cd /etc/squid
# cat storeurl.pl > storeurl.txt
Buka file storeurl.txt dengan notepad atau teks editor lainnya, cek perbedaannya.
2. Jika hasilnya masih sama, lakukan konfirmasi lagi dengan sumber anda.
Terimaksih, kami nantikan hasil-nya
:D


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 17:58

eby54321 wrote:hai for all, thanx to mr ucok & chudy & this forum, store urlnya..youtube ditempat saya dah jalan normal kembali hitnya..


mantap....
kl tdk keberatan bole di gelar config dan storeurl...


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 18:03

qwerty


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 18:12

@Juldian Tan
Anda mengutip postingan Mas Cah Cilacap yang mengutip postingan anda sendiri :D
:kuku:


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 25 Mar 2013, 18:23

Pragola_Pati wrote:@Juldian Tan
Anda mengutip postingan Mas Cah Cilacap yang mengutip postingan anda sendiri :D
:kuku:


maklum....
lagi rada error
hehehe


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 19:22

selalu keluar pesan kaya gini pas compile

______________

2013/03/25 19:20:20| Rebuilding storage in /cache5 (DIRTY)
2013/03/25 19:20:20| Using Least Load store dir selection
2013/03/25 19:20:20| Set Current Directory to /var/spool/squid/
2013/03/25 19:20:20| Loaded Icons.
2013/03/25 19:20:20| Accepting transparently proxied HTTP connections at 192.168.18.2, port 3128, FD 28.
2013/03/25 19:20:20| Accepting ICP messages at 0.0.0.0, port 3130, FD 29.
2013/03/25 19:20:20| Accepting HTCP messages on port 4827, FD 30.
2013/03/25 19:20:20| Accepting SNMP messages on port 3401, FD 31.
2013/03/25 19:20:20| WCCP Disabled.
2013/03/25 19:20:20| Ready to serve requests.
2013/03/25 19:20:20| WARNING: store_rewriter #1 (FD 6) exited
2013/03/25 19:20:20| WARNING: store_rewriter #2 (FD 8) exited
2013/03/25 19:20:20| WARNING: store_rewriter #3 (FD 9) exited
2013/03/25 19:20:20| WARNING: store_rewriter #4 (FD 10) exited
2013/03/25 19:20:20| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

Aborted (core dumped)


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 19:22

Yang warning itu cara ngatasinya gimana ???


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 19:24

@ Riophone : ayo mas digelar semua jangan setengah2 .... gagal jadinya nih


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 19:26

riophone wrote:Untuk lusca coba perhatikan letak referer.log
#######################
sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/cache/referer.log'); readline))
####################
di Squid.Conf
referer_log /cache/referer.log



+++++++++++++++++++++++++++++

ayo mas Riophone ....digelar yg utuh itu yg ada tanda dollarnya



dan tambahkan line berikut agar youtube tidak loopback di atas storeurl_access deny dontrewrite yg lainnya

acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite

###################


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 19:29

cah_clacap wrote:selalu keluar pesan kaya gini pas compile

______________

2013/03/25 19:20:20| Rebuilding storage in /cache5 (DIRTY)
2013/03/25 19:20:20| Using Least Load store dir selection
2013/03/25 19:20:20| Set Current Directory to /var/spool/squid/
2013/03/25 19:20:20| Loaded Icons.
2013/03/25 19:20:20| Accepting transparently proxied HTTP connections at 192.168.18.2, port 3128, FD 28.
2013/03/25 19:20:20| Accepting ICP messages at 0.0.0.0, port 3130, FD 29.
2013/03/25 19:20:20| Accepting HTCP messages on port 4827, FD 30.
2013/03/25 19:20:20| Accepting SNMP messages on port 3401, FD 31.
2013/03/25 19:20:20| WCCP Disabled.
2013/03/25 19:20:20| Ready to serve requests.
2013/03/25 19:20:20| WARNING: store_rewriter #1 (FD 6) exited
2013/03/25 19:20:20| WARNING: store_rewriter #2 (FD 8) exited
2013/03/25 19:20:20| WARNING: store_rewriter #3 (FD 9) exited
2013/03/25 19:20:20| WARNING: store_rewriter #4 (FD 10) exited
2013/03/25 19:20:20| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

Aborted (core dumped)
Apa pesan error tersebut muncul pada saat anda menjalan perintah make dan make install ?
Kayaknya bukan terjadi saat ngupil mas, coba anda jalankan tanpa refresh_pattern


User avatar
AbiLL_O2n
Posts: 2
Joined: 25 Mar 2013, 04:09

Post by AbiLL_O2n » 25 Mar 2013, 19:31

@Mas : cah_clacap

gmana bang untuk lusca apakah sudah norman....


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 19:47

[size:17pt]##Resume##[/size]
Namanya juga diskusi, harus ada resume. jiak nggaya :D

[size:17pt]UPIL ULANG | JANGAN INSTALL ULANG[/size]

Sebenarnya tdk perlu sampai install ulang begitu, cukup dengan ngupil ulang (re-compile) sudah bisa. Dan yang banyak menjadi pertanyaan bagi warga FUI, adalah bagaimana cara memasukkkan option --enable-referer-log ?
  • Temukan versi squid anda

Code: Select all

squid -v
Output-nya, jika menggunakan squid-2.7.9 seperti di bawah ini =
[spoiler]Squid Cache: Version 2.7.STABLE9
configure options: '-prefix=/usr' '-exec-prefix=/usr' '-bindir=/usr/sbin' '-sbindir=/usr/sbin' '-libexecdir=/usr/lib/squid' '-sysconfdir=/etc/squid' '-localstatedir=/var/spool/squid' '-datadir=/usr/share/squid' '--enable-gnuregex' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--with-aio' '--with-dl' '--enable-storeio=aufs,null' '--enable-removal-policies=heap' '--enable-icmp' '--enable-delay-pools' '--disable-wccp' '--enable-snmp' '--enable-cache-digests' '--enable-default-err-language=English' '--enable-err-languages=English' '--enable-linux-netfilter' '--disable-ident-lookups' '--with-maxfd=65535' '--enable-follow-x-forwarded-for' '--enable-large-cache-files' '--with-large-files' '--enable-referer-log' 'CFLAGS=-march=amdfam10 -O2 -pipe'[/spoiler]
Untuk lusca, hasilnya kurang lebih sama. Di situ terlihat, kecuali kita mendapatkan informasi tentang versi squid yang kita gunakan yaitu squid-2.7.STABLE9, kita juga mendapatkan informasi bagaimana konfigurasi squid pada saat di compile.
  • Temukan lokasi UPIL yang dulu dilakukan, jika menggunakan squid-2.7.STABLE9 =

Code: Select all

# locate squid-2.7.STABLE9
Cuplikan output-nya seperti di bawah ini =

Code: Select all

/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/cossdump.c
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/squidclient.c
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/cachemgr__CGIEXT_-cachemgr.Po
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/cossdump.Po
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/squidclient.Po
Jadi, lokasi path installasi squid berada di direktori /home/share_2/arsip/squid/squid-2.7.STABLE9. Jika menggunakan lusca =

Code: Select all

# locate locate LUSCA_HEAD-r14809
Dan cuplikan output-nya seperti di bawah ini =

Code: Select all

/home/share_2/arsip/squid/LUSCA_HEAD-r14809
  • Masuk ke direktori tersebut di atas dan install tool pendukungnya, jika menggunakan squid-2.7.STABLE9 =

Code: Select all

# cd /home/share_2/arsip/squid/squid-2.7.STABLE9
# apt-get install libfile-readbackwards-perl -y
Jika menggunakan lusca =

Code: Select all

# cd /home/share_2/arsip/squid/LUSCA_HEAD-r14809
# apt-get install libfile-readbackwards-perl -y
  • Dari lokasi ini, lakukan uninstall squid (lusca) anda dan kompil ulang. Baik squid-2.7.STABLE9 maupun LUSCA_HEAD-r14809 caranya sama.

Code: Select all

# squid -k shutdown
#kalau diperlukan cek dengan baris brikut
#untuk memastikan tidak ada squid ID process yang berjalan
# ps aux | grep squid  
# make uninstall
  • Lakukan konfigurasi dengan bekal output perintah squid -z di atas . Sudah tentu jangan ditelan mentah, lakukan modifikasi sesuai kondisi anda. Dalam contoh di bawah ini yang paling besar kemungkinannya menjadi faktor pembeda adalah CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CXXFLAGS="${CFLAGS}" karena perbedaan arsitektur processor kita. Dan jangan lupa, opsi --enable-referer-log harus ada di dalamnya.

Code: Select all

CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CXXFLAGS="${CFLAGS}" \
./configure -prefix=/usr -exec-prefix=/usr -bindir=/usr/sbin -sbindir=/usr/sbin \
-libexecdir=/usr/lib/squid -sysconfdir=/etc/squid -localstatedir=/var/spool/squid \
-datadir=/usr/share/squid --enable-gnuregex --enable-async-io=24 --with-aufs-threads=24 \
--with-pthreads --with-aio --with-dl --enable-storeio=aufs,null \
--enable-removal-policies=heap --enable-icmp --enable-delay-pools --disable-wccp \
--enable-snmp --enable-cache-digests --enable-default-err-language=English \
--enable-err-languages=English --enable-linux-netfilter --disable-ident-lookups \
--with-maxfd=65535 --enable-follow-x-forwarded-for --enable-large-cache-files \
--with-large-files --enable-referer-log
  • Jika menggunakan squid-2.7.STABLE9, lanjutkan dengan perintah =

Code: Select all

# make
# umask 022
# make install
# make clean
# /etc/init.d/squid stop
# squid -f /etc/squid/squid.conf -z
# /etc/init.d/squid start
# ps aux | grep squid
Jika menggunakan LUSCA_HEAD-r14809 =

Code: Select all

# make
# make install
# /etc/init.d/squid stop
# squid -f /etc/squid/squid.conf -z
# /etc/init.d/squid start
# ps aux | grep squid
That all about recompile :D

[size:17pt]KASUS | DIREKTORI COMPILE TERHAPUS[/size]
Jika anda tidak menemukan direktori tempat anda dulu melakukan NGUPIL, mau-tidak-mau anda harus menghapus path hasil installasi sebelumnya dengan bekal output perintah squid -v di atas. Hapus satu per satu path tersebut. Dan sebelum menghapus direktori tsb, kill semua proses squid dengan perintah squid -k shutdown
Demikian selamat ngoprek

##
Untuk memudahkan warga FUI, postingan ini saya kopas di pejwan juga


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:03

Pragola_Pati wrote:
cah_clacap wrote:selalu keluar pesan kaya gini pas compile

______________

2013/03/25 19:20:20| Rebuilding storage in /cache5 (DIRTY)
2013/03/25 19:20:20| Using Least Load store dir selection
2013/03/25 19:20:20| Set Current Directory to /var/spool/squid/
2013/03/25 19:20:20| Loaded Icons.
2013/03/25 19:20:20| Accepting transparently proxied HTTP connections at 192.168.18.2, port 3128, FD 28.
2013/03/25 19:20:20| Accepting ICP messages at 0.0.0.0, port 3130, FD 29.
2013/03/25 19:20:20| Accepting HTCP messages on port 4827, FD 30.
2013/03/25 19:20:20| Accepting SNMP messages on port 3401, FD 31.
2013/03/25 19:20:20| WCCP Disabled.
2013/03/25 19:20:20| Ready to serve requests.
2013/03/25 19:20:20| WARNING: store_rewriter #1 (FD 6) exited
2013/03/25 19:20:20| WARNING: store_rewriter #2 (FD 8) exited
2013/03/25 19:20:20| WARNING: store_rewriter #3 (FD 9) exited
2013/03/25 19:20:20| WARNING: store_rewriter #4 (FD 10) exited
2013/03/25 19:20:20| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

Aborted (core dumped)
Apa pesan error tersebut muncul pada saat anda menjalan perintah make dan make install ?
Kayaknya bukan terjadi saat ngupil mas, coba anda jalankan tanpa refresh_pattern
+++++++++++++++++++++++++++++++++


itu muncul pas nerapin ...
# sudo /etc/init.d/squid restart
# squid -NDd1
NAh pas # squid -NDd1 itu terjadi error.... mohon dibantu menangani


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:10

AbiLL_O2n wrote:@Mas : cah_clacap

gmana bang untuk lusca apakah sudah norman....
+++++++++++++++++++++++++++++++++++

belum mas Abil ....

MAsalahnya

Pertama : pas # squid -NDd1 pasti error store rewitter
Kedua : kayaknya code yg
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite
+++++++++++++++++ belum betul kayaknya tuh code ... tolong yg benar dishare di sini


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:18

riophone wrote:Untuk lusca coba perhatikan letak referer.log
#######################
sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/cache/referer.log'); readline))
####################
di Squid.Conf
referer_log /cache/referer.log

dan tambahkan line berikut agar youtube tidak loopback di atas storeurl_access deny dontrewrite yg lainnya

acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite

###################

tolong bozz yang ini lengkapnya apa YYYY???

acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 21:32

cah_clacap wrote: acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite
Untuk sementara, acl tsb tdk usah digunakan dulu mas. Insyaallah masih bisa ter-chache
:D


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:41

Pragola_Pati wrote:
cah_clacap wrote: acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&cms_redirect=yes.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&ir=1.*$
acl dontrewrite url_regex -i c\.youtube\.com\/videoplayback.*\&rr=12.*$
storeurl_access deny dontrewrite
Untuk sementara, acl tsb tdk usah digunakan dulu mas. Insyaallah masih bisa ter-chache
:D

Ok bozz saya coba


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:45

@ MAs Pragola :
Storeurl.pl nya pake yg mana bozz???


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:57

error ketika pada store url ditambah ini pada baris terakhir
........

sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/cache1/referer.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*cpn=$CPN[0].*video\_id=([a-zA-Z0-9\-\_]*).*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*video\_id=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $1;
last;
}
}
$ref_log->close();
return $id;
}


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:58

error ketika pada store url ditambah ini pada baris terakhir
........

sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/cache1/referer.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*cpn=$CPN[0].*video\_id=([a-zA-Z0-9\-\_]*).*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*video\_id=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $1;
last;
}
}
$ref_log->close();
return $id;
}

Top


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 21:58

error ketika pada store url ditambah ini pada baris terakhir
........

sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/cache1/referer.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*cpn=$CPN[0].*video\_id=([a-zA-Z0-9\-\_]*).*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/ptracking.*video\_id=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $1;
last;
}
}
$ref_log->close();
return $id;
}

Top


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 22:24

Sebenarnya lebih mudah pake Squid 2.7 atau pakai LUSCA ya teman-teman???


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 22:26

eby54321 wrote:hai for all, thanx to mr ucok & chudy & this forum, store urlnya..youtube ditempat saya dah jalan normal kembali hitnya..
Pake Squid 2.7 atau LUsca gan???


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 22:41

@cah_cilacap
cah_clacap wrote:@ MAs Pragola :
Storeurl.pl nya pake yg mana bozz???
Saya pakai postingan mas Juldian Tan, saya bantu kutip dan rapikan ya.
@Juldian Tan
Sekalian ijin kopas di pejwan u/ memudahkan warga FUI lainnya ya mas ?
[size:17pt]storeurl.pl TESTED ON
LUSCA_HEAD-r14809 & squid-2.7.STABLE9[/size]
[spoiler]

Code: Select all

#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion
# http://www.facebook.com/stressss

$|=1;
while (<>) {
@X = split;
$x = $X[0] . " ";

		#facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)/) {
	print $x . "http://facebook.SQUIDINTERNAL" . $2 . "fb" . $5 . "\n";

		#Speedtest
} elsif (m/^http\:\/\/.*\/speedtest\/(.*)\?.*/) {
	print $x . "http://speedtest.SQUIDINTERNAL/speedtest/" . $1 . "\n";

		#reverbnation
} elsif (m/^http:\/\/[a-z0-9]{4}\.reverbnation\.com\/.*\/([0-9]*).*/) {
	print $x . "http://reverbnation.com.SQUIDINTERNAL/" . "$1" . "\n";

		#BLOGSPOT
} elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
	print $x . "http://blog-cdn." . $1 . "\n";

		#ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
	print $x . "http://cdn.ytimg.com" . $1 . "\n";

		#AVAST
} elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
	print $x . "http://avast-cdn." . $1 . "\n";

		#KAV
} elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
	print $x . "http://kav-cdn." . $1 . "\n";

		#AVG
} elsif (m/^http:\/\/update.avg.com/) {
	print $x . "http://avg-cdn." . $1 . "\n";

		#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
	print $x . "http://" . $1 . $2 . "\n";

		#gstatic and/or wikimapia
} elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
	print $x . "http://" . $1 . $2 . "\n";

		#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
	print $x . "http://" . $1 . $2 . "\n";

		# for ALL Youtube ( range & non range )
		# first you need do this
		# build your squid with "--enable-referer-log"
		# install package dependencies "apt-get install libfile-readbackwards-perl"
		# add this "referer_log /var/log/squid/referer.log" to your squid config

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
	@itag = m/[&?](itag=[0-9]*)/;
	@CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
	@IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
	$id = &GetID($CPN[0], $IDS[0]);
	@range = m/[&?](range=[^\&\s]*)/;
	print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";

		#Google
} 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";

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

		#cdn, varialble 1st path
} elsif (($X[1] =~ /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 (($X[1] =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
	print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

		#maxporn
} elsif (($X[1] =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
	print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

		#domain/path/.*/path/filename
} elsif (($X[1] =~ /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 (($X[1] =~ /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 (($X[1] =~ /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 . $X[1] . "\n";
}
}


sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/var/log/squid/referer.log');
while (defined($line = $ref_log->readline))
	{
	if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
		$id = $1;
		last;
		}
	if ($line =~ m/.*youtube.*\/ptracking.*cpn=$CPN[0].*video\_id=([a-zA-Z0-9\-\_]*).*/){
		$id = $1;
		last;
		}
	if ($line =~ m/.*youtube.*\/ptracking.*video\_id=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
		$id = $1;
		last;
		}
	}
$ref_log->close();
return $id;
}
[/spoiler]


User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Post by cah_clacap » 25 Mar 2013, 22:47

@ mas Pragola :ok bos sya coba besok pagi ....udh nagtux 3 hari blum tidur..


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 23:09

cah_clacap wrote:
eby54321 wrote:hai for all, thanx to mr ucok & chudy & this forum, store urlnya..youtube ditempat saya dah jalan normal kembali hitnya..
Pake Squid 2.7 atau LUsca gan???
kalau maksudnya squid-2.7.STABLE9 dan LUSCA_HEAD-r14809, sama saja. Kalau ditanya masalah preferensi sih, saya lebih suka pakai squid-2.7.STABLE9.


User avatar
Aira
Posts: 70
Joined: 22 Mar 2012, 21:20

Post by Aira » 25 Mar 2013, 23:34

Pragola_Pati wrote:@cah_cilacap
cah_clacap wrote:@ MAs Pragola :
Storeurl.pl nya pake yg mana bozz???
Saya pakai postingan mas Juldian Tan, saya bantu kutip dan rapikan ya.
@Juldian Tan
Sekalian ijin kopas di pejwan u/ memudahkan warga FUI lainnya ya mas ?
[size:17pt]storeurl.pl TESTED ON
LUSCA_HEAD-r14809 & squid-2.7.STABLE9[/size]
[spoiler]

Code: Select all

#!/usr/bin/perl
# $Rev$
# by chudy_fernandez@yahoo.com
# rev by ucok_karnadi@yahoo.com
# Youtube updates at http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube/Discussion
# http://www.facebook.com/stressss

$|=1;
while (<>) {
@X = split;
$x = $X[0] . " ";

		#facebook
if (m/^http\:\/\/.*(profile|photo).*\.ak\.fbcdn\.net(\/h(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)/) {
	print $x . "http://facebook.SQUIDINTERNAL" . $2 . "fb" . $5 . "\n";

		#Speedtest
} elsif (m/^http\:\/\/.*\/speedtest\/(.*)\?.*/) {
	print $x . "http://speedtest.SQUIDINTERNAL/speedtest/" . $1 . "\n";

		#reverbnation
} elsif (m/^http:\/\/[a-z0-9]{4}\.reverbnation\.com\/.*\/([0-9]*).*/) {
	print $x . "http://reverbnation.com.SQUIDINTERNAL/" . "$1" . "\n";

		#BLOGSPOT
} elsif (m/^http:\/\/[1-4].bp.(blogspot.com.*)/) {
	print $x . "http://blog-cdn." . $1 . "\n";

		#ytimg
} elsif (m/^http:\/\/i[1-4]\.ytimg\.com(.*)/) {
	print $x . "http://cdn.ytimg.com" . $1 . "\n";

		#AVAST
} elsif (m/^http:\/\/download[0-9]{3}.(avast.com.*)/) {
	print $x . "http://avast-cdn." . $1 . "\n";

		#KAV
} elsif (m/^http:\/\/dnl-[0-9]{2}.(geo.kaspersky.com.*)/) {
	print $x . "http://kav-cdn." . $1 . "\n";

		#AVG
} elsif (m/^http:\/\/update.avg.com/) {
	print $x . "http://avg-cdn." . $1 . "\n";

		#maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
	print $x . "http://" . $1 . $2 . "\n";

		#gstatic and/or wikimapia
} elsif (m/^http:\/\/([a-z])[0-9]?(\.gstatic\.com.*|\.wikimapia\.org.*)/) {
	print $x . "http://" . $1 . $2 . "\n";

		#maps.google.com
} elsif (m/^http:\/\/(khm|mt)[0-9]?(.google.com.*)/) {
	print $x . "http://" . $1 . $2 . "\n";

		# for ALL Youtube ( range & non range )
		# first you need do this
		# build your squid with "--enable-referer-log"
		# install package dependencies "apt-get install libfile-readbackwards-perl"
		# add this "referer_log /var/log/squid/referer.log" to your squid config

} elsif ($X[1] =~ m/^http\:\/\/.*(youtube|google).*videoplayback.*/){
	@itag = m/[&?](itag=[0-9]*)/;
	@CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
	@IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
	$id = &GetID($CPN[0], $IDS[0]);
	@range = m/[&?](range=[^\&\s]*)/;
	print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";

		#Google
} 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";

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

		#cdn, varialble 1st path
} elsif (($X[1] =~ /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 (($X[1] =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
	print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

		#maxporn
} elsif (($X[1] =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
	print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

		#domain/path/.*/path/filename
} elsif (($X[1] =~ /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 (($X[1] =~ /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 (($X[1] =~ /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 . $X[1] . "\n";
}
}


sub GetID
{
use File::ReadBackwards;
my $ref_log = File::ReadBackwards->new('/var/log/squid/referer.log');
while (defined($line = $ref_log->readline))
	{
	if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
		$id = $1;
		last;
		}
	if ($line =~ m/.*youtube.*\/ptracking.*cpn=$CPN[0].*video\_id=([a-zA-Z0-9\-\_]*).*/){
		$id = $1;
		last;
		}
	if ($line =~ m/.*youtube.*\/ptracking.*video\_id=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
		$id = $1;
		last;
		}
	}
$ref_log->close();
return $id;
}
[/spoiler]
Refresh_patern nya ga sekalian om... :) (Ngarep Dot Com)


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 25 Mar 2013, 23:44

refresh_pattern silahkan pakai yang lama saja, masih jalan kok mas :D


User avatar
eby54321
Posts: 2
Joined: 24 Mar 2013, 05:10
Location: Jakarta, Indonesia
Contact:

Post by eby54321 » 26 Mar 2013, 00:46

lusca FMI gan


User avatar
antoniusgenta
Posts: 103
Joined: 29 Dec 2011, 14:40
Location: jakarta

Post by antoniusgenta » 26 Mar 2013, 02:14

Pragola_Pati wrote:
hidden_net wrote:ada scrensot nya ga mas Pragola_Pati(saya masih lom ngerti)oh ya facebooknya apa biar bisa tanya2 yang lain di facebook
Cari dengan command locate, contoh kasus begini. Misalnya menggunakan squid-2.7.STABLE9 tapi kita lupa = dulu waktu build/compile letaknya di direktori mana ?

Code: Select all

# locate squid-2.7.STABLE9
ouputnya kira2 begini =

Code: Select all

/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/cossdump.c
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/squidclient.c
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/cachemgr__CGIEXT_-cachemgr.Po
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/cossdump.Po
/home/share_2/arsip/squid/squid-2.7.STABLE9/tools/.deps/squidclient.Po
Ketahuan, lokasinya berada di direktori /home/share_2/arsip/squid/squid-2.7.STABLE9. Masuk ke direktori tersebut dan lakukan rebuild/re-compile.
sory mas PATI mau tanya lebih jelas,, kalo udah masuk directorynya, apa kita mesti lakukan compile ulang dari awal atau hanya menjalankan ini saja.

./configure --enable-referer-log

karna sebelumnya sudah dicompile fitur yg ingin kita jalankan pada saat awal installasi, sekiranya kalo ada command yg salah mohon bisa dibantu diperjelas mas.

thx


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 26 Mar 2013, 02:32

Pragola_Pati:
di ijinkan koq
sekalian juga bantu di oprek
dan koreksinya


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 26 Mar 2013, 02:35

cah_clacap

coba di cek dulu confignya
squid.conf
referer_log /var/log/squid/referer.log

harus sama dgn di storeurl
my $ref_log = File::ReadBackwards->new('/var/log/squid/referer.log');


User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Post by q_p » 26 Mar 2013, 02:57

@Juldian
Terima kasih mas, diijinkan :D
Tadi sempat coba2 refresh_pattern.conf punya anda, hasilnya seperti dalam mode off-line. Halaman2 web-FUI, manteng terus tidak mau dirubah meski sudah di-refresh (F5).

@Antonius
Silahkan anda lihat resume hasil diskusi kita, di pajwan.


User avatar
asusrog
Posts: 14
Joined: 16 Mar 2013, 04:14
Location: tangerang

Post by asusrog » 26 Mar 2013, 04:26

http://r3---pttelkom-cgk3.c.youtube.com ... ir=1&rr=12

LAPOORRR GAN YOUTUBE MASI ERROR SETIAP URL http://r3---pttelkom-cgk3.c.youtube.com,,,,,youtube un error ???? ADA solusinya GAN


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 26 Mar 2013, 04:44

Pragola_Pati:
Ok deh nanti saya coba cek lagi refresh patternnya
tq masukannya


User avatar
JuldianTan
Posts: 45
Joined: 25 Mar 2013, 04:07
Location: Palembang, Indonesia
Contact:

Post by JuldianTan » 26 Mar 2013, 04:48

Pragola_Pati:

Jabarkan saja sekalian confignya


Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests