Bitcoin Forum
September 23, 2025, 06:47:45 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Micro Earnings / Re: [Updated 07/nov/2015] Faucet Owners Against Scammers and Bots on: November 09, 2015, 07:18:30 PM
snip
It seems that you're trying to show us thumbnail images rather than the full size. Try using a simple uploader like Imgur to upload your images and we can try to help you.

Oh, my bad. I edit my post with full size links. Thanks minifrij.
2  Economy / Micro Earnings / Re: [Updated 07/nov/2015] Faucet Owners Against Scammers and Bots on: November 09, 2015, 07:05:15 PM
Hello there.

First of all, thanks for this post. As I will launch soon my very first faucet, it helps me a lot in order to avoid my faucetto be dry by bots.
But I need some clarifications about this:


Real AntiBot Links

Download & unpack:
http://bit.makejar.com/labs/anti-bot-links-200/antibotlinks.zip


Code:
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:
</head>

Add before:
<?php
# AntiBotLinks START
?>

<script style="text/javascript">
$(function() {
  var clicks = 0;
  $('.antibotlinks').click(function() {
    clicks++;
    $('#antibotlinks').val($('#antibotlinks').val()+' '+$(this).attr('rel'));
    if(clicks == <?php echo $antibotlinks->get_link_count(); ?>) {
      var rand = Math.floor((Math.random() * clicks) + 1);
      var button = '<input type="submit" class="btn btn-primary btn-lg" value="Get Reward!">';
      var z=0;
      $('.antibotlinks').each(function(){
        z++;
        if (z==rand) {
          $(this).replaceWith(button);
        }
      });
      
    }
    $(this).hide();
    return false;
  });
});
</script>
<?php
# AntiBotLinks END
?>



Find:
                            <?php if(!$data["captcha_valid"]): ?>
                            <p class="alert alert-danger">Invalid captcha code!</p>
                            <?php endif; ?>


Add after (the input field must be between <form> and </form>):

<?php
# AntiBotLinks START
?>

                            <input type="hidden" name="antibotlinks" id="antibotlinks" value="" />
                            <?php if(!$antibotlinks->is_valid()): ?>
                            <p class="alert alert-danger">Invalid AntiBot verification!</p>
                            <?php endif; ?>
<?php
# AntiBotLinks END
?>



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

<?php
# AntiBotLinks START
?>

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


And finally remove the default CLAIM button :)

Thanks to NeedIfFindIt


What are supposed to be the effect of this one ?
I don't know if I do right but I've got this appearing on my faucet:

https://i.imgur.com/jxcVefV.png

And when I tried to claim from my faucet, I've got this one appearing:

https://i.imgur.com/K5VPo1f.png

Is this supposed to happen ? If not, can you tell me where I could be wrong.

Thanks for your answers Smiley
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!