Download the PHP package flowd/phirewall-preset-bad-ips without Composer

On this page you can find all versions of the php package flowd/phirewall-preset-bad-ips. 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 phirewall-preset-bad-ips

Phirewall Bad-IP Preset

Block requests from known malicious IP addresses with flowd/phirewall.

Ships a snapshot of the public-domain stamparm/ipsum threat feed and exposes it as a ConfigLayer blocklist for Config::with(). The snapshot loads lazily on the first evaluated request; the raw address list stays available through BadIpList::load().

Installation

Usage

Preset Effect
Presets::blocklist() Blocks (403) requests whose client IP is in the bundled snapshot.
Presets::track(period) Counts matches without blocking, to measure false positives before enforcing.

Skipping the per-request parse

Parsing the snapshot and compiling ~18k addresses into lookup tables costs around 15 ms and, under PHP-FPM, would run on every request. Give your Config a compiled-data cache (phirewall ^0.9) and both steps are served from OPcache-backed artifacts instead - re-parsed only when the data file changes:

The bundled list

The snapshot comes from stamparm/ipsum levels/3.txt (addresses seen on at least three source blacklists). ipsum is dedicated to the public domain under The Unlicense, which is why it can be bundled here; see resources/UPSTREAM-LICENSE. resources/manifest.json records the feed, level, address count and import time.

The repository ships a small placeholder sample. Populate the real list with:

The scheduled Bad-IP Update workflow refreshes it and opens a pull request.

Limits to be aware of

Development

License

LGPL-3.0-or-later (dual-licensed, proprietary licensing available), like flowd/phirewall. The bundled IP data is public domain (The Unlicense) from stamparm/ipsum.


All versions of phirewall-preset-bad-ips with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
flowd/phirewall Version >=0.9 <1.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 flowd/phirewall-preset-bad-ips contains the following files

Loading the files please wait ...