Download the PHP package wobqqq/nova-aegis-ip-blocker without Composer

On this page you can find all versions of the php package wobqqq/nova-aegis-ip-blocker. 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 nova-aegis-ip-blocker

Aegis IP Blocker

CI Packagist PHP PHPStan License: MIT

IP Blocker is a module of Aegis, the security suite for Laravel Nova. It refuses every request from the IP addresses and subnets you list, on the site and in Nova, and answers them with a 403 page. The list is managed on the Aegis page.

🚀 Features

📦 Requirements

📥 Installation

1. Install the package

The service provider is discovered automatically.

2. Run the migrations

This creates the Aegis settings table if the core is new to the application; the module adds no table of its own.

3. Set up Aegis (once per application)

If Aegis is new to the application, register its tool and define the viewAegis gate as the Aegis README describes. Skip this step if you already use another Aegis module.

4. Turn it on in Nova

Open Aegis → Settings → IP Blocker in Nova, list the addresses or subnets to block, switch Enable IP Blocker on and save. A list that would block your own address is refused.

⚙️ Configuration

Everything is set on the Aegis page:

Setting Default
Enable IP Blocker off Nothing is blocked until it is switched on.
Page shown to a blocked visitor aegis-ip-blocker::blocked A Blade view name (errors.403, vendor::view). The default page is used when the view does not exist or fails.
Blocked addresses and subnets none Up to 500 rows of an address or a CIDR subnet and an optional note.

To change the default page, publish it:

The page is drawn before the session starts: a custom view must not need the session, the authenticated user or $errors.

To guard routes outside the web group, such as an API, add the middleware to them:

🛟 Recovery commands

If you blocked yourself (your address changed, or a proxy's address was listed):

remove-ip names the subnets that still cover the address.

⚠️ Good to know

⬆️ Upgrading

See CHANGELOG.md.

🔒 Security

Please report a vulnerability privately, as described in SECURITY.md.

🛠️ Development

The toolchain runs in Docker, the host needs nothing but docker and make. Until the core is on Packagist it is read from a sibling checkout, ../nova-aegis (a Composer path repository), so the container mounts the parent directory. No Nova license is needed: development and CI run on a test double of Nova in stubs/nova (installed as laravel/nova from a path repository, never shipped). Applications still install the real Nova.

make test.nova copies the repository to a temporary directory, installs the real laravel/nova from nova.laravel.com there and runs Pest; it needs your own Nova license in auth.json (gitignored), and NOVA_VERSION=5.9.3 make test.nova picks a release your license may download. The working copy, its vendor/ and composer.lock are left untouched.

GitHub Actions runs the same checks on every pull request, with the core checked out next to the module. It needs no Nova license, only the repository secret AEGIS_CORE_TOKEN (a token that can read wobqqq/nova-aegis) while the core repository is private.


All versions of nova-aegis-ip-blocker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
laravel/framework Version ^12.0 || ^13.0
laravel/nova Version ^5.0
wobqqq/nova-aegis Version ^1.1 || ^2.0 || dev-main
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 wobqqq/nova-aegis-ip-blocker contains the following files

Loading the files please wait ...