Several techniques help prevent spam:
- Use banned word filters:
@banned = ("viagra", "casino", "spam");
- Block suspicious IPs:
@blocked_ips = ("192.168.1.1");
- Add a simple math question: Human verification
- Require valid email format
- Enable moderation: Review entries before publishing
Tip: Combine multiple techniques for best protection.