Yireo_SalesBlock2ByIp

PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
Latest Release 2.1.2

Magento version PHP version License Latest Version

This module is a helper-module for the Yireo_SalesBlock2 extension, that allows you to block orders from being placed, based on specific rules defined in the Magento Admin Panel.

This specific module allows you to match by a specific IP pattern. The following patterns are supported:

  • 192.168.1.1 = Direct IP matches
  • 192.168.1.0/24 = IP ranges

Installation

To install this module, use the following commands. First, install this module using composer. Note that this step will fail if the Yireo_SalesBlock2 is not installed yet.

composer require yireo/magento2-salesblock2-by-ip

Once this module is installed via composer, you can enable it:

./bin/magento module:enable Yireo_SalesBlock2ByIp

There are no further steps to take. The Yireo_SalesBlock2 module automatically picks up on things.

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_SalesBlock2ByIp

Composer details
Magento module name
Yireo_SalesBlock2ByIp
Composer name
yireo/magento2-salesblock2-by-ip
Composer version
2.1.2
Default branch
master
Requirements
ext-pcre: *
wikimedia/ip-utils: ^4.0.1 || ^5.0
yireo/magento2-salesblock2: ^2.2
php: >=8.2 <8.6
Releases
2.1.2 23 October 2026
2.1.1 23 October 2026
2.1.0 23 October 2026
2.0.0 23 October 2026
Changelog

[2.1.2] - 21 November 2025

Fixed

  • Switch from wikimedia/ip-set to wikimedia/ip-utils [#3 @Krinkle]

[2.1.1] - 10 April 2024

Fixed

  • Rename RuleMatch namespace because of compat PHP 8.2

[2.1.0] - 25 April 2022

Added

  • This CHANGELOG

Removed

  • Removed unneeded module version

[2.1.0] - 16 April 2022

Fixed

  • Remove PHP dep from composer
  • PHP 8 compatibility (and therefore Magento 2.4.4)

Previous versions were not added to CHANGELOG

Last modified: October 17, 2026