How to install and configure ModSecurity Nginx/Apache For Hestia

Hello everyone! Apologies for bringing this up, but I’m in desperate need of help. Two of my websites have been hacked, and I’ve had to take immediate action to prevent further damage. I came across some video tutorials with Documentations and tried to follow it, but I’m stuck and can’t seem to complete the steps or get it working.

Could someone in this community please guide me to additional video materials or provide advice on securing my websites? I would really appreciate any assistance you can offer. Thanks in advance!

Here are the videos I mentioned:

https://www.youtube.com/watch?v=5eRxOYbaIEI&t=3s,

https://www.youtube.com/watch?v=MB7nQrlP5Yc&t=1066s

7g Firewall