The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

limit requests per virtual host

Discussion in 'General Discussion' started by dchepishev, Jan 18, 2006.

  1. dchepishev

    dchepishev Well-Known Member
    PartnerNOC

    Joined:
    Oct 19, 2005
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Hi,
    I have cPanel server P4 3G with 2G RAM
    PHP installed as CGI

    2-3 users are generating lots of load some times over 3.
    Is there any way to limit their paralel connection limit or requests per second.
    I saw that mod_throttle should do the job, but is it the most suidable for the job or there is something more good?

    And one other problem slightly related to the one above.
    How can i protect my server from users which start a program which downloads entire site. This really kills the server if someone is downloading a dynamic site.

    Thanks for the help
     
  2. tuxdesk

    tuxdesk Well-Known Member

    Joined:
    Oct 1, 2005
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    Almost you can solve this type of issues by tweaking httpd.conf
     
  3. dchepishev

    dchepishev Well-Known Member
    PartnerNOC

    Joined:
    Oct 19, 2005
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Can you give me any direction which parameters to look at ??
     
  4. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    Installing mod_security and adding the user-agents should stop this, http://www.gotroot.com/downloads/ftp/mod_security/useragents.conf should be enough to prevent most of it.
     
  5. dchepishev

    dchepishev Well-Known Member
    PartnerNOC

    Joined:
    Oct 19, 2005
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    I dont think that this will hepl if the User Agent string is forged exactly as it has to be. But I think still a pretty good solution. Will give it a try.

    But I guess it wont help me if the user agents are valid but lots of users are accessing one specific site. How can i limit this ?
     
  6. ncconquer

    ncconquer Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    i have same problem, please tell me how to when you are ready fix.
    thanks
     
  7. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    #7 anup123, Jan 19, 2006
    Last edited: Jan 19, 2006
Loading...

Share This Page