sansec / magento2-module-shield
Installs: 39 927
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 8
Forks: 3
Open Issues: 3
Type:magento2-module
pkg:composer/sansec/magento2-module-shield
Requires
- php: >=7.2
- ext-openssl: *
- magento/framework: *
Requires (Dev)
- phpunit/phpunit: ^8
- dev-main
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-ks/delay-rule-sync
- dev-ks/deduplicate-ips
This package is auto-updated.
Last update: 2025-11-05 18:01:12 UTC
README
Requires Magento 2.3+, PHP 7.2+ and an eComscan account (Advanced or up).
Installation
composer require sansec/magento2-module-shield bin/magento setup:upgrade bin/magento config:set sansec_shield/general/license_key <your license key> bin/magento sansec:shield:sync-rules
Configuration
You can configure your license key and other settings via System → Configuration → Security → Sansec Shield.
Testing & live reports
Test it by visiting your store and add ?SANSEC-SHIELD-TEST to your URL, it should give you "permission denied". You'll see your first blocked attack appear instantly on your Shield Dashboard. If you do not want reports, you can disable it with:
bin/magento config:set sansec_shield/general/report_enabled 0
You can always view detailed logs in var/log/sansec_shield.log.
See for FAQs our Shield guide.
Cron
Shield rules update automatically through the standard Magento cron mechanism. If you are running a standard cron setup (bin/magento cron:run), no further action is required.
If you only run specific cron groups (bin/magento cron:run --group <group name>), make sure to include a cron for the sansec group as well.
You can verify Shield rules sync every 5 minutes in var/log/sansec_shield.log.
License
Sansec Shield is published under the liberal MIT license.