MP3 Block

Protecting your Linux box
Post Reply
janali
Naik
Posts: 58
Joined: Tue Jul 17, 2007 1:34 pm

MP3 Block

Post by janali »

I want to block the MP3 extension by squid is it possible and how? I block but only url block not extension.
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

use url path regex acl for that. if its not working for you then block it via its mime type
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
janali
Naik
Posts: 58
Joined: Tue Jul 17, 2007 1:34 pm

Post by janali »

kindly tell me in detail. Thanks
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

Code: Select all

acl block2 urlpath_regex "/etc/squid/block.acl"
deny_info ERR_BLOCKED_FILES block2
block.acl

Code: Select all

\.[Ee][Xx][Ee]$
\.[Aa][Vv][Ii]$
\.[Mm][Pp][Gg]$
\.[Mm][Pp][Ee][Gg]$
\.[Mm][Pp]3$
\.[Cc][Aa][B]b$    
\.[Ff][Ll][Vv]$ 
\.mpeg$ 
\.wmv$  
\.mov$ 
\.avi$ 
\.cab\?.*$  
\.mpg\?.*$ 
\.mpeg\?.*$ 
\.wmv\?.*$  
\.mov\?.*$ 
\.flv\?.*
Add all your extentions you want to block in this file
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Post by nomankhn »

:lol:

usman bahi alif baa pori batya karo.

Regards,
Noman Liaquat
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

then what about abc??
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Post by nomankhn »

nahi bahi abc nahi, loog angraz nahi hain. kuch ko to pata hi nahi poochna kia ha,.

Regards,
Noman Liaquat :lol:
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

Didn't get your point!
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
Post Reply