Pages:
Author

Topic: [ANN] FaucetBOX.com - API & faucet script, create your own crypto faucet - page 69. (Read 119991 times)

full member
Activity: 500
Merit: 100
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:

        $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.
full member
Activity: 167
Merit: 100
Well, suddenly is working. I love you all so much.  Grin
full member
Activity: 167
Merit: 100
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.

full member
Activity: 500
Merit: 100
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.
hero member
Activity: 580
Merit: 500
I keep getting the error that says can't connect to faucetbox api. I am using the faucetbox script please help
full member
Activity: 167
Merit: 100
NeedItFindIt: I am using FaucetInABox Script (only template is modified).
full member
Activity: 500
Merit: 100
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?
full member
Activity: 167
Merit: 100
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.
full member
Activity: 167
Merit: 100
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.
legendary
Activity: 971
Merit: 1000

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.
full member
Activity: 167
Merit: 100
My faucet still not working  Huh

Error connecting to FaucetBOX.com API.


Try to run this on the server and report the result. https://bitcointalksearch.org/topic/m.9513928

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 [email protected]

--- Trying FSOCKOPEN - HTTPS ---
Fail: Banned. Solution:
- Contact [email protected]

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 ??

newbie
Activity: 49
Merit: 0
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
full member
Activity: 500
Merit: 100
My faucet still not working  Huh

Error connecting to FaucetBOX.com API.


Try to run this on the server and report the result. https://bitcointalksearch.org/topic/m.9513928

Also what is using your faucet "modified microfaucet" or "faucet in a box" script or custom script?
full member
Activity: 167
Merit: 100
My faucet still not working  Huh

Error connecting to FaucetBOX.com API.
newbie
Activity: 2
Merit: 0
Transfer all my balance from Microwallet .org to FaucetBox.com
legendary
Activity: 971
Merit: 1000
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.
full member
Activity: 167
Merit: 100
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.
full member
Activity: 500
Merit: 100
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.
sr. member
Activity: 294
Merit: 250
***THIS ACCOUNT IS NO LONGER ACTIVE***
full member
Activity: 167
Merit: 100
Cloudflare does not allow direct IP access.
Pages:
Jump to: