title: How to Limit Connections for user
body: <p>I am making a download script which will be used to download files from some sites they don't have access to. I also have to provide resume support but as IDM and many new download managers use 8-16 connection or even more. I found most of the users are using 20-25 conections for each file. I have to provide unlimited file downloads and speed also but limit connections for every file. I can slow down the load and the users don't have a problem with that.</p>
  
  <p>I am confused how to do it. Can it done using htaceess? Also I thought I could do it by making some continuous log but I am still confused. </p>