Manage your Sucuri WAF in Prestashop.
- Prestashop >= 1.7.6.0
- PHP >= 7.2.0
Download the pixel_sucuri.zip file from the last release assets.
Go to the admin module catalog section and click Upload a module. Select the downloaded zip file.
Move the downloaded file in the Prestashop modules directory and unzip the archive. Go to the admin module catalog section and search for "Sucuri".
From the module manager, find the module and click on configure.
Field | Description | Required |
---|---|---|
Sucuri API Key | The Sucuri API key | Y |
Sucuri API Secret | The Sucuri API Secret | Y |
Sucuri settings are available under the menu: Advanced settings > Sucuri Settings
Action:
- Flush Sucuri Cache: Allows to flush the Sucuri cache
List:
- Refresh: Refresh the Sucuri config values saved in the local cache
- Update: Update a Sucuri config value
Display Audit Trails under the menu: Advanced settings > Sucuri Logs
Action:
- Refresh: Add the logs for the current day
./bin/console sucuri:log-refresh
It's recommended to refresh the logs hourly using a CRON job.
0 * * * * /path/to/prestashop/bin/console sucuri:log-refresh
./bin/console sucuri:log-clean {retention_period}
Keep logs for the specified number of days in command argument. Default period is 60 days.
./bin/console sucuri:log-clean 30
158 logs purged for a 30-day retention period
It's recommended to clean the logs daily using a CRON job.
0 1 * * * /path/to/prestashop/bin/console sucuri:log-clean 60