- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Disabling download on Squid
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 08:13 PM
тАО06-17-2003 08:13 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 08:32 PM
тАО06-17-2003 08:32 PM
Re: Disabling download on Squid
Using access lists however you can deny users the ability given types of files (i.e. *.exe, *.zip etc. etc.).
Have a look through the squid configuration guide, in particular, the area regarding Access Lists, and the keywords 'url_regex' or 'urlpath_regex'.
http://www.squid-cache.org/ is your friend *nod* :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 08:54 PM
тАО06-17-2003 08:54 PM
SolutionYou can completely disable FTP downloads , put these files in squid.conf
acl FTP protocol FTP
http_access deny FTP
But still users will able to download files thru HTTP protocol which is given as a option in major download sites to support multiple channel downloads and resumable downloads using tools like Download Accelerator Plus.
In this case you have to use regex filtering capabilities of squid , of which configuration is awkward and needs thorough understanding of rules.
Edit squid.conf
acl exe-filter urlpath_regex -i \.exe$
http_access deny exe-filter
acl zipfiles-filter urlpath_regex -i \.zip$
http_access deny zipfiles-filter
acl msi-filter urlpath_regex -i \.msi$
http_access deny msi-filter
acl mp3-filter urlpath_regex -i \.mp3$
http_access deny mp3-filter
acl gz-filter urlpath_regex -i \.gz$
http_access deny gz-filter
acl tar-filter urlpath_regex -i \.tar$
http_access deny tar-filter
acl mpeg-filter urlpath_regex -i \.mpeg$
http_access deny mpeg-filter
Best way is to use Dansguardian open source content filtering software which will ofcourse perform blocking files operation.
http://www.dansguardian.org
edit the /etc/dansguardian/bannedextensionlist
edit the /etc/dansguardian/bannedmimetypelist
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 09:02 PM
тАО06-17-2003 09:02 PM
Re: Disabling download on Squid
browsing / downloading are one and the same as long as html files are concerned. so if u want to block downloading html files, u are actually blocking browsing.
but if you know specifically the files you want to block, like *.mp3, *.exe etc, then u can block them by specifiying an ACL.
acl EXE urlpath_regex \.[eE][xX][eE]
http_access deny EXE
and u can have different ACL's for allowing / disallowing based on authentication.
hth
-balaji (google is my friend. is it urs?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 10:27 PM
тАО06-17-2003 10:27 PM
Re: Disabling download on Squid
Thanks for the info. based your replies I cannot do a filtering of clients. Once I put out a rule it will be in general.
Maybe I can put another proxy server that will cater for pc's that needs to have download enabled.