mod_ratelimit / V4.2.9

NiteWave

Administrator
#2
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
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.
 

NiteWave

Administrator
#4
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 127.0.0.1:1234

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"
name:slowit
addr:127.0.0.1:1234

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