MP3 Block

Protecting your Linux box

MP3 Block

Postby janali » Mon Jun 02, 2008 12:20 pm

I want to block the MP3 extension by squid is it possible and how? I block but only url block not extension.
janali
Naik
 
Posts: 58
Joined: Tue Jul 17, 2007 1:34 pm

Postby x2oxen » Mon Jun 02, 2008 3:48 pm

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
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby janali » Mon Jun 02, 2008 4:57 pm

kindly tell me in detail. Thanks
janali
Naik
 
Posts: 58
Joined: Tue Jul 17, 2007 1:34 pm

Postby x2oxen » Tue Jun 03, 2008 11:00 am

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
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby nomankhn » Thu Jun 05, 2008 11:36 am

:lol:

usman bahi alif baa pori batya karo.

Regards,
Noman Liaquat
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Postby x2oxen » Thu Jun 05, 2008 11:45 am

then what about abc??
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby nomankhn » Sun Jun 08, 2008 9:51 am

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

Regards,
Noman Liaquat :lol:
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Postby x2oxen » Mon Jun 09, 2008 10:13 am

Didn't get your point!
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad


Return to “%s” Security

Who is online

Users browsing this forum: No registered users and 2 guests

cron