PDA

View Full Version : how i can limit download per ip



dr_tmh
03-15-2009, 07:19 PM
hello
how i can limit download per ip , that every ip can not download more than 1 file at the same time and wait till first file download complete then download another
is there any php file or php.ini code can do these ??

djmatt
03-29-2009, 06:40 PM
Without being expert in that, I might:
1. create a database of current users
2. use php to get the ip address when they want to download
3. add the ip to the Mysql database
4. let them download.
5. delete the ip from the database

If another user from the same ip comes along and requests a download, compare to the current users database and deny the download.