Shopfence
Description
Highlights
About the Extension
A firewall and malware scan for your shop
Shopfence protects the storefront of your shop with a firewall that blocks IP addresses after suspicious activity, a login firewall against brute-force attempts and a malware scan for PHP and JavaScript files. You find the logs and the scan under Extensions > Shopfence in the Administration.
How the firewall blocks IP addresses
With "Enable Firewall" (on by default), the firewall checks storefront requests and blocks an IP address for 30 days (default) if it sends more than 100 requests per minute (default) or uses a blocked user agent. The default list contains curl, wget, python and scrapy as well as the parts bot, crawler and spider.
- Blocked IP addresses are redirected to an "Access Denied" page, also for pages from Shopware's own HTTP cache (not with an external reverse proxy)
- On cached pages only existing blocks are checked; the rate limit and the user agent check apply to requests that are not served from the cache, and 0 switches the rate limit off
- User agents on the allow list, such as googlebot or bingbot, skip the firewall checks
- Requests whose path starts with /api, /store-api, /widgets or /admin, and requests with an Authorization or x-auth-token header, are not checked, not even for existing blocks
- Blocks end automatically after the set number of days
Login firewall against brute-force attempts
With "Login Firewall" (on by default), the plugin logs customer login attempts with IP address, e-mail address and user agent before the password is checked. If one e-mail address receives more than 3 attempts within one minute, from any IP, the IP address behind the attempt that exceeds the limit is blocked for 60 minutes (both default).
- Successful logins are removed from the log, so it shows only failed attempts
- The firewall enforces login blocks, so "Enable Firewall" must stay on
- The block applies to the storefront; logins through the Store API are logged and counted, but not blocked by Shopfence
- Both values (attempts and duration) are adjustable in the plugin configuration
Malware scan for PHP and JavaScript files
"Look for malware" in the Malware tab scans .php and .js files in public, custom/plugins, var and files, 1,000 files per step, while the page shows the progress.
- PHP: dynamic eval and command execution, command backdoors in request parameters, PHP upload backdoors, heavily obfuscated code, web shells and mass mailers
- PHP with request data: long base64 strings and dynamic create_function calls
- JavaScript: eval with atob, unescape or String.fromCharCode, crypto-mining code and iframe injection via document.write; JS files that look minified are skipped
- Skipped: folders named vendor, node_modules, cache or tests, paths with test, tmp, backup, docs or phpunit, *.min.js, hidden files, files of 5 MB or more, PHP files with syntax errors, and files with framework or license signatures such as Shopware\Core, @copyright or @license MIT, which covers most plugin PHP files
- A finding per file is stored, and a new scan replaces the results of the previous one
Firewall log, blocked IPs and statistics
The module has five tabs: Statistics, Blocked IPs, Firewall Log, Malware and Login attempts.
- Statistics shows how many entries the lists Blocked IPs, Firewall Log, Login attempts and Malware contain
- Blocked IPs lists IP address, reason (rate limit, blocked user agent or login attempt) and time, including blocks that have already expired
- "Unblock" removes the block for an IP address you enter, "Delete blocked IPs" lifts all blocks
- Firewall Log shows IP address, URI, method, user agent and time of firewall events, with at most one entry per blocked IP every 5 minutes
- Malware lists file name, issue, severity and scan time; the full path appears on hover
- Times appear as "5 minutes ago", the full user agent and the exact time on hover
Firewall settings and stored data
The settings in the plugin configuration apply to the whole shop. In the comma-separated user agent lists, an entry matches as soon as it appears anywhere in a user agent, regardless of upper or lower case.
- Logs, blocks and scan results are stored in four database tables without automatic cleanup
- Uninstalling without keeping the app data drops these tables and removes the settings
Details
- Available: English, German
- Latest update: 2 November 2026
- Publication date: 4 August 2025
- Version: 1.1.0
- Category: Administration
Resources
Reviews (0)
About the Extension Partner
weedesign
Partner Status
-
Shopware
Extension Partner
Details
- Ø-Rating: 4.9
- Partner since: 2019
- Extensions: 71
Support
- Based in: Germany
- Speaks: German, English
- Response time: Very quickly