Skip to content

Rack middleware - Automatically block requests from suspicious IPs #3

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

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

Conversation

tyrauber
Copy link

This pull requests adds a rack middleware class that automatically block requests by environment or method to prevent malicious behavior. Choose a threat tolerance, for example no_tolerance, or a customized level of tolerance based on the threat score (0-255, 255 being the most threatening) or the days since last activity. You can also configure a custom error status code, headers and message. Includes a Railtie and Install Generator to enable easy installation and configuration in Rails. Updated Readme and test suite (including upgrade rspec syntax and adding Rakefile).

…ment, method, offense, or tolerance for threat, including no_tolerance, score_tolerance, or last_activity_tolerance. Adds gem configuration and middleware Railtie for easy Rails installation and configuration.
- add Rakefile for easier testing, $ rspec or $ rake
- update rspec syntax to expect from should
- add in middleware_spec
- enable non-rails usage
	- use nil? instead of present?
	- if defined? ::Rails::Railtie
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.

1 participant