Forum Moderators: coopster

Message Too Old, No Replies

how to limit downloads per user per session?

mp3 downloads are limited to 1 download per user per session

         

rocraida

6:43 pm on Aug 26, 2003 (gmt 0)



hello,
i'm looking for a php script which can checks the downloads and only allows 1 per user at a time per host,
in order to prevent the same visitor downloading all mp3 files at the same time, so that the downloads are limited to 1 download per user per session.
i'm not a php developer, so any help will be highly appreciatred as people with download accelerators and lack of respect are actually defacing my site.

thanks in advance

jonknee

11:22 pm on Aug 27, 2003 (gmt 0)

10+ Year Member



Make all the download scripts actually get handled by PHP. Check for a session, if there is none, stream the file to the user (make sure to send the right header()). If there is a session, just throw a "sorry only one a day fella" message.