Hi, pankajkarde.
Quote:
now i want to apply restrictions over the download from internet.
|
carl0ski already answered you what you asked. Have another example just to loose my time
:
ACL's in squid.conf
acl blockedtypereq req_mime_type -i ^application/x-msmetafile$
acl blockedtypereq req_mime_type -i application/x-msmetafile
acl blockedtyperep rep_mime_type -i ^application/x-msmetafile$
acl blockedtyperep rep_mime_type -i application/x-msmetafile
acl denyext url_regex -i \.asx$ \.avi$ \.iso$ \.mp3$ \.mpeg$ \.mpg$ \.qt$ \.ram$ \.rm$ \.wav$ \.wma$ \.wmf$ \.wmv$
In ACL chain, above others in squid.conf:
http_access deny blockedtyperep all
http_access deny blockedtypereq all
http_access deny denyext
And you have the second option, my favourite: adding a content filter like Dansguardian and just editing /etc/dansguardian/bannedextensionslist file.
Cheers.
EDIT: You posted twice!. Read the rules.