承接 megaads/traffic-blocking 相关项目开发

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

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

megaads/traffic-blocking

Composer 安装命令:

composer require megaads/traffic-blocking

包简介

The package help block access from any country you want. It gives you a web page where you can do it.

README 文档

README

The package help block access from any country you want. It gives you a web page where you can do it.

Installation

1. Download the package

composer require megaads/traffic-blocking

2. Edit the file /config/app.php by adding the line below in 'providers' section

  • For Laravel Version < 5.0:
'Megaads\TrafficBlocking\Providers\TrafficBlockingServiceProvider'
  • For Laravel Version >= 5.0:
Megaads\TrafficBlocking\Providers\TrafficBlockingServiceProvider::class

3. Publish config files

  • For Laravel Version < 5.0:
php artisan config:publish --path="vendor/megaads/traffic-blocking/src/config" megaads/traffic-blocking --force
  • For Laravel Version >= 5.0:
php artisan vendor:publish --tag='config' --force

Usage

  1. Define an array of keys in the file /config/packages/megaads/traffic-blocking/keys.php to help verify the permission to set up blocking access from selected countries.
  2. Run <YOUR_DOMAIN>/megaads/traffic-blocking/index URL in browser to select countries you want to block access from.
  3. The package gives you a Route Filter - Route Middleware with the alias megaads-block-traffic and the class \Megaads\TrafficBlocking\Middleware\BlockTraffic::class. You can assign it to any route to block access from the countries you selected in step 1.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固