phew
phew

Reputation: 147

minimum photo size allowed to upload?

I read some experts/masters advices on the net says that: Set a minimum file size(photo) to upload, if it is too small, it can cause a DDOS. But they don't mentioned there what atleast is the minimum file size allowed. So that's my question. Whats is your answer? Thanks!

Upvotes: 1

Views: 75

Answers (1)

omghai_8782
omghai_8782

Reputation: 468

Many sites still use transparent 1-pixel GIFs to track data. I'm looking at one now that is literally 17 bytes in length. So really, there is no real answer to this question, other than "What you think is best".

Ask yourself what the minimum size WxH photo you'll allow is, then render yourself a pure white low quality JPG with those dimensions and look at the file size. This wouldn't be very useful, however, as people can still saturate your network connection by uploading very large uploads, or tapping away at any other part of your website with a botnet to achieve an attack anyway. Plus, you're likely to misjudge the minimum file size and end up blocking legitimate users with a false positive sooner or later.

Upvotes: 1

Related Questions