Fail2ban badbots policy

Hi,

Should I use badbots rule for nginx or apache for HestiaCP server? (I am using Nginx+Apache setup)

Thanks