Jump to content

allow only 2 connections per ip


jl9148

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!
Link to comment
https://forums.phpfreaks.com/topic/24510-allow-only-2-connections-per-ip/
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!

Archived

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

×
×
  • Create New...

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.