Bitcoin Forum
July 12, 2024, 09:43:59 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: All Answers 4 Faucet Makers--> "improved"  (Read 1237 times)
Gifted (OP)
Hero Member
*****
Offline Offline

Activity: 504
Merit: 501



View Profile
May 27, 2016, 01:23:15 AM
 #21

Thank you for the guide. I wrote my own faucet and I am adding features to it every day. At the moment I am not breaking even but I have only one ad and I am carefully doing the maths before adding others.

I am interested in how  bots can empty a faucet... do they really solve captchas or they use a captcha solving service? Do they switch ips and wallets?
here is the code i use to stop bots in the main index

Code:
//Checks that the username is not empty
  if (!isset($_POST['username'])||$_POST['username']=="") {
    $view['main']['result_html'] = '<div class="row text-center"><div class="col-sm-6 col-md-offset-3 bg-danger"><p>Missing email address!</p></div></div>';
    $message                     = "Missing email address";
    goto error;
  }

  $username = $_POST['username'];
   //Checks if the user has written something in the captcha box

  $captchaChallange = $_POST['adcopy_challenge'];
  $captchaResponse  = $_POST['adcopy_response'];

  if (empty($captchaChallange) || empty($captchaResponse)) {

    $view['main']['result_html'] = '<div class="row text-center"><div class="col-sm-6 col-md-offset-3 bg-danger"><p>Missing captcha, try again!</p></div></div>';
    $message                     = "Missing captcha";
    goto error;
  }


  $response = @file('http://verify.solvemedia.com/papi/verify?privatekey=' . $settings['solvemedia_verification_key'] . '&challenge=' . rawurlencode($captchaChallange) . '&response=' . rawurlencode($captchaResponse) . '&remoteip=' . $ip);

  if (!isset($response[0]) || trim($response[0]) === 'false'){
    $view['main']['result_html'] = '<div class="row text-center"><div class="col-sm-6 col-md-offset-3 bg-danger"><p>Wrong captcha!</p></div></div>';
    $message                     = "Wrong captcha";
  }
//We do not allow proxy here is what bots use !!!!
 if(@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errstr, $errno, 1))
{
  $view['main']['result_html'] = '<div class="row text-center"><div class="col-sm-6 col-md-offset-3 bg-danger"><p>Bots Not Allowed !!</p></div></div>';
    $message                     = "Proxy";
    goto error;
  }
  $q = $sql->prepare("select * from users where LOWER(username) = LOWER(?) or ip = ? order by claimed_at desc");
  $q->execute(array($username,$ip));
  $row = $q->fetch();
  //timer check

  if ($row === null || $row['claimed_at'] <= $time - ($settings['timer'] * 60)) {
    $amount = intval($rewards['random_reward']);


    $response = pay($username,$amount,"Earnings from XXX, payed through Xapo!");
    try{
      $message=$response->message;

      if(!$response->success){
        $success = 0;
      }
      else{
        $success = 1;
      }
Gifted (OP)
Hero Member
*****
Offline Offline

Activity: 504
Merit: 501



View Profile
May 27, 2016, 01:28:39 AM
 #22

this is good guide fir each people who want to running faucet, anyway are you have guide to make bitcoin list site ?
im interesting to make 1 website wtih faucet list
Making a list is easy...... look up tables in html and make your list  or you can cheat and go to someone else's list and right click "view page source" and steal the code,modify a little with your ref number, colors etc
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!