Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default Anyone know how to limit a amount of connections per i.p.?

    I need to limit a server to only letting 4 concurrent connections per i.p. at once.

    Thank you very much for any help on this.

    -Charles

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Hi Charles,

    To any service in particular, or just to the server as a whole?
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    I would be for apache or port 80. It's for his website so something in htaccess would be ideal.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I don't believe that you can do it in standard apache. However, you can do it using mod_throttle I believe by using its ThrottlePolicy directive within a VirtualHost container in httpd.conf like this:
    Code:
    <IfModule mod_throttle.c>
     ThrottlePolicy Request 4 1
    </IfModule>
    A Request here is an IP address and we're limited 4 connections per 1 second:
    http://www.snert.com/Software/mod_throttle/
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    Quote Originally Posted by chirpy
    I don't believe that you can do it in standard apache. However, you can do it using mod_throttle I believe by using its ThrottlePolicy directive within a VirtualHost container in httpd.conf like this:
    Code:
    <IfModule mod_throttle.c>
     ThrottlePolicy Request 4 1
    </IfModule>
    A Request here is an IP address and we're limited 4 connections per 1 second:
    http://www.snert.com/Software/mod_throttle/
    Thanks Chirpy but I am a big fan of that mod. I will just have to make due.

    Thanks again.

Similar Threads & Tags
Similar threads

  1. Concurrent Connections Limit
    By scegg in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 01-24-2011, 02:24 PM
  2. how to limit connections per IP
    By Batmunkh in forum New User Questions
    Replies: 4
    Last Post: 06-27-2009, 04:26 AM
  3. Is it possible to limit the amount of bandwidth per a day?
    By HostPenguin in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-10-2008, 07:02 PM
  4. Limit connections per ip
    By surfweb in forum New User Questions
    Replies: 9
    Last Post: 03-01-2008, 10:40 AM
  5. How to setup and limit the amount of addon domains in WHM ?
    By yveslebeau in forum New User Questions
    Replies: 2
    Last Post: 06-18-2007, 09:56 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube