Jump to content

Archived

This topic is now archived and is closed to further replies.

jl9148

allow only 2 connections per ip

Recommended Posts

hello. i was wondering how i would prevent my users from downloading more than 2 files at a time in a single directory.

for example ==>
yoursite.com/downloads/movies/index?file=blah.avi
the [b]yoursite.com/downloads/movies/[/b] would be the directory i would want to be prevented from downloading more than 2 files.

is there a way to do this with an .htaccess file? or a simple php script?
anyways, thanks for your help!

Share this post


Link to post
Share on other sites
Unless your serving the files directly through PHP using header(), readfile() or other functions related to serving files from a non web accessible directory, you can't limit access through PHP. If you need to do this then use the server, because it is designed for doing things like this.

me!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.