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 ==>
the yoursite.com/downloads/movies/ 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!
allow only 2 connections per ip
1 reply to this topic
Posted 20 October 2006 - 12:18 PM
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.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users