Kyle d'Oliveira
9dbece5272
Add an reader for the epoch_time variable in the cache so that it can also be returned in the data from the throttle.
...
This is allows access to the same time that the cache uses for the count. This can be important for clients that want to provide rate limit information for well-behaved clients
2018-02-15 14:45:35 -08:00
Gonzalo Rodriguez
16af283d28
Don't make README examples depend on activesupport
2018-01-31 19:12:52 -03:00
Gonzalo Rodriguez
34ee066eac
Drop support for Rails 3
2018-01-23 16:12:16 -03:00
Gonzalo
aeca8e52b3
Update to new ruby hash syntax in docs
2018-01-17 11:05:22 -03:00
Aaron Suggs
dc308add10
README: add section for maintainers
2017-02-09 22:26:57 -05:00
Olle Jonsson
7285e721aa
README: Badges as SVG not PNG
2017-01-16 12:24:25 +01:00
Julian Doherty (madlep)
2c853bae9d
it's minitest, not rspec
2016-08-04 22:51:14 +10:00
Julian Doherty (madlep)
9402908db9
added discussion about how to run test suite
2016-08-04 21:49:43 +10:00
Aaron Suggs
b07537d51e
README: add example for returning X-RateLimit-* headers
2016-08-03 14:04:00 -04:00
Aaron Suggs
eb9331fb8c
whitespace
2016-07-04 21:42:44 -04:00
Aaron Suggs
f5f08d56e5
More safelist/blocklist refactoring
...
- Add Rack::Attack namespace to deprecation warning.
- Add deprecated Rack::Attack.blacklisted_response attr methods.
2016-07-04 21:42:41 -04:00
Renée Hendricksen
e1a0c804e1
suggesting changing whitelist/blacklist language to less controversial safelist/blocklist language
...
add deprication warnings
fix the method signatures
2016-07-01 21:44:45 -04:00
Aaron Suggs
3bbf9b0b5b
Copyright Kickstarter, PBC
2016-05-18 06:27:47 -04:00
Leslie Zhang
7af55447cc
Fix typo in README.md
2016-01-08 15:33:44 +08:00
Aaron Suggs
2b75edacfd
Merge pull request #149 from watsonbox/readme-scoping-fail2ban
...
Add note to README.md about scoping of Fail2Ban filters
2015-12-18 09:00:03 -05:00
Aaron Suggs
b32148e0be
README: add ipv6 example
...
Per #151
2015-11-30 10:52:15 -05:00
Howard Wilson
4d5e859a12
Add note to README.md about scoping of Fail2Ban filters
2015-11-09 13:43:50 +01:00
jamesprior
6d787147db
Updating readme
...
Setting up example for multiple filter support, adding note to documentation
2015-11-06 10:01:54 -05:00
jamesprior
c8f8f85af2
Updating the readme
...
- Notes that the rails cache is also used for fail2ban
- Notes that all fail2ban filters use the same cache for counting and banning
- Expands sample fail2ban filter example to include more matches
2015-10-23 15:57:04 -04:00
Aaron Suggs
85968904ee
Add Code of Conduct
...
From Contributor Covenant: http://contributor-covenant.org
2015-07-07 14:27:10 -04:00
Hayley Anderson
e1e315181a
Fix typos
...
* Change "you Gemfile" to "your Gemfile"
* Change "config/initalizers" to "config/initializers"
2015-05-13 11:30:25 -04:00
Jun Jiang
0b3c638409
Update README.md
2015-04-19 06:14:03 +08:00
Aaron Suggs
77d0493bc4
README: link to Rack::Request documentation
2015-03-06 15:47:32 -05:00
Lucas "medk" Pinto
5fbe7de686
Change Rack::Request URL in the README
2015-03-06 13:37:33 +01:00
Aaron Suggs
e7efe1cf5f
Merge pull request #91 from gsamokovarov/call-responses
...
Invoke Rack:::{blacklisted,throttled}_response with #call
2014-10-02 14:25:42 -04:00
Genadi Samokovarov
a161176142
Invoke {blacklisted,throttled}_response with #call
...
I have a response which is a class. While I can still have my class
implement `#[]`, it does look a bit off. On the other side, having
objects, responding to #call, that are not procs is pretty common.
So I propose to invoke the responses with `#call` to let users override
it with response objects, that respond to `#call` instead of `#[]`.
2014-09-25 23:21:02 +02:00
Genadi Samokovarov
d9a5587676
Allow throttle period option to be a proc
...
I need to filter requests on a period I need to get dynamically out of
information I have in the requests. Currently, I can work out the limit,
as it can be a `Proc`, however I can't do that with the period.
This PR adds support for that. Tried to do it in a way that doesn't
brake backwards compatibility, as periods are coerced to numbers during
`Rack::Throttle` initialization.
2014-09-19 19:32:39 +02:00
brchristian
4a724d8c8b
Fix typo in README.md
2014-08-15 09:03:38 -07:00
Aaron Suggs
7820986d9c
Merge pull request #74 from zmillman/readme-request
...
Improve documentation of Rack::Attack::Request
2014-08-01 14:43:53 -04:00
Zach Millman
882221212a
Fix formatting of note on Rack::Attack::Request
2014-06-17 11:38:50 -07:00
Zach Millman
5c78f84be2
Improve documentation of Rack::Attack::Request
...
https://github.com/kickstarter/rack-attack/issues/73
2014-06-17 11:37:25 -07:00
Paul Coates
1857f8dd57
Added track with limit/period options example to the README.md for clarity.
2014-05-19 12:30:18 -07:00
Paul Coates
c51676d295
Updated README.md to reflect optional limit and period parmas for tracks.
2014-05-19 11:14:50 -07:00
Ricky Gu
3fe74441d7
Update README.md
...
Update init file from module to class
2014-05-18 00:00:28 -07:00
Aaron Suggs
e1d736f0f0
Changelog + better README description
2014-04-25 13:39:21 -05:00
Aaron Suggs
eb81baf612
Readme: installation => getting started
2014-04-24 07:45:48 -05:00
Zach Millman
7af1239655
Add link to example configuration in README
2014-04-23 15:47:24 -05:00
Aaron Suggs
40963654b8
README: remove year from copyright.
...
h/t @fredbenenson
2014-03-25 10:58:55 -04:00
Carsten Zimmermann
355a6fbce6
Update readme
2014-02-06 21:35:28 +01:00
T.J. Schuck
63b8a0d7bd
Update deprecated nginx limit_zone to limit_conn_zone
2014-01-03 10:04:21 -05:00
Michael Jelks
df276e6dfa
Update README.md
...
Appears to be error with documentation and Allow2Ban portion. Caused local errors with '.path= is undefined'
2013-11-06 14:18:37 -08:00
Richard Schneeman
41c449f838
properly indent code sections
...
Using three tick marks and double indenting is redundant. Doing both produces a readme with an odd visual flow. This change does not modify content, it only changes lefthand whitespace so the Readme on Github will be more coherent.
2013-10-23 00:09:43 -05:00
Jordan Moncharmont
76dc9b1dc9
Update README.md
...
docs typo
2013-09-30 10:18:54 -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
1d367f5acd
version 2.3.0, update changelog, copy tweaks
2013-08-20 11:39:44 -04: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