Magento 2 Firewall: control over who comes to your store
The module records every visitor and every request and lets the admin block IPs and whole ranges right from the Magento admin — before the request is processed.
TypeOpen-source Magento 2 module
StackPHP 8.1, Magento 2.4
LicenseMIT
Year2026
Task and solution
Magento stores are constantly hit by bots, scrapers and password guessers. They load the server, and the owner can't see who is doing it or cut them off quickly without server access.
The goal was a simple admin tool: see IPs and requests and block them in one click across every entry point to the store.
- Tracking of every IP (IPv4 and IPv6): first and last visit, request count
- Request log: IP, URL, method, area, User-Agent, response status
- Blocking of single IPs and wildcard ranges (160.79.106.*), even before their first visit
- Blocking applies to the storefront, admin, REST, SOAP and GraphQL
- Real client IP behind Cloudflare or a proxy, plus an allowlist to avoid locking yourself out
- Admin grids with filters and mass actions
- Checker-chain architecture: blocking by country, User-Agent or rate is one new class
The module in numbers
5entry points protected: storefront, admin, REST, SOAP, GraphQL
4admin grids
1click to block an IP
Want the same result?
Tell me about your task or estimate the cost in the calculator.