@how@
Verified User
Last edited:
<IfModule mod_throttle.c>
ThrottlePolicy none
ThrottleClientIP 800 Request 10 1s
<Location /throttle-client-ip>
SetHandler throttle-client-ip
</Location>
</IfModule>
code:<IfModule mod_throttle.c>
ThrottlePolicy Volume 10G 30d
</IfModule>
The ThrottlePolicy line is the key. The first number is the amount of data and acceptable letters are G, M and K. The second number is the period and acceptable letters are m, w, d, h, and s.
ProHS said:Does this go by per connection and what would be the recommended settings for doing every say 30 seconds to prevent http floods?
ThrottleClientIP 650 Request 5 1s
ProHS said:That would limt by request and not limit by IP because i notice it says ThrottleClientIP in there?
ThrottleRemoteUser 650 Request 50 1s
ThrottleClientIP 650 Request 5 1s
@how@ said:Request:-
limit by user
limit by ipCode:ThrottleRemoteUser 650 Request 50 1s
Code:ThrottleClientIP 650 Request 5 1s