December 18, 2017, 02:59:14 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Allow downloading upto a max fileize ?  (Read 1883 times)

Offline shekhar_naik

  • Linux Noob !
  • *
  • Posts: 4
Allow downloading upto a max fileize ?
« on: June 12, 2006, 01:44:55 PM »
Hi
I am using RHL 9 with Squid Cache: Version 2.5.STABLE12 on 1 MBPS Broadband link. I have already applied ACLs to block downloading of zip, exe, mp3, etc. file types.

Now a need arises that .zip files should be allowed to download but with restriction of say max of 1 mb at a time.

Also is it possible to restrict a user to download a specific mbs throuhgout a day after which downloading should not be allowed for that user on that day?

Is it possible to do so using squid?

Please help me..

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Allow downloading upto a max fileize ?
« Reply #1 on: June 12, 2006, 07:46:41 PM »
To restrict downloading to particular limit you have to change the below parameter in squid.conf file

reply_body_max_size

Buy default its 0 means unlimited downloading , u can limit that to any size u  want

Gaurav

Offline shekhar_naik

  • Linux Noob !
  • *
  • Posts: 4
Thanks
« Reply #2 on: June 13, 2006, 07:48:15 AM »
Thanks Gaurav for your prompt reply.

Please help me on the remaining part also - is it possible to restrict a user to download a specific mbs throuhgout a day after which downloading should not be allowed for that user on that day?

Shekhar