Gotcha 👍 PrestaShop makes this pretty straightforward, and you don’t need any module for it.
Here’s the clean, official way to put your site in maintenance mode while allowing specific IP addresses.
Method 1: From Back Office (Recommended)
Step 1: Enable Maintenance Mode
- Log in to Back Office
- Go to
Shop Parameters → General - Find Maintenance
- Set:
- Enable shop → ❌ No
- Maintenance IP → add allowed IPs (explained below)
- Click Save
Your shop is now in maintenance mode.
Step 2: Allow Access by IP Address
In the Maintenance IP field:
- Enter one or more IP addresses
- Separate multiple IPs with commas
Example:
49.36.123.45, 103.21.44.8
Only these IPs will see the website normally.
Everyone else sees the maintenance page.
Step 3: Find Your IP Address
From your own computer:
- Visit 👉 https://whatismyipaddress.com
- Copy the IPv4 address (not IPv6 unless you’re sure)
If your IP changes often, add your office network IP or ISP range.
Method 2: Allow Access via config file (Advanced)
If you’re locked out of Back Office or want a fallback:
- Open:
/config/defines.inc.php
- Find:
define('_PS_MODE_DEV_', false);
- Maintenance mode is controlled by:
/app/config/parameters.php (PS 1.7+)
But IP whitelisting is best handled from Back Office, not here.
Customize Maintenance Page (Optional)
To edit the maintenance message:
- Go to
Shop Parameters → General → Maintenance - Or override template:
/themes/your-theme/templates/errors/maintenance.tpl
Common Gotchas ⚠️
✔ Clear cache after enabling:
Advanced Parameters → Performance → Clear cache
✔ If using Cloudflare / CDN, your real IP may be hidden
→ Add Cloudflare IP ranges or enable “Restore Visitor IP”
✔ Mobile data IP ≠ Wi-Fi IP
→ Add both if needed
