Search squid archive

Re: how to use req_mime_type tag to restrict File Upload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



is this correct?
http://www.squid-cache.org/mail-archive/squid-users/200508/0503.html

i tried this way but its also not working
even squid fail to restart properly..

-----------------------------------------------------
acl my_net src 10.0.0.1/255.255.255.0
acl USERA src 10.0.0.1/255.255.255.255
acl UPLIMIT req_header Content-Length [5-9][0-9]{5,}
acl UPMETH method post
http_access deny USERA UPMETH UPLIMIT
http_access allow my_net
http_access deny_all
---------------------------------------------------


On 8/18/06, Henrik Nordstrom <henrik@xxxxxxxxxxxxxxxxxxx> wrote:
On Fri, 2006-08-18 at 17:08 +0530, updatemyself . wrote:
> Hi all,
>
> how to use req_mime_type tag to restrict File Upload


Using what method?

POST or PUT?


req_mime_type should work reasonably well for PUT, but won't work at all
for forms based upload using POST. This is due how HTTP is being used in
the two forms of upload.

But even for PUT it won't be very reliable. req_mime_type matches what
the client claims the file type is. This may differ both from what the
actual file type is and from what the web server will consider that the
file type is.. Most servers completely ignore the mime type of PUT
requests, just storing the file as-is.

Regards
Henrik



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux