<div dir="auto">Hi Alex,<div dir="auto"><br></div><div dir="auto">Thanks for your response. Is there any way by which I can enforce these limits on other protocols as https ?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 25, 2021, 23:33 Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2/24/21 11:51 PM, Raj Nagar wrote:<br>
<br>
> I am using squid as forward proxy and want to restrict upload of files<br>
> larger than 1 MB. I have used following configuration for<br>
> same: *request_body_max_size 1 MB*.<br>
> But this is not working for me and I am able to upload larger files.<br>
> Can someone please help for same. Thanks in advance<br>
<br>
Does your Squid have access to the HTTP request information? For<br>
example, if it is an HTTPS request, and you are not bumping the<br>
corresponding TLS connection, then Squid would not be working at HTTP<br>
level and, hence, would not be able to limit individual HTTP request sizes.<br>
<br>
The corresponding access.log record may tell us more about the<br>
problematic transaction.<br>
<br>
<br>
HTH,<br>
<br>
Alex.<br>
</blockquote></div>