PHP Classes
elePHPant
Icontem

PHP Bot Protection: Detection of bot users asking predefined questions

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-10-21 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 452 This week: 1All time: 5,935 This week: 627Up
Version License PHP version Categories
bot-protection 0.15Artistic License5PHP 5, Validation, Security
Description Author

This class can perform detection of bot users asking predefined questions.

It loads a PHP script with arrays of predefined questions and answers.

The class can pick a random question to be presented to the user and validate the answer by checking the list of questions loaded initially.

Name: Robert Beran <contact>
Classes: 1 package by
Country: Germany Germany
Age: 30
All time rank: 3242190 in Germany Germany
Week rank: 540 Up22 in Germany Germany Up

Details
_____________________________
Botstop 0.7 beta by burncycle
______________________

Changelog Version 0.7 Beta (25.09.15):

---------------------------

- Fixed Major Bug of bypass botstop without cookies.
- Now you can choose between english and german langauge


Changelog Version 0.6 Beta:

---------------------------

- Added array Numbers to the Answers and Questions Array to better see the connections between them!


Changelog Version 0.5 Beta:

---------------------------

- Add multiple choice questions with | modifier


Changelog Version 0.4 Beta:

---------------------------

- MAJOR BUG: when value is null it dont validate the input!!! Please update!!!


Changelog Version 0.3 Beta:

---------------------------

- Allow Answers case insensitive ...

______________________

1. Hey there this is a little Script to deny Bot Stuff...

2. Just do the following to get it working:

There are default Questions and Answers in German Language only.
These are in the file "answers_questions_de.php" as an array.

And you can modify it like this:

$question[] = "yourquestion";
$answer[] = "youranswer";

Okay thats for custom manipulation..

For more language Packs check: http://blog.beran-solutions.de
___________________________________

3. Okay now how get the Script in your Projects..?

So if you have an formular for some actions you can just do the following stuff:

example.php:
--------

[code]

        <?php

        @session_start();
        
        include "botstop_class.php";

        $botstop = new botstop_class();

        if(!empty($_POST["submit"])) {
        
        if($botstop->is_correct($_POST["answer"])) {
            
            echo "allow<br />";
            
        } else {

            echo "deny<br />";

        }
        
        }
        
        echo "<br />".$botstop->get_question()."<br /><br />";
        
        ?>

...

            <form name="botstop" method="post" action="">
                
                <input type="text" name="answer" />
                <input type="submit" name="submit" />
                
            </form>


...

[/code]

for testing botstop just run the "example.php" file, which is included in the package....

So if you want more stuff and updates just visit my site:

blog.beran-solutions.de
_______________________


have fun - your:

 __        __        __       __        ___ 
|__) |  | |__) |\ | /  ` \ / /  ` |    |__  
|__) \__/ |  \ | \| \__,  |  \__, |___ |___ 
  Files folder image Files  
File Role Description
Accessible without login Plain text file answers_questions.php Conf. File for Answers and Questions
Plain text file botstop_class.php Class Main Class of Botstop
Accessible without login Plain text file example.php Example This is an Example how to use the Botstop Class
Accessible without login Plain text file README Doc. The Readme of the botstop class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:452
This week:1
All time:5,935
This week:627Up