From df276e6dfa729ed53c84f44848af78cd17b7eee6 Mon Sep 17 00:00:00 2001 From: Michael Jelks Date: Wed, 6 Nov 2013 14:18:37 -0800 Subject: [PATCH] Update README.md Appears to be error with documentation and Allow2Ban portion. Caused local errors with '.path= is undefined' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 060b4eb..10a3de1 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ Rack::Attack.blacklist('allow2ban login scrapers') do |req| # they hit the limit. At that point, filter will return true and block. Rack::Attack::Allow2Ban.filter(req.ip, :maxretry => 20, :findtime => 1.minute, :bantime => 1.hour) do # The count for the IP is incremented if the return value is truthy. - req.path = '/login' and req.method == 'post' + req.path == '/login' and req.post? end end ```