diff --git a/Ban-IP-s-on-shared-hosting-where-Fail2ban-is-not-available.md b/Ban-IP-s-on-shared-hosting-where-Fail2ban-is-not-available.md new file mode 100644 index 0000000..2b1c460 --- /dev/null +++ b/Ban-IP-s-on-shared-hosting-where-Fail2ban-is-not-available.md @@ -0,0 +1,22 @@ +I am missing fail2ban so much on cheap shared hosting that I've _rewritten_ it in PHP. + +### Actions + +There are several kinds of banning (I call them methods, not actions) + +- Apache RewriteMap + RewriteRule [F] +- Apache SetEnvIf + Deny +- CloudFlare API +- Respond with HTTP 403 (and no further banning) +- Nginx user config (TODO) +- Tarpit (and no further banning) +- WordPress plugin based + +See https://github.com/szepeviktor/wordpress-fail2ban/tree/master/miniban + +### Features + +- whitelist +- ban time +- unban +- etc.