[mod_python] Download authorisation

Wouter van Marle wouter at squirrel-systems.com
Thu Jun 23 04:17:03 EDT 2005

On Thu, 2005-06-23 at 02:17 -0400, jarrod roberson wrote:

> if you don't store that they downloaded parts and total them up how
> are you going to stop them
> from downloading the file over and over, one part at a time? Since the
> parts can be arbitrary lenghts
> this is an EASY way to game the system.

I think that's simple to prevent.
If later a user requests a partial download, with the upper limit being
the end of the file, then if that download has succeeded the download is
considered complete. If the user tries to grab parts, they can get all
parts except for the last byte. As soon as that byte is sent, the
download is registered as finished. Regarding partial downloads, I don't
plan on supporting anything more than a resume - not parts. So if a user
requests resume from byte x, they're going to get everything from byte x
straight to the end.
In case a user wants to download a file and later share it with their
friends, I can think of easier ways to do that than download except for
the last bit.

And if a user wants to download it twice, that's also fine: I even
intend to keep records of all sales, and on request allow a user to
re-download a file if necessary.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050623/d55f4cf4/attachment.html

More information about the Mod_python mailing list