jgmdev / ddos-deflate

Fork of DDoS Deflate with fixes, improvements and new features.
Other
774 stars 263 forks source link

Feature request: Cloudflare API perma ban #60

Closed 09173732546 closed 5 years ago

09173732546 commented 5 years ago

Hi jgmdev,

I remembered Cloudflare has a feature for banning and unbanning IP thru curl. And i found this bash script example: https://gist.github.com/pjv/926ece8549cd45bac4821945f6ad253c

The scenario would be:

  1. For initial ddos---ban via iptables using predefined time.
  2. For repeat/continuous ddos by the same ip --- use CF_BAN using longer predefined time.

I hope this can be added as an additional layer of protection like ENABLE_CF_BANNING=TRUE

Thanks!