Post
Topic
Board Micro Earnings
Re: [Updated 17/oct/2015] Faucet Owners Against Scammers and Bots
by
rkandrades
on 18/10/2015, 16:07:21 UTC
I would also want the anti bot script developed by makejar's owner. I'm a faucet owner so you don't have to worry about that.

Since I got over 10 PMs and e-mails that will take ages to respond. I decided to make v2 that is easier to integrate + make it public.

Instructions how to install:
http://bit.makejar.com/labs/anti-bot-links-200/install.php
Code:
Download & unpack:
http://bit.makejar.com/labs/anti-bot-links-200/antibotlinks.zip


Files to add:
/libs/antibotlinks.php


Files to edit:
/index.php
/templates/*theme-name*/index.php


Ok, let's start.

First make a backup of your faucet (everything could go wrong, better safe than sorry).

Then

Copy:
antibotlinks.php

To:
/libs/antibotlinks.php


Now you will need to edit 2 files. I suggest using Notepad++ https://notepad-plus-plus.org/ to edit files but any good editor will do the job.
This is based on FB R60 but should work with newer/older versions.

Open:
/index.php

Find:
        $data['captcha_info'] = $captcha;

add after:
        # AntiBotLinks
        require_once('libs/antibotlinks.php');
        $antibotlinks = new antibotlinks(true);// true if GD is on on the server, false is less secure
        if (array_key_exists('address', $_POST)) {
          if (!$antibotlinks->check()) {
            $antibotlinks->generate(5, true);// number of links once they fail to solve min 3 - max 5, the second param MUST BE true
          }
        } else {
          $antibotlinks->generate(3);// initial number of links min 3 - max 5
        }


Find:
           $data['captcha_valid'] &&

add after:

           # AntiBotLinks
           $antibotlinks->is_valid() &&
          

Open:
/templates/*theme-name*/index.php

Find:


Add before:
# AntiBotLinks START
?>


# AntiBotLinks END
?>



Find:
                            if(!$data["captcha_valid"]): ?>
                            

Invalid captcha code!


                            endif; ?>


Add after (the input field must be between
and
):

# AntiBotLinks START
?>

                            
                            if(!$antibotlinks->is_valid()): ?>
                            

Invalid AntiBot verification!


                            endif; ?>
# AntiBotLinks END
?>



Somewhere between
and
add (you need to do it 5 times, this is where the links will appear):

# AntiBotLinks START
?>

                        echo $antibotlinks->show_link(); ?>
# AntiBotLinks END
?>


And finally remove the default CLAIM button :)



What's the idea behind?

The idea is to make each faucet unique. It is easy for a faucet owner to add new unique logical puzzles by editing antibotlinks.php (line 32-38). Just watch the lines above and try to make yours.

Live demo:
http://bit.makejar.com/labs/anti-bot-links-200/

If anybody has difficulties installing please contact me.

Thank you, friend.

This information is pinned in this topic now.

Guys, just remember. Be carefull at put these links next to Adsense Ads. This is prohibited.