Commit graph

128 commits

Author SHA1 Message Date
Aaron Suggs
67489b7323 Merge pull request #33 from teslamotors/allow2ban
Allow2Ban
2013-09-28 18:01:13 -07:00
Jordan Moncharmont
273e045f10 fix edge case, if maxretry is 1, let them get 1 request in 2013-09-27 17:35:01 -07:00
Jordan Moncharmont
ef59c5182a Allow2Ban
An alternate to fail2ban that allows clients until they hit the
thresholds, then blocks them.  Think of it like a throttle where you can
block for more than one period.
2013-09-27 17:18:52 -07:00
Aaron Suggs
56858b85af README: add link to mailing list archives 2013-08-21 10:18:32 -04:00
Aaron Suggs
65ea56d9a8 Add mailing list to readme 2013-08-20 18:57:41 -04:00
Aaron Suggs
3cec847048 [travisci] Fix gemspec path in gemfiles 2013-08-20 13:53:18 -04:00
Aaron Suggs
da2f265e7e [travisci] Add tests for activesupport 3.2 and 4.0 2013-08-20 13:47:45 -04:00
Aaron Suggs
7d9326235d Drop test support for ruby 1.9.2
1.9.2 isn't supported by rails 4, and is difficult to test with travis
ci.

Attn @zmillman: I'd welcome further patches to better test ruby 1.9.2
support without compromising testing on 1.9.3 & 2.0.

See also: #21
2013-08-20 13:45:23 -04:00
Aaron Suggs
1d367f5acd version 2.3.0, update changelog, copy tweaks 2013-08-20 11:39:44 -04:00
Aaron Suggs
b7ebb58bd9 Merge pull request #30 from lunks/allow-limit-to-be-a-proc
Allow limit option to be a proc.
2013-08-20 08:35:27 -07:00
Pedro Nascimento
ab6d7b239d Allow limit option to be a proc.
This allows you to do stuff like:
`req.env["USER"] == "god" ? 1000 : 1`
2013-08-19 19:47:48 -03:00
Aaron Suggs
4e5db68ad6 Minor copy tweaks 2013-08-16 02:03:39 -04:00
Aaron Suggs
65511e0835 README.md: add gem badge; re-arrange stuff 2013-08-13 16:31:03 -04:00
Aaron Suggs
4872649e74 add release to changelog 2013-08-13 11:34:40 -04:00
Aaron Suggs
98eec24a8c Update changelog, version 2.2.1 2013-08-05 21:14:16 -04:00
Aaron Suggs
2925ade67c Merge pull request #27 from alexchee/master
Updated README about minimum version for redis
2013-08-02 07:45:40 -07:00
alexchee
fc274de1cb added note about redis minimum version 2013-08-01 14:13:02 -07:00
Aaron Suggs
5a37bb102f Add license to gemspec
Fixes issue #26
2013-07-17 10:37:26 -04:00
Aaron Suggs
905df04992 Merge pull request #24 from zmillman/ruby-1-9-2
Reduce Ruby version dependency to 1.9.2
2013-07-12 15:19:32 -07:00
Zach Millman
1c501e81a6 Reduce Ruby version dependency to 1.9.2
Also added 1.9.2 to Travis config file
2013-07-12 15:02:52 -07:00
Aaron Suggs
8ece6925aa Merge pull request #23 from zmillman/master
Explain why README examples use 503 to distract attackers
2013-07-12 15:00:03 -07:00
Zach Millman
8ff22a17f9 Fix typo 401 -> 429 2013-07-12 14:49:29 -07:00
Zach Millman
8a0fd35880 Fix response status comment for README 2013-07-12 14:45:59 -07:00
Zach Millman
d05da7d39b Explain why Rack::Attack returns 503 instead of 429 in README 2013-07-12 14:19:45 -07:00
Aaron Suggs
eaaad929b1 Merge pull request #20 from rallysf/correct-http-codes
Use correct HTTP status codes for blackist and throttle
2013-07-02 13:33:03 -07:00
Alex Volkovitsky & Sachin Maharjan
f348643c24 Fix spec expectations 2013-06-28 13:59:31 -07:00
Alex Volkovitsky & Sachin Maharjan
cfbee2c552 Use correct HTTP status codes for blackist and throttle 2013-06-28 10:55:28 -07:00
Aaron Suggs
237dc2d944 Format example code as ruby 2013-06-20 11:21:11 -04:00
Aaron Suggs
46f2b56ee3 fix typo 2013-06-20 11:20:52 -04:00
Aaron Suggs
61ecfbb51f Update changelog 2013-06-20 11:15:41 -04:00
Aaron Suggs
9388e98eb0 version 2.2.0 2013-06-20 11:05:00 -04:00
Aaron Suggs
2d81fa7217 Clarify Fail2Ban readme 2013-06-20 10:54:30 -04:00
Aaron Suggs
24143dd195 Cleanup whitespace 2013-06-20 10:19:56 -04:00
madlep
4fe7f2d1ba updated and condensed fail2ban docs 2013-06-17 08:55:37 +10:00
madlep
2819e0d7a4 collapse fail2ban name/discriminator into one argument 2013-06-17 08:50:39 +10:00
madlep
9761faf6be added README docs for fail2ban 2013-06-14 16:07:01 +10:00
madlep
baffa83687 spec for Fail2Ban 2013-06-14 15:37:02 +10:00
madlep
94a304b815 reorder logic to not repeatedly extend ban after more failed requests 2013-06-14 12:49:53 +10:00
madlep
3f1c98a868 Fail2Ban helper
based on gist from @ktheory https://gist.github.com/ktheory/5723534

Modified slightly to use fail2ban `filter` terminology to simplify
Rack::Attack initializer configuration (only one block is requred for
this approach instead of 2)
2013-06-12 15:51:13 +10:00
madlep
6c259ea9be delegate Redis custom logic to StoreProxy
this removes ugly `if redis blah` code from cache
2013-06-12 15:03:39 +10:00
madlep
22fc386bad add read/write methods to cache 2013-06-12 15:03:24 +10:00
Aaron Suggs
f73fd1ab4e README: clarify throttle example.
Don't use logical operators for control flow.
2013-06-10 12:39:55 -04:00
Aaron Suggs
247835c63b Merge pull request #15 from novemberkilo/patch-1
Minor edits to README
2013-05-17 15:59:25 -07:00
Navin
c784822680 Minor edits to README
Hints on where to define rules and a note on enabling the cache in dev mode
2013-05-17 20:23:31 +02:00
Aaron Suggs
b83cf47b7f Changelog formatting 2013-05-16 14:31:34 -04:00
Aaron Suggs
bb7ed70caa ignore gems 2013-05-16 14:28:59 -04:00
Aaron Suggs
8982f1813b oops, remove gem 2013-05-16 14:28:35 -04:00
Aaron Suggs
d1cf2a2eea bump to version 2.1.1 2013-05-16 14:24:41 -04:00
Aaron Suggs
8026d57fc3 Add changelog 2013-05-16 14:24:41 -04:00
Aaron Suggs
e917fcc2b5 Merge pull request #14 from hanchang/master
Redis::CommandError (ERR value is not an integer or out of range):
2013-05-13 13:05:05 -07:00