The latest antibot-links (5.50) is available here!

Anti-Bot Links 5.00

Hello friends.

The new version includes few small fixes making it easier to install.

Thanks for the suggestions.


Download & unpack:
antibotlinks.zip


Files/folders to add:
/libs/antibotlinks.php
/libs/fonts/



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
/fonts/


To:
/libs/antibotlinks.php
/libs/fonts/




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 START
require_once('libs/antibotlinks.php');
$antibotlinks = new antibotlinks(true'ttf,otf');// true if GD is on on the server, false is less secure, also you can enable ttf and/or otf
if (array_key_exists('address'$_POST)) {
  if (!
$antibotlinks->check()) {
    
// suggested (it is way better to have more word universes than more links)
    // - 3 links for faucets under 1000 satoshi
    // - 4 links for faucets under 2000 satoshi
    // - 5 links for faucets over 2000 satoshi
    
$antibotlinks->generate(3true);// number of links once they fail, the second param MUST BE true
  
}
} else {
  
// suggested (it is way better to have more word universes than more links)
  // - 3 links for faucets under 1000 satoshi
  // - 4 links for faucets under 2000 satoshi
  // - 5 links for faucets over 2000 satoshi
  
$antibotlinks->generate(3);// initial number of links
}
# AntiBotLinks END 




Find:

   $data
['captcha_valid'] &&


add after:

   
# AntiBotLinks START
   
$antibotlinks->is_valid() && 
   
# AntiBotLinks END



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

Find:

</head>


Add before:

<?php
# AntiBotLinks START
$antibotlinks->get_js();
# AntiBotLinks END
?>




Find:

<form ...>


Add after:


<?php
# AntiBotLinks START
?>
                        <?php echo $antibotlinks->show_info(); ?>
<?php
# AntiBotLinks END
?>



Somewhere in the body tag add (you need to do it 3 to 5 times, this is where the links will appear):


<?php
# AntiBotLinks START
?>
                        <div class="antibotlinks"></div>
<?php
# AntiBotLinks END
?>




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 44-51). Just watch the lines above and try to make yours.


Live demo is available here

It will definitely save you few BTC over the time. Why not share some: 1MakeJarmmzLs5gzkQubNJxxx9kQMZpKPr