mod_ratelimit / V4.2.9

Discussion in 'Apache Migration/Compatibility' started by wemanageit, May 11, 2014.

  1. wemanageit

    wemanageit New Member

    Since I am new to litespeed with a new box... I am looking to determine if the following can be done with litespeed v4.2.9

    This throttles the sites in the range.

    This requires the mod_ratelimit module or something similar.

  2. NiteWave

    NiteWave Administrator

    if the virtual host is not from apache's httpd.conf, i.e., "native virtual host" defined in lsws web admin, it's build-in feature and has been years.
    lsws web admin->virtual hosts-> select a vhost->Basic->Per Client Throttle:
    Per Client Static Reqs/sec
    Per Client Dyn Reqs/sec
    Per Client Bandwidth: Out/sec
    Per Client Bandwidth: In/sec
  3. wemanageit

    wemanageit New Member

    No this is a client IP rate limiting

    As in the article you come from an FCC IP block you crawl at a snails pace.

    If I come from my IP or some one else it is normal speed, no limit.

    The idea is to make the site crawl for the dolts from the US government who don't get the idea or any one else I might choose.

    Not the whole site. Just the selected vicitms.
  4. NiteWave

    NiteWave Administrator

    I don't think there is direct support at the time being. but may able to work around it.
    define a new native virtual host (assume name is "slowvhost"), set above
    Per Client Bandwidth: Out/sec
    Per Client Bandwidth: In/sec
    very low.
    assume this vhost is listen to

    then in main vhost's rewrite:
    RewriteCond %{REMOTE_ADDR} ^(192\.133\.125\.|165\.135\.|.....)
    RewriteRule (.*) http://slowit/$1 [PT]

    in main vhost's external App, define a "web server"

    of course, need define a listener(under lsws web admin -> Listerners) to listen and map to vhost "slowvhost"

Share This Page