Protecting your Linux box
-
janali
- Naik
- Posts: 58
- Joined: Tue Jul 17, 2007 1:34 pm
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
-
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
-
nomankhn
- Colonel
- Posts: 714
- Joined: Wed Aug 07, 2002 8:00 pm
Post
by nomankhn »
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??
-
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
-
x2oxen
- Major General
- Posts: 1114
- Joined: Wed Aug 22, 2007 3:17 pm
- Location: Faisalabad
-
Contact:
Post
by x2oxen »
Didn't get your point!