Community discussions

MikroTik App
 
befire
Member Candidate
Member Candidate
Topic Author
Posts: 158
Joined: Sat Jan 28, 2006 1:32 pm

caching youtube

Sun Mar 23, 2008 4:33 pm

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
 
trx
just joined
Posts: 20
Joined: Thu Mar 08, 2007 6:53 pm

Re: caching youtube

Wed Jun 04, 2008 10:42 am

isn't it cached by default?

why one should use explicit cache rule?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: caching youtube

Wed Jun 04, 2008 10:44 am

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.
 
User avatar
tplecko
Member Candidate
Member Candidate
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: caching youtube

Mon Jun 16, 2008 1:44 pm

how about blocking youtube video only (not the whole site)?
let's say, only watching the flash video would be prohibited
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: caching youtube

Mon Jun 16, 2008 3:16 pm

there is no way to know if it's flash video, or flash-other. you will just block all flash.
 
User avatar
tplecko
Member Candidate
Member Candidate
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: caching youtube

Mon Jun 16, 2008 10:50 pm

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?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: caching youtube

Tue Jun 17, 2008 10:11 am

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.
 
User avatar
tplecko
Member Candidate
Member Candidate
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: caching youtube

Tue Jun 17, 2008 10:40 am

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:
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: caching youtube

Tue Jun 17, 2008 10:49 am

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.
 
User avatar
tplecko
Member Candidate
Member Candidate
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: caching youtube

Tue Jun 17, 2008 11:13 am

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...
 
pjulian
Member Candidate
Member Candidate
Posts: 267
Joined: Mon May 31, 2004 12:16 pm
Location: Sydney, Australia

Re: caching youtube

Tue Jun 17, 2008 12:05 pm

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
 
User avatar
tplecko
Member Candidate
Member Candidate
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: caching youtube

Tue Jun 17, 2008 12:22 pm

Thanks.

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

Who is online

Users browsing this forum: dioeyandika, McSee and 14 guests