Jump to content


Photo

allow only 2 connections per ip


  • Please log in to reply
1 reply to this topic

#1 jl9148

jl9148
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 20 October 2006 - 02:46 AM

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 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!

#2 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

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.

me!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users