CRON jobs
Set up these CRON jobs for the component to work automatically:
Downloading/updating the GeoIP databases (IP2Location):- Script:
core/components/iskwaf/elements/cron/ip2location_download.php - Frequency: once a month is recommended (for example, on the 1st of each month).
- Example command:
/usr/bin/php /path/to/your/site/core/components/iskwaf/elements/cron/ip2location_download.php
- Script:
core/components/iskwaf/elements/cron/analyze_ip2location_details.php - Frequency: every 5-15 minutes is recommended so rules are created promptly.
- Example command:
/usr/bin/php /path/to/your/site/core/components/iskwaf/elements/cron/analyze_ip2location_details.php
- Script:
core/components/iskwaf/elements/cron/clear_log.php - Frequency: once a day is recommended.
- Example command:
/usr/bin/php /path/to/your/site/core/components/iskwaf/elements/cron/clear_log.php
- Script:
core/components/iskwaf/elements/cron/reports_daily.php - Frequency: once a day is recommended.
- Example command:
/usr/bin/php /path/to/your/site/core/components/iskwaf/elements/cron/reports_daily.php
Make sure the paths to the PHP interpreter and the scripts are correct for your server.
Using the manager page (CMP)
The IskWaf interface is opened from the main MODX manager menu (usually under “Packages” or “Extras”).
- “Logs” tab: all WAF log records with search, including “Country” and “City” columns for IP addresses with geolocation data.
- Rule tabs (IP, User-Agent, Referrer, Request URI): rule management.
- “Report” tab: daily summary reports.