Skip to content
Work / Shopware Plugin: Storefront Access Protection

Shopware Plugin: Storefront Access Protection

Role
Architect & developer
Year
2023
Technologies
Shopware 6, Open Source

Development of a Shopware Plugin: Access Protect any Shopware 6 Storefront

The challenge

Locking down entire Shopware 6 staging and pre-launch storefronts — with both password and IP rules (IPv4/IPv6, subnets, prefixes), reusing existing admin users, and working correctly behind reverse proxies.

My role

Architected and built an open-source Shopware 6 plugin that gates the storefront behind password protection plus an IP whitelist, reusing the existing admin user base with role-based exemptions and trusted-proxy support.

The outcome

Published free and open source on GitHub and via the Shopware Store, downloaded over 215 times with a 5.0/5 rating across five reviews.

Context

Staging, testing and pre-launch Shopware 6 environments are often publicly reachable, risking exposure of unfinished shops to visitors and search-engine crawlers. Teams needed a lightweight way to lock down an entire storefront without standing up separate authentication infrastructure.

Challenge

Access control had to cover the whole storefront and support both password protection and IP-based rules — IPv4 and IPv6, including subnet masks and IPv6 prefixes. Crucially, it had to reuse Shopware’s existing administration users rather than introduce a parallel user database, and it had to behave correctly behind reverse proxies and load balancers, where the visitor’s real IP is otherwise masked by the proxy.

Approach

I built the plugin to gate the entire storefront behind password protection plus an IP whitelist, with role-based exemptions for administrators and authorised roles. Authentication leverages the existing Shopware admin user base, so there is no separate user management to maintain. IP rules accept IPv4 and IPv6 addresses, subnet masks and IPv6 prefixes; for proxied setups, the proxy is configured as a trusted proxy via environment variables so the genuine client IP is evaluated. Setup is deliberately minimal — no extra modules — and the plugin ships in English and German, compatible with Shopware 6.5 through 6.7.

Outcome

Storefront Access Protection is published as free, open-source software on GitHub and distributed via the Shopware Store. It has been downloaded over 215 times and holds a 5.0/5 rating across five reviews, giving Shopware teams a quick, dependable way to protect test and staging environments.

Related Work

Shopware 6 Relaunch with 150,000 Products

Software engineer

Stable relaunch within the deadline; scalable catalogue and integration architecture ready for further growth.

Read case study

Rapid Relaunch for a Cruise Company

Lead developer & architect

Relaunched on time with no downtime or data loss — a secure, PCI DSS-compliant, containerised Shopware 6 platform with a reproducible CI/CD workflow tailored to a regulated corporate environment, handed over to the client's internal team.

Read case study

Ready to discuss your project?

Book a 30-minute intro call. No obligation, no sales pitch.