没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
注意:您正在查看开发版本README。 有关与最新发行版本一致的自述文件,请参见 。 机架::攻击 机架中间件,用于阻止和限制滥用请求 保护您的Rails和Rack应用免受不良客户端的侵害。 使用Rack :: Attack,您可以根据请求的属性轻松决定何时允许,阻止和限制。 请参阅介绍Rack :: Attack的。 目录 入门 正在安装 将此行添加到您的应用程序的Gemfile中: # In your Gemfile gem 'rack-attack' 然后执行: $ bundle 或自己安装为: $ gem install rack-attack 插入应用程序 然后告诉您的ruby Web应用程序使用机架攻击作为中间件。 a)对于Rails应用程序,默认情况下使用。 您可以通过以下方式永久禁用它(例如对于特定的环境)或暂时禁用(对于特定的测试用例有用): Rack :: Attack . enabled = false b)对于机架应用: # In config.ru require "rack/attack" use Rack :: Attack 重要信息
资源推荐
资源详情
资源评论
收起资源包目录
rack-attack-master.zip (94个子文件)
rack-attack-master
gemfiles
rack_1.gemfile 196B
active_support_redis_cache_store_pooled.gemfile 178B
connection_pool_dalli.gemfile 146B
rack_2.gemfile 113B
dalli2.gemfile 114B
active_support_redis_store.gemfile 128B
active_support_redis_cache_store.gemfile 146B
rails_6_0.gemfile 119B
redis_4.gemfile 114B
rails_6_1.gemfile 119B
redis_store.gemfile 120B
rails_4_2.gemfile 145B
rails_5_2.gemfile 119B
redis_3.gemfile 114B
lib
rack
attack
configuration.rb 4KB
safelist.rb 194B
request.rb 466B
track.rb 478B
railtie.rb 216B
store_proxy
dalli_proxy.rb 2KB
redis_proxy.rb 2KB
redis_store_proxy.rb 637B
mem_cache_store_proxy.rb 500B
active_support_redis_store_proxy.rb 1KB
redis_cache_store_proxy.rb 1019B
blocklist.rb 196B
allow2ban.rb 678B
check.rb 563B
base_proxy.rb 464B
path_normalizer.rb 890B
fail2ban.rb 2KB
version.rb 90B
cache.rb 3KB
throttle.rb 2KB
attack.rb 4KB
Gemfile 70B
rack-attack.gemspec 2KB
spec
integration
offline_spec.rb 2KB
rack_attack_path_normalizer_spec.rb 467B
rack_attack_dalli_proxy_spec.rb 288B
rack_attack_spec.rb 3KB
rack_attack_throttle_spec.rb 5KB
spec_helper.rb 1KB
acceptance
extending_request_object_spec.rb 765B
safelisting_subnet_spec.rb 1KB
blocking_spec.rb 2KB
cache_store_config_with_rails_spec.rb 844B
customizing_throttled_response_spec.rb 2KB
blocking_subnet_spec.rb 1KB
safelisting_ip_spec.rb 1KB
stores
active_support_redis_cache_store_pooled_spec.rb 712B
connection_pool_dalli_client_spec.rb 648B
redis_spec.rb 453B
redis_store_spec.rb 489B
active_support_redis_cache_store_spec.rb 657B
active_support_dalli_store_spec.rb 546B
dalli_client_spec.rb 485B
active_support_mem_cache_store_spec.rb 506B
active_support_mem_cache_store_pooled_spec.rb 559B
active_support_redis_store_spec.rb 527B
active_support_memory_store_spec.rb 456B
track_throttle_spec.rb 1KB
throttling_spec.rb 5KB
safelisting_spec.rb 3KB
cache_store_config_for_fail2ban_spec.rb 3KB
allow2ban_spec.rb 2KB
track_spec.rb 813B
blocking_ip_spec.rb 924B
customizing_blocked_response_spec.rb 1KB
cache_store_config_for_throttle_spec.rb 1KB
rails_middleware_spec.rb 532B
fail2ban_spec.rb 2KB
cache_store_config_for_allow2ban_spec.rb 3KB
rack_attack_track_spec.rb 1KB
allow2ban_spec.rb 3KB
rack_attack_request_spec.rb 361B
fail2ban_spec.rb 4KB
support
cache_store_helper.rb 2KB
rack_attack_instrumentation_spec.rb 1KB
Rakefile 570B
examples
rack_attack.rb 1KB
instrumentation.rb 137B
CONTRIBUTING.md 2KB
.travis.yml 1KB
LICENSE 1KB
README.md 17KB
.rubocop.yml 2KB
Appraisals 1KB
docs
example_configuration.md 3KB
advanced_configuration.md 4KB
development.md 498B
CODE_OF_CONDUCT.md 2KB
.gitignore 89B
CHANGELOG.md 12KB
共 94 条
- 1
资源评论
weixin_42135073
- 粉丝: 28
- 资源: 4783
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功