Skip to content

A tiny bash script to ban IPs on CloudFlare while under HTTP(S) DDOS attack

Notifications You must be signed in to change notification settings

nichdiekuh/cf-ban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This script is a useful utility when a site protected by CloudFlare is under attack.

The script can read logfiles in Apache format and block IPs on Cloudflare based on a configurable amout of occurences. Please note to log the X-FORWARD-IP to get the real client ips instead of the cloudflare IPS

When using Varnish you can use the following command to log the traffic into a readable format:

varnishncsa -f > temp.log The parameter -f logs the X-FORWARD-IP.

Please fork and extend this script!

About

A tiny bash script to ban IPs on CloudFlare while under HTTP(S) DDOS attack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages