承接 ghua/zim32-request-limit-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ghua/zim32-request-limit-bundle

Composer 安装命令:

composer require ghua/zim32-request-limit-bundle

包简介

With this bundle you can easy limit requests to your application

README 文档

README

Overview

With this bundle you can easy limit requests to your application

Installation

  1. Add Zim32RequestLimitBundle to your deps file

    [Zim32RequestLimitBundle] git=git://github.com/zim32/Symfony2-RequestLimitBundle.git target=/bundles/Zim32/RequestLimitBundle Make /bin/vendors install

  2. Add Zim32RequestLimitBundle to your AppKernel

    $bundles = array( ................. new Zim32\RequestLimitBundle\Zim32RequestLimitBundle(), );

  3. Add Zim32 namespace into your /app/autoload.php

    $loader->registerNamespaces(array( ................ 'Zim32' => DIR.'/../vendor/bundles', ));

  4. Configure your application. For example

    zim32_request_limit: rules: rule: path: /profile/ limit: 1 per: 60 ip: 192.168.1.2 some_foo_name: path: / limit: 10 per: 1

First rule will limit requests for 1 request per 60 seconds from ip 192.168.1.2 for URL starting with /profile/

Reference

  1. path (required) - path to apply rule
  2. limit (required) - number of requests. For immediate deny use '0' for limit
  3. per (required) - seconds
  4. ip (optional) - limit by remote ip

You can use several rules at the same time

统计信息

  • 总下载量: 141
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2012-11-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固