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 ask some questions to prevent bot registration and posting.

Specification

pun_stop_bots 0.1

General

  • Ask some question at the last stage of registration process;
  • Ask some question, when user create new topics or posts. For registered user special cookie is set for 2 weeks, which allows 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-increment question ID.
question TEXT The question.
answers TEXT The answers, separated with commas.
  • Additional fields in users table
Field Type Default Description
pun_stop_bots_question_id INT(10) Question id, which was asked user. The field is used for cookie validation.
  • Additional fields in online table
Field Type Default Description
pun_stop_bots_question_id INT(10) Question id, which was asked user. The field is used for comparing answers, when user want 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 creating;
    • associative array with question and answers.

Interface

  • Stop bots questions administration page
    • Settings →Stop bots questions;
    • Fields for adding new question and answers;
    • The list with existing questions and answers, user can update or remove the question;
    • There are can be several answers on one question. The answers should be separated with commas.
  • Question page
    • At this page all POST-parameters, which was send to forum, are stored in form hidden fields;
    • Field for answer to question. Answer comparison is case-insensitive.

Links

Screenshots

Stop bots questions administration page

Question page


Personal Tools