PHPackages                             yireo/magento2-salesblock2-by-geo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. yireo/magento2-salesblock2-by-geo

ActiveMagento2-module[Security](/categories/security)

yireo/magento2-salesblock2-by-geo
=================================

Block transactions based on geo matching

2.1.2(2y ago)11.2k2[1 PRs](https://github.com/yireo/Yireo_SalesBlock2ByGeo/pulls)OSL-3.0PHP

Since Jul 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yireo/Yireo_SalesBlock2ByGeo)[ Packagist](https://packagist.org/packages/yireo/magento2-salesblock2-by-geo)[ Docs](https://www.yireo.com/software/magento-extensions/salesblock2)[ Fund](https://www.paypal.me/yireo)[ GitHub Sponsors](https://github.com/yireo)[ RSS](/packages/yireo-magento2-salesblock2-by-geo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

Yireo SalesBlock2ByGeo for Magento 2
====================================

[](#yireo-salesblock2bygeo-for-magento-2)

This module is a helper-module for the [Yireo\_SalesBlock2](https://www.yireo.com/software/magento-extensions/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 geo location.

### Installation

[](#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-geo

```

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

```
bin/magento module:enable Yireo_SalesBlock2ByGeo
bin/magento setup:upgrade

```

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

### Usage

[](#usage)

When creating a rule within the SalesBlock extension, this submodule adds a new geolocation rule to block sales by geolocation. Within the **Match** field, you can one or more of the following values:

- A two-letter identifier for a continent ([ref](https://www.php.net/manual/en/function.geoip-continent-code-by-name.php))
- A two-letter identifier for a country ([ref](https://dev.maxmind.com/geoip/legacy/codes/iso3166/))
- A three-letter identifier for a country ([ref](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3))

Multiple entries are to be separated by commas.

### GeoIP support

[](#geoip-support)

You either need to install GeoIP support into your PHP installation (usually by installing a PHP extension `ext-geoip`) or you need to add GeoIP databases on your system and configure this extension to use them. For installing the PHP extension, refer to your PHP installation. Please note that the GeoIP extension might no longer be available for your PHP version.

As for the Geo databases, register for an account with Maxmind and download the database (`*.mmdb`) for either cities or countries or both. Upload them some where on your server and configure this extension in the Magento Admin Panel to point to that path.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~270 days

Recently: every ~190 days

Total

6

Last Release

763d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (21 commits)")

---

Tags

magento2-modulemagentocomposer-installer

### Embed Badge

![Health badge](/badges/yireo-magento2-salesblock2-by-geo/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-salesblock2-by-geo/health.svg)](https://phpackages.com/packages/yireo-magento2-salesblock2-by-geo)
```

###  Alternatives

[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[yireo/magento2-emailtester2

Preview transactional emails and test send them in your backend

33394.9k](/packages/yireo-magento2-emailtester2)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96151.6k3](/packages/yireo-magento2-extensionchecker)[yireo/magento2-disablelog2

Magento 2 module to disable customer logging

31357.4k](/packages/yireo-magento2-disablelog2)[yireo/magento2-graph-ql-rate-limiting

Magento 2 module to add rate limiting to GraphQL resources

1419.8k](/packages/yireo-magento2-graph-ql-rate-limiting)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
