Results 1 to 3 of 3
  1. #1

    Limit apache (thread) connections per request?

    I've been having trouble the past few days with someone who's been "attacking" my site so to speak by continuously downloading very large files with as many connections as (he) can open. I operate a large downloads site for computer games, this person has selected the largest files (like 400-500MB). Not sure of the real intent other than to clog up my bandwidth capacity. Also he appears to be using proxies since as soon as I ban one, another shows up seeminly from China.

    Anyway, I have mod_bw and I've limited the number of connections in the downloads area to 2. While that works ok, his tool uses threads like a download manager would and he's using up 30-40 child threads for his 2 file downloads.

    So 2 questions,

    Is there anyway to not only limit file downloads to 2, but limit the number of connections per request? Many of my visitors do use download managers and I'd like for them to continue using them but use a reasonable number of threads like 6 or 8, but not 30.

    Also, is there a way to restrict access to someone using a proxy?

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Using MaxKeepAliveRequests directive in apache conf you can limits the number of requests allowed per connection when KeepAlive is on.

    For example : MaxKeepAliveRequests 5

    If it is set to "0", unlimited requests will be allowed.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Thank you for the info, I'll try that out right away.

    Do you know of a way to deny requests from someone coming in through a proxy? I'm assuming that's what is happening, I'm by no means any kind of Linux or networking guy. However I really don't think there's a slew of people in mainland China trying to attack my system, especially not new ones coming back on within minutes of others being blocked (the IP).

    Thanks for the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •