Q3: How do I prevent spam entries?

Answer

Several techniques help prevent spam:

  1. Use banned word filters:
    @banned = ("viagra", "casino", "spam");
  2. Block suspicious IPs:
    @blocked_ips = ("192.168.1.1");
  3. Add a simple math question: Human verification
  4. Require valid email format
  5. Enable moderation: Review entries before publishing
Tip: Combine multiple techniques for best protection.
Previous Guestbook FAQ Next