Bitcoin Forum
April 28, 2024, 12:05:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 74 »
  Print  
Author Topic: [ANN] FaucetBOX.com - API & faucet script, create your own crypto faucet  (Read 119977 times)
NeedIfFindIt
Full Member
***
Offline Offline

Activity: 500
Merit: 100



View Profile
November 12, 2014, 01:11:43 AM
 #101

Cloudflare does not allow direct IP access.

By direct access I mean replacing:
Code:
fsockopen('ssl://faucetbox.com', 443);

With:
Code:
fsockopen('ssl://104.28.29.86', 443);

This is for the modified MicroFaucet Websites.


The "Faucet in a Box" script is using CURL and needs different approach.
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714262708
Hero Member
*
Offline Offline

Posts: 1714262708

View Profile Personal Message (Offline)

Ignore
1714262708
Reply with quote  #2

1714262708
Report to moderator
1714262708
Hero Member
*
Offline Offline

Posts: 1714262708

View Profile Personal Message (Offline)

Ignore
1714262708
Reply with quote  #2

1714262708
Report to moderator
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 01:35:21 AM
 #102

By now, the problem seems to be:
https://faucetbox.com/api/v1/ => {"status":404,"message":"Invalid API method"}
And I guess the webmaster is sleeping because it is very late in Poland.
However, a few faucets work but most do not. I would like why.

I make sustainable faucets (and other things). Bitmachine.org
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 12, 2014, 06:17:57 AM
Last edit: November 12, 2014, 06:40:50 AM by Kazuldur
 #103

But that's because it uses the Cloudflare nameservers. Real IP of Faucetbox.com is 185.25.151.163.  He have other sites running in that ip.

This is not the current FaucetBOX.com server. You can only access current FaucetBOX.com server through CloudFlare IPs.

There are also some DB encoding issues. Roman-CATOШ became Roman-?Huh??

I'll check that.


The other LOL thing is that today you have paid TWICE to the same users and I still see the amount as pending in FaucetBox Shocked

Just compare the top addresses:
https://blockchain.info/tx-index/2bc4e56a11a5d0778317404008b2a58a87d142635623b6b2853dacb287476470

https://blockchain.info/tx-index/102ce970ffea743285e14c73cd4de42edafd0459f563dbb65de5b4373eb40481


I'm aware of this.

However I'll not able to do anything for a few hours, please be patient.

Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
pvbhat47
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 12, 2014, 08:17:15 AM
 #104

Transfer all my balance from Microwallet .org to FaucetBox.com
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 10:04:36 AM
 #105

My faucet still not working  Huh

Error connecting to FaucetBOX.com API.

I make sustainable faucets (and other things). Bitmachine.org
NeedIfFindIt
Full Member
***
Offline Offline

Activity: 500
Merit: 100



View Profile
November 12, 2014, 12:11:12 PM
 #106

My faucet still not working  Huh

Error connecting to FaucetBOX.com API.


Try to run this on the server and report the result. https://bitcointalk.org/index.php?topic=844119.msg9513928#msg9513928

Also what is using your faucet "modified microfaucet" or "faucet in a box" script or custom script?
septian123
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
November 12, 2014, 12:24:46 PM
 #107

huhh i'm tired  Undecided  my faucet not working,,,,  how long we have to wait? 1 month? 2 months or 1 year? or 1 century ?  hey admin please fix this problem shortly !   Sad








http://garudabitcoin.pw/go
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 12:33:59 PM
 #108

My faucet still not working  Huh

Error connecting to FaucetBOX.com API.


Try to run this on the server and report the result. https://bitcointalk.org/index.php?topic=844119.msg9513928#msg9513928

Also what is using your faucet "modified microfaucet" or "faucet in a box" script or custom script?

Thank  you NeedIfFindIt. Here it is:

Code:
Plumber FB Diagnostic Tool 0.9b by NeedIfFindIt

PHP Version: 5.4.4-14+deb7u14
OPENSSL Version: OpenSSL 1.0.1e 11 Feb 2013
allow_url_fopen: Success
DNS Response: 185.25.151.163

--- Trying FSOCKOPEN - HTTP ---
Success

--- Trying FSOCKOPEN - HTTPS - IP method ---
Success

--- Trying FSOCKOPEN - HTTPS - gethostbyname method ---
Fail: Banned. Solution:
- Contact support@faucetbox.com

--- Trying FSOCKOPEN - HTTPS ---
Fail: Banned. Solution:
- Contact support@faucetbox.com

If you are unable to help yourself please kindly post all the content above at: https://bitcointalk.org/index.php?topic=844119.0;all
Don't forget to delete this file.



I am more confused now. Banned ??


I make sustainable faucets (and other things). Bitmachine.org
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 12, 2014, 12:46:43 PM
Last edit: November 12, 2014, 12:57:10 PM by Kazuldur
 #109


Thank  you NeedIfFindIt. Here it is:

Code:
Plumber FB Diagnostic Tool 0.9b by NeedIfFindIt
...
DNS Response: 185.25.151.163
...

I am more confused now. Banned ??



I don't know why he called this 'Banned', but 185.25.151.163 is the old IP address. You have to wait until your DNS update our IP.


Update: registration is fixed, I'm working now on fixing the double transaction.

Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 12:47:41 PM
 #110

huhh i'm tired  Undecided  my faucet not working,,,,  how long we have to wait? 1 month? 2 months or 1 year? or 1 century ?  hey admin please fix this problem shortly !   Sad
http://garudabitcoin.pw/go

Your site is working for me.

I make sustainable faucets (and other things). Bitmachine.org
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 12:55:16 PM
 #111

I don't know why he called this 'Banned', by 185.25.151.163 is the old IP address. You have to wait until your DNS update our IP.

So I can only wait. It will be a long day.

I make sustainable faucets (and other things). Bitmachine.org
NeedIfFindIt
Full Member
***
Offline Offline

Activity: 500
Merit: 100



View Profile
November 12, 2014, 01:00:27 PM
 #112

I am more confused now. Banned ??

The script is not getting the right answer from the old host = probably banned (from the old host)

You missed answering the question:
What is using your faucet "modified microfaucet" or "faucet in a box" script or custom script?
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 01:02:43 PM
 #113

NeedItFindIt: I am using FaucetInABox Script (only template is modified).

I make sustainable faucets (and other things). Bitmachine.org
macaron
Hero Member
*****
Offline Offline

Activity: 580
Merit: 500


View Profile
November 12, 2014, 01:17:32 PM
 #114

I keep getting the error that says can't connect to faucetbox api. I am using the faucetbox script please help
NeedIfFindIt
Full Member
***
Offline Offline

Activity: 500
Merit: 100



View Profile
November 12, 2014, 01:28:53 PM
 #115

NeedItFindIt: I am using FaucetInABox Script (only template is modified).

Try this if you want:

Make a backup of:
Code:
libs/faucetbox.php

Then open:
Code:
libs/faucetbox.php

Replace:
Code:
    public function __exec($method, $params = array()) {
        $params = array_merge($params, array("api_key" => $this->api_key, "currency" => $this->currency));

        $ch = curl_init($this->api_base . $method);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

        $response = json_decode(curl_exec($ch), true);
        $this->last_status = $response['status'];
        curl_close($ch);

        return $response;
    }

By:
Code:
    public function __exec($method, $params = array()) {
        $params = array_merge($params, array("api_key" => $this->api_key, "currency" => $this->currency));

        $ch = curl_init('https://104.28.29.86/api/v1/');
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: faucetbox.com'));
        //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

        $response = json_decode(curl_exec($ch), true);
        $this->last_status = $response['status'];
        curl_close($ch);

        return $response;
    }

If it still does not work then uncomment
Code:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

Wait max 3 days for the DNS and restore the original file.
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 01:44:15 PM
 #116

Thank you NeedItFindIt for your kind help.
Unfortunately, still don't work (commenting or uncommenting that line)
https://104.28.29.86/api/v1/ goes to a Cloudflare error. Faucet remains unworking.


I make sustainable faucets (and other things). Bitmachine.org
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 01:53:02 PM
 #117

Well, suddenly is working. I love you all so much.  Grin

I make sustainable faucets (and other things). Bitmachine.org
NeedIfFindIt
Full Member
***
Offline Offline

Activity: 500
Merit: 100



View Profile
November 12, 2014, 01:54:39 PM
 #118

Thank you NeedItFindIt for your kind help.
Unfortunately, still don't work (commenting or uncommenting that line)
https://104.28.29.86/api/v1/ goes to a Cloudflare error. Faucet remains unworking.



Ofc that when you open in the browser https://104.28.29.86/api/v1/ it goes to Cloudflare error.

But the script opens connection to 104.28.29.86:443 and then replaces Host: faucetbox.com

Then CURLOPT_SSL_VERIFYPEER disables the https domain check.

plumber-curl.php
Code:
<?php

        $params 
array_merge(array("api_key" => ''"currency" => 'BTC'));

        
$ch curl_init('https://104.28.29.86/api/v1/');

        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDS$params);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);

        
curl_setopt($chCURLOPT_HTTPHEADER, array('Host: faucetbox.com'));

        
$response json_decode(curl_exec($ch), true);

        
curl_close($ch);

        
print_r($response);

?>


Returns:
Code:
Invalid API method

So it works for me.
sofocles
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile WWW
November 12, 2014, 02:04:07 PM
 #119

Thank  you very much, NeedItFindIt

I make sustainable faucets (and other things). Bitmachine.org
evelyndear2014
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 12, 2014, 02:18:04 PM
 #120

 when in want to log into faucet box, out the information below. how responses admin?
FaucetBOX.com is moving to another datacenter. "Sorry for inconvienience.
Contact us on Bitcointalk.org for now"
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 74 »
  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!