jl9148 Posted October 20, 2006 Share Posted October 20, 2006 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.avithe [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! Quote Link to comment Share on other sites More sharing options...
printf Posted October 20, 2006 Share Posted October 20, 2006 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.