Translations of this page: en bg cs de fi fr hu it ja pl ru tr zh

This is an old revision of the document!


Stop spam from bots (pun_stop_bots)

PunBB 1.3 official extension

  • Status: stable
  • Current version: 0.1

General idea

The extension will prompt some questions to prevent bots from registering and posting.

Specification

pun_stop_bots 0.1

General

  • Asks a question at the last stage of registration;
  • Asks a question when a user creates new topics or posts. For registered users, a special cookie is set for 2 weeks which allows them to post without answering questions;
  • Forum's cache is used for storing questions and answers.

Database

  • New table pun_stop_bots_questions
Field Type Default Description
id INT(10) Auto-incrementing question ID.
question TEXT Question.
answers TEXT The answers, separated with commas.
  • Additional fields in users table
Field Type Default Description
pun_stop_bots_question_id INT(10) ID of the question the user is asked. This field is used for cookie validation.
  • Additional fields in online table
Field Type Default Description
pun_stop_bots_question_id INT(10) ID of the question the user is asked. This field is used for comparing answers when the user wants to register, and for comparing answers of guests.

Question cache

  • Stored in <FORUM_ROOT>cahce/cache_pun_stop_bots.php
  • Structure
    • cached - time of cache creation;
    • associative array with question and answers.

Interface

  • Stop bots questions administration page
    • Settings → Stop bots questions;
    • Fields for adding new questions and answers;
    • A list with existing questions and answers, users can update or remove questions;
    • There can be several answers to a question. The answers should be separated with commas.
  • Question page
    • All the POST-parameters that were sent to the forum are stored in form of hidden fields on this page;
    • A field for answers to a question. Answer comparison is case-insensitive.

Links

Screenshots

Stop bots questions administration page

Question page


Personal Tools