Forum Moderators: coopster

Message Too Old, No Replies

real audio download limiter

maximum files dwnld per IP/session, how to?

         

tito

11:34 am on Feb 5, 2004 (gmt 0)

10+ Year Member



hello,

i'm running a site with .ra and .ram files, when some visitor download or stream all these files at the same time it causes an huge bandwidth consumption.

so i'd like to limit the download per each IP to a certain number of .ra and .ram files at time.

i wonder if i can use some php script with cookies session but i'm new to this and i don't know where to start.

any suggestion? thanks in advance.

tito

jatar_k

6:48 pm on Feb 5, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What about something like mod_throttle?

mod_throttle [webmasterworld.com]
can mod_throttle be used to slow down by filetype? [webmasterworld.com]

I guess you could also have a serving script that checks when or if the file has been accessed and then deny or accept. You would have to store the access data somewhere though.

tito

7:18 pm on Feb 5, 2004 (gmt 0)

10+ Year Member



mod_throttle is not a solution as i just want to limit the number of downloads on each visitor (e.g. each visitor is allowed to downolad nr. 2 .ra files at a time -on each visit/per session) and not to limit the general bandwidth consumption.
i believe that something with cookies/session could be more useful but don't know where to start.