Skip to content

Instantly share code, notes, and snippets.

@stephennaicken
Created February 28, 2016 22:09
Show Gist options
  • Save stephennaicken/3319af2bb777461fc20e to your computer and use it in GitHub Desktop.
Save stephennaicken/3319af2bb777461fc20e to your computer and use it in GitHub Desktop.
# /etc/fail2ban/jail.local
[ghost-blog-auth]
enabled = true
port=443
filter = ghost-blog-auth
logpath = /var/log/upstart/ghost.log
maxretry = 3
# /etc/fail2ban/filter.d/ghost-blog-auth.conf
[Definition]
failregex = <HOST> - - \[ \+0000\] "POST \/ghost\/api\/v0.1\/authentication\/token HTTP\/1.0" (404|401) \d+ "https:\/\/domain.com\/ghost\/signin\/" \".+\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment