Skip to content

Instantly share code, notes, and snippets.

@teol
Last active July 27, 2022 20:01
Show Gist options
  • Save teol/49f9b1d158ae7b15139a0ec68f8ec21a to your computer and use it in GitHub Desktop.
Save teol/49f9b1d158ae7b15139a0ec68f8ec21a to your computer and use it in GitHub Desktop.
crowdsec-http-antiflood
type: leaky
name: teol/antiflood
description: "anti flood against endpoints"
filter: "evt.Meta.log_type in ['http_access-log', 'http_error-log'] && Meta.http_path startsWith '/picture' && evt.Parsed.verb in ['GET', 'POST']"
leakspeed: 0.5s #tweak
capacity: 10 #tweak
groupby: "evt.Meta.source_ip + '/' + evt.Meta.http_path"
blackhole: 1m
labels:
service: http
type: attack
remediation: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment