Download the PHP package jundayw/laravel-firewall without Composer

On this page you can find all versions of the php package jundayw/laravel-firewall. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-firewall

Installation

Compatible with

Installing

这个包使用包 Auto-Discovery's 特性,并且应该在您通过 Composer 安装它后立即可用。 并且预置三个中间件,方便直接调用:

然后您可以在路由中使用它们:

发布配置文件:

发布IP数据库文件:

如果需要,您可以手动更新 GeoLite2-Country.mmdb 数据库文件。MaxMind-DB

Purpose

这是一个软防火墙包。 它的目的是帮助人们防止未经授权访问IP地址的路由。它能够跟踪IP、国家和主机(动态IP),同时允许白名单IP访问整个站点。 它现在还能够检测和阻止来自单个IP或整个国家的攻击(太多请求)。

这个软件包可以防止一些麻烦,帮助你阻止对你的应用程序的访问, 但不能取代防火墙和设备,对于网络级别的攻击,你仍然需要一个真正的防火墙。

Features

Concepts

Firewall 包含 BlacklistWhitelist , AttackBlocker 包含 rate_limiter

Blacklist

这些列表中的所有IP地址将无法访问由黑名单筛选器筛选的路由。

Whitelist

这些IP地址、范围或国家可以

AttackBlocker

IPs lists

IPs(黑白)列表可以存储在数组、文件和数据库中。 因此,要测试防火墙配置,可以发布配置文件并编辑blacklist或whitelist数组:

文件(例如/usr/bin/firewall/blacklisted.txt)每行必须包含一个IP、范围或文件名, 而且,它将递归地搜索文件,因此,如果需要,您可以文件中包含一个文件:

Artisan Commands

Facade


All versions of laravel-firewall with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
illuminate/support Version >=5.5
geoip2/geoip2 Version ~2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jundayw/laravel-firewall contains the following files

Loading the files please wait ....