Using Squid to block downloads
Can someone tell me how I can use squid to block downloads by certain file types and/or by download size.
I want to block people from downloading files of certain type e.g .mp3 and also files of sizes above 30MB. |
To block from downloading you will have to mention the extension name in the given format
create a file in the given location Code:
#cd /etc/squid now open the configuration file Code:
#vi /etc/squid/squid.conf in the squid.conf lookout for Code:
#Default: Code:
reply_body_max_size 30MB |
@deep27ak
You've made an error in your regex. You need backslashes "\" and not "/". So this Quote:
Code:
#vi block-page.acl @OP Do as deep27ak says with the small correction of the regex above Regards |
oops m extremely sorry
I guess I was somewhere else while replying Code:
\.[Ee][Xx][Ee]$ |
O.k I've already tried this one but apparently whilst it prohibits downloads from the web browsers my understanding is that this won't stop downloading using the save target as and also the download managers. I am yet to test the save target as... or the download manager will update you when I have.
Oh by the way using the -i option better than the [Ee][Xx][Ee] option. |
Well I personally checked them in my firefox and it was working well and good
Which browser are you using and is it working with the browser default downloads?? |
All times are GMT -5. The time now is 12:22 PM. |