PrestaShop GEO Website Protection is the security module that limits access to your shop from unwanted countries and IP addresses. Control who can open your storefront and your back office based on geographic location.
The module restricts access to your PrestaShop shop based on the country a visitor's IP address belongs to. Block whole countries on the storefront, keep the back office closed to the countries your team never works from, or send visitors from a country to the right language version of your shop.
Most attacks on online shops target the back office login. Closing the back office to countries you do not work from removes almost all brute force attempts, and the check runs before PrestaShop starts, so blocked traffic costs your server almost nothing.
Country lookups use a database stored on your own server. No visitor data is sent to any external service.
When siteguarding.com cannot be reached, the Settings tab installs the SiteGuarding security agent from the extension package and now reports it as installed, instead of showing an error.
The country list now includes every country the GeoIP database knows, among them Serbia, Montenegro, Kosovo, Saint Martin and Sint Maarten. The United Kingdom now uses its correct code GB, so it is blocked when selected; settings saved with the old code UK are converted automatically after the update.
The SiteGuarding security agent (siteguarding_tools.php) is now added to the website root only when the module is installed and the site does not have it yet. An existing file is never replaced: the agent keeps itself up to date. The Settings tab offers "Install the agent" only while the agent is missing.
Version 1.0.0 is the first release of GEO Website Protection for PrestaShop 1.7.8, 8 and 9, with the same features and interface as the WordPress, Joomla and OpenCart editions.
The module has separate switches for the storefront and the back office, a country picker with search and continents, GEO redirects, IP rules with wildcards and CIDR ranges for IPv4 and IPv6, activity charts and a live preview of the block page. Forwarded headers such as X-Forwarded-For are read only from a trusted proxy, and shops behind Cloudflare work with no setup. The check runs before PrestaShop starts, and your settings are kept when you update the module.
| Feature | Free Version | Full Version |
|---|---|---|
| Storefront protection by country | Up to 5 countries | Unlimited |
| Back office protection by country | Up to 5 countries | Unlimited |
| Block and allow lists by IP address, wildcard and CIDR range | ||
| Search engine crawler ranges in one click | ||
| GEO redirects by country | Up to 5 countries | Unlimited, with exceptions by IP address and URL |
| Never filter selected storefront pages (payment callbacks) | ||
| Activity log and charts | ||
| Custom block page with your logo and text | ||
| GEO database updates | By hand, once every 30 days | Automatic |
| Remove the SiteGuarding link on the home page | ||
| Support and help | Email only | Email and Live Chat |
Download the free version to get started with geographic access control, or get the full version for unlimited countries and IP lists.
1. In the back office, open Modules > Module Manager and click Upload a module.
2. Select siteguardinggeoprotection.zip. PrestaShop installs the module; then click Configure.
Updating from an earlier version
Upload the new file the same way, in Modules > Module Manager > Upload a module. Your settings and the activity log are kept.
Requirements
PrestaShop 1.7.8 or newer (8 and 9 included) with PHP 7.2 or newer. During installation the module adds one line to config/defines_custom.inc.php, or creates that file if the shop does not have it, and keeps a copy of the original file. The config folder must be writable at that moment.