Hi there,
I have a few questions about modsecurity and cpanel.
1) Currently, I can visit domain.com/.env and that will be logged in modsecurity as critical: 2023-08-08_14-34-05 , however the server responds with a 404 error. Is this the expected behavior? Is there a way to change the paranoia level or default blocking options through cpanel? I'd like to deny (403) or even ban offending IPs.
2) Is there an advantage (IE saving resources) to IP banning offending IPs for 24 or 48 hours as opposed to serving them a 403? We've read reports stating that at least half of traffic is from bots. Can we further maximize our server resources by blocking them as opposed to just denying them?
3) A few times, we've seen users banned through CSF and had to whitelilst their IP in CSF. What actions can lead to an IP ban? Is this done through modsecurity / CSF? I don't see mod_evasive installed. We've definitely seen some of our users get IP banned, but I'm not sure exactly why.
4) We are interested in adding the project honeypot API to modsecurity. The behavior we would like to see is to block harvesters and spammers (IP ban). Can you help us do this or provide instructions? I know this can be done with fail2ban, but is there a setting to do this within cpanel?
5) How is the SecAuditLogParts directive being set in cpanel? I noticed the modsec_audit log has different settings than I've seen before when installing modsecurity without cpanel. I'm trying to stick to the available cpanel options but am comfortable modifying config files if necessary.
Any help is appreciated!
Thank you
I have a few questions about modsecurity and cpanel.
1) Currently, I can visit domain.com/.env and that will be logged in modsecurity as critical: 2023-08-08_14-34-05 , however the server responds with a 404 error. Is this the expected behavior? Is there a way to change the paranoia level or default blocking options through cpanel? I'd like to deny (403) or even ban offending IPs.
2) Is there an advantage (IE saving resources) to IP banning offending IPs for 24 or 48 hours as opposed to serving them a 403? We've read reports stating that at least half of traffic is from bots. Can we further maximize our server resources by blocking them as opposed to just denying them?
3) A few times, we've seen users banned through CSF and had to whitelilst their IP in CSF. What actions can lead to an IP ban? Is this done through modsecurity / CSF? I don't see mod_evasive installed. We've definitely seen some of our users get IP banned, but I'm not sure exactly why.
4) We are interested in adding the project honeypot API to modsecurity. The behavior we would like to see is to block harvesters and spammers (IP ban). Can you help us do this or provide instructions? I know this can be done with fail2ban, but is there a setting to do this within cpanel?
5) How is the SecAuditLogParts directive being set in cpanel? I noticed the modsec_audit log has different settings than I've seen before when installing modsecurity without cpanel. I'm trying to stick to the available cpanel options but am comfortable modifying config files if necessary.
Any help is appreciated!
Thank you
Last edited by a moderator: