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.

how to limit connections per IP

Discussion in 'General Discussion' started by Batmunkh, Oct 10, 2008.

  1. Batmunkh

    Batmunkh Member

    Joined:
    Jul 19, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Help me to solve my problem.

    how to limit connection per IP.

    Ex: 3 connections per IP. so if users download file using any download accelerator they can use only 3 simulations maximum.
     
  2. peacemaker

    peacemaker Member

    Joined:
    Nov 29, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
  3. mohammad

    mohammad Registered

    Joined:
    Jun 24, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello Sir
    i Read Readme File And I install it on Apache 2
    but i it not work

    can you said full install guide ..
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Your example of '3' connections is a bit limiting as opening any given
    web page, most browsers will pull 12 to 15 connections even without
    using any kind of accelerators or optimized enhancements just simply
    getting the graphics and supporting files for the page.

    This given though, there is a very nice module for Apache available
    that will briefly block visitors who make too many requests in a
    given amount of time (fully customizable) and reset the blocking
    clock if they make any additional requests while being blocked which
    is extremely useful against flood attacks.

    The module is called mod_evasive from Nuclear Elephant

    You can see the author's page and download mod_evasive here
     
  5. logicsupport

    logicsupport Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Mod limitipconn

    You can use the limitipconn apache module to limit the number of simultaneous downloads permitted from a single IP address

    You can try the following steps to configure this module ( for Apache 2.X )

    1) Download and untar the latest version of mod_limitipconn.tar.gz

    2) compile and install the module using apxs as follows

    /usr/local/apache/bin/apxs -cia mod_limitipconn.c

    Add following line to /usr/local/apache/conf/httpd.conf , inside the virtual host of your domain

    <IfModule mod_limitipconn.c>
    <Location />

    MaxConnPerIP 3

    </Location>
    </IfModule>

    then restart apache

    Hope this helps
     
Loading...

Share This Page