On busy sites the visitor log table can grow quickly. Shorten retention to keep the database smaller.
Steps
- Go to Security Ninja → Firewall.
- Open the Visitor Logging section / tab.
- Confirm Track visitors is on if you want logging at all.
- Set Keep visitor logs for to 1, 3, 7, or 14 days.
- Save settings.
Default retention is 7 days.
Security Ninja runs an automated cleanup daily (secnin_prune_visitor_log) to remove rows older than your retention setting.
You can turn Track visitors off to stop writing new rows. To wipe the table immediately, use Clear visitor log on Security Ninja → Tools.

