How to limit Downloads?

Discussion in 'Site & Server Administration' started by Pathan, Jun 28, 2007.

  1. #1
    hi,
    I want to know is there any way to limit downloads per IP ? if yes can u plz explain how to do it, lets say I want to set tht per IP only 500 mb can be downloaded, so how to do it?

    Looking for positive replies

    Regards.
     
    Pathan, Jun 28, 2007 IP
  2. grandy

    grandy Banned

    Messages:
    239
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is a apache module called mod_bandwidth, with it you can limit the bandwidth per minute. And you can limit the connections per IP (Connections and download would be the same for a specific file).

    This how to should help you: (They have done it with mod_limitipconn)
    http://www.webhostingtalk.com/showthread.php?t=352388

    Good Luck.
     
    grandy, Jun 28, 2007 IP
  3. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Thanks a lot for replying :)

    Well I m on shared hosting, I mean don't have SSH access, is there any other way of doing ? I mean with the help of some script which doesn't require SSH.

    Waiting for replies
    - Pathan
     
    Pathan, Jun 28, 2007 IP
  4. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can do this with PHP but it's a bit cumbersome (you'll have to pass the file through PHP and count the bytes etc).

    Ask your host if they can install mod_bandwidth with Apache, they should be able to do it fairly easily.
     
    CodyRo, Jun 28, 2007 IP