Page 1 of 1

caching youtube

Posted: Sun Mar 23, 2008 4:33 pm
by befire
Hello everybody,
i get these 2 rules to cache youtube from an old posts but i can't let them work with MT 3.6 webproxy. can anyone put the right syntax for MT3.6 webproxy?

2 rules : [admin@MikroTik] ip web-proxy cache> add url=":\\.flv$" action=allow
[admin@MikroTik] ip web-proxy cache> add url="http*youtube*get_video*" action=allow comment="youtube" disabled=no

best regards

Re: caching youtube

Posted: Wed Jun 04, 2008 10:42 am
by trx
isn't it cached by default?

why one should use explicit cache rule?

Re: caching youtube

Posted: Wed Jun 04, 2008 10:44 am
by normis
I believe those rules were used to block youtube. for caching you don't need special rules. what can be cached - is cached by default.

Re: caching youtube

Posted: Mon Jun 16, 2008 1:44 pm
by tplecko
how about blocking youtube video only (not the whole site)?
let's say, only watching the flash video would be prohibited

Re: caching youtube

Posted: Mon Jun 16, 2008 3:16 pm
by normis
there is no way to know if it's flash video, or flash-other. you will just block all flash.

Re: caching youtube

Posted: Mon Jun 16, 2008 10:50 pm
by tplecko
i managed to block most of the ads and youtube-type sites are next on the list.
if i use host and path?
so that denying flash happens only on youtube?

Re: caching youtube

Posted: Tue Jun 17, 2008 10:11 am
by normis
you want to block youtube altogether, or just stop it from being cached? if you will block youtube videos, there is no use for the site itself, so you might as well just block all youtube domains.

Re: caching youtube

Posted: Tue Jun 17, 2008 10:40 am
by tplecko
You do have a point here. But i have a strange boss. (lucky me i only work here till the end of the month so i can dedicate my self to my own company)

He thinks that if the video part is denyed but the site still opens, noone will figure out that something is being blocked :shock: :shock:

Re: caching youtube

Posted: Tue Jun 17, 2008 10:49 am
by normis
you could use host "youtube.com" and path "/swf/watch.swf" for blocking. I don't know if it works, but that is the SWF file that loads the videos.

Re: caching youtube

Posted: Tue Jun 17, 2008 11:13 am
by tplecko
swf is the object that loads the video but it is done inside java script.

I don't see how i could block this. The only way is to block path /watch* but then the whole page doesn't load.
It's a stupid request and it is requests like this why i quit.
Block a page but it must look like it is very slow and when anybody asks him why is something blocked, his only response is: Tomislav did it on his own hand. And then everybody gives me the evil eye.

I'll try to do my best to solve the problem since i see possible usage. Blocking youtube and such videos embeded in other sites like blogs...

Re: caching youtube

Posted: Tue Jun 17, 2008 12:05 pm
by pjulian
Why don't you identify the traffic by content and use a mangle rule to mark it, then limit the speed of that flow using a queue ?

That might work, won't stop it but will make it impossible to watch the videos and possible to see text if you work it right.

Regards
Paul

Re: caching youtube

Posted: Tue Jun 17, 2008 12:22 pm
by tplecko
Thanks.

I'll reply here if i ever find a way to do this elegantly...