CrazyBebop

Registered
May 24, 2021
1
0
1
United States
cPanel Access Level
Root Administrator
So, I've installed mod_ratelimit, where exactly do I put the variables? I've attempted the .htaccess but get a 503 error, I've tried Google searching this but had no results..I feel so dumb right now lol.

such as ->
<IfModule mod_ratelimit.c>
<Location /download>
SetOutputFilter RATE_LIMIT
SetEnv rate-limit 500
</Location>
</IfModule>

Also, is the location going to be the home dir location example /home/cpaneluser/public_html/

Thank you.
 
Last edited by a moderator:

WorkinOnIt

Well-Known Member
Aug 3, 2016
302
53
78
UK
cPanel Access Level
Root Administrator
Hello @cPRex

Is there some information the explains exactly how mod_ratelimit works? Does it prevent a user hogging resources? And does the link you provided previously still apply: Configuring ratelimit module question

I would like to limit the amount of multiple connections a user can make (e.g. a bot that comes along and opens 30 tabs of a website simultaneously, potentially crashing the server...) I am using Apache, Mod_sec and CSF
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,409
363
cPanel Access Level
Root Administrator
I don't see anything in that older post that wouldn't work well today, since that is all references EA4 paths that are still in use. It *can* prevent a single user hogging resources, but it only tracks bandwidth, not CPU usage or the number of connections to the site. So no, your example with the bots would not be possible with this module. Here's more details about how that can be configured:


It *really* sounds like what you want is CloudLinux.
 

ResellerWiz

Well-Known Member
Mar 24, 2023
92
44
93
USA
cPanel Access Level
Root Administrator
Twitter
I don't see anything in that older post that wouldn't work well today, since that is all references EA4 paths that are still in use. It *can* prevent a single user hogging resources, but it only tracks bandwidth, not CPU usage or the number of connections to the site. So no, your example with the bots would not be possible with this module. Here's more details about how that can be configured:


It *really* sounds like what you want is CloudLinux.
I think LiteSpeed would probably be a better solution in this case.

Enabling per client throttling and captcha in LiteSpeed should definitely help.
 
  • Like
Reactions: cPRex