Evgenii Yurkin <[EMAIL PROTECTED]> writes: > 11 Jan 2002, Konstantin Matyukhin wrote: > > > Evgenii Yurkin <[EMAIL PROTECTED]> writes: > > > > > День добрый! > > > Подскажите люди добрые, или киньте линк что б можно было прочитать > > > как можно наложить ограничение на размер принимаемых файлов в маскараде > > > (что бы нельзя было скачивать файлы больше определенного размера) > > > kernel 2.2.19 - 2.2.20 > > > можно ли это сделать через squid, или для этого какая то тулза есть? > > > прочитал squid FAQ & HOWTO, но там про это ничего не нашел > > Маскарад тут, однозначно, ни при чем. Остается squid. См. параметр > > reply_body_max_size. > > Параметр конечно интересный тока он не встречается ни faq ни в squid.conf > ни тем более в man > Если не сложно подскажи где об этом почитать.. > Евгений Юркин В стандартном squid.conf есть такие строки:
# TAG: reply_body_max_size (KB) # This option specifies the maximum size of a reply body. It # can be used to prevent users from downloading very large files, # such as MP3's and movies. The reply size is checked twice. # First when we get the reply headers, we check the # content-length value. If the content length value exists and # is larger than this parameter, the request is denied and the # user receives an error message that says "the request or reply # is too large." If there is no content-length, and the reply # size exceeds this limit, the client's connection is just closed # and they will receive a partial reply. # # NOTE: downstream caches probably can not detect a partial reply # if there is no content-length header, so they will cache # partial responses and give them out as hits. You should NOT # use this option if you have downstream caches. # # If you set this parameter to zero (the default), there will be # no limit imposed. #reply_body_max_size 0 -- С уважением, Константин Матюхин "Компьютер никогда не заменит человека". Людоед