This is an old revision of the document!
Table of Contents
Stop spam from bots (pun_stop_bots)
- 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
- For storing questions and answers Forum's cache is used.
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_ROO>cahce/cache_pun_stop_bots.php
- Structure
- cached - time of cache creating
- associative array with question and answers.
Interface
- Administration stop bots questions page
- 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.