Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rack-attack gem #206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add rack-attack gem #206

wants to merge 2 commits into from

Conversation

RamilyaNigmatullina
Copy link
Contributor

Summary

  • add rack-attack gem
  • add base config

How it works

It protects the app from bad clients. It allows only 300 requests from one IP address per 5 minutes.

Test plan

Send any request that exceeds the limit.

Review notes

While reviewing pull-request (especially when it's your pull-request),
please make sure that:

  • you understand what problem is solved by PR and how is it solved
  • new tests are in place, no redundant tests
  • DB schema changes reflect new migrations
  • newly introduced DB fields have indexes and constraints
  • there are no missed files (migrations, view templates)
  • required ENV variables added and described in .env.example and added to Heroku
  • associated Heroku review app works correctly with introduced changes

Deploy notes

None.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Rack::Attack to protect app from bad clients
1 participant