How to block OVH and Digital Ocean networks in cPanel

Hi!
I’ve been receiving a lot of attacks from OVH and Digital Ocean networks to my cPanel server lately.

I’m using CSF, some attacks are blocked automatically, others manually. But I’m tired of that so I’d like to block all of their IPs. Is there an easy way?

Blocking China will be a plus :stuck_out_tongue:

1 Like

You can add an ASN to CC_DENY in /etc/csf/csf.conf and toss a “csf -r” out and boom, done :slight_smile:

Country codes go in the same field, using commas to separate.

Thank you!

I see this config is resource intensive. I better going to leave it empty and configure it when moving to a powerful server.

Not specifically targeted towards OVH and Digital Ocean but this helps to cut down on the unwanted attacks and traffic. I use level 2 on all my servers.

4 Likes

https://asn.ipinfo.app/downloads/AS14061

Pick your poison.

4 Likes

Nice