Blocking Specific File Types

All I want is to block users from downloading music files. I am able to block web sites through web proxy access lists but not able to block files. I am using MT 3.15.

Here is my web proxy info
enabled: yes src-address: 0.0.0.0 port: 8080 parent-proxy: 0.0.0.0 parent-proxy-port: 0 cache-administrator: “webmaster” max-cache-size: unlimited cache-on-disk: no max-client-connections: 600 max-server-connections: 600 max-fresh-time: 3d serialize-connections: no always-from-cache: no cache-hit-dscp: 4 cache-drive: usb2


Here are my firewall NAT rules.
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; By Default
chain=srcnat action=masquerade out-interface=ether2

1 ;;; Transparent Proxy
chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-port=80


[admin@MikroTik] /ip firewall filter> print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; P2P
chain=forward action=drop p2p=all-p2p


2 ;;; Block Open Proxy
chain=input action=drop protocol=tcp src-address=0.0.0.0/0
in-interface=ether2 dst-port=8080
[admin@MikroTik] /ip firewall filter>


Can any body help me blocking specific file types like FLV, MPEG,MP3 etc?

My only idea for this is using additional (local) proxy with squid.

I am able to block files using this syntax but it does not work always.

:.mp3$

It works with some web sites and it does not work on some other web sites.

What should I do? I cannot block each individual web site.

http://l7-filter.sourceforge.net/protocols maybe?

I think This will help u out…
http://wiki.mikrotik.com/wiki/How_to_Block_Websites_%26_Stop_Downloading_Using_Proxy

Configure src-address= Customer IP Address…

/ip proxy access
path=.exe action=deny
path=
.mp3 action=deny


The above rule is not blocking MP3 files from mp3.com . Any other alternative?

maybe it’s because there’s no ‘.mp3’ in URL? filename is contained in http-response

So how Mikrotik can block this type of downloading?

L7 filter =)

The Example is Proven…It is Working and i have configured it at some places

Point is that when we click on download button on the mentioned site, there is no xyz.mp3 in the url so this rule cannot block it. It will need L7 rules which i am learning now.