Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: sant0s80 on October 09, 2013, 05:13:22 PM



Title: Blockchain receive API and CloudFlare
Post by: sant0s80 on October 09, 2013, 05:13:22 PM
Anyone had problems with those two ? Getting this:

Error Response 403 body:
Error 1010
Access denied
What happened?

The owner of this website (site.com) has banned your access based on your browser's signature (xxx).


Is it possible to avoid it? I don't want to fully trigger off my cloudflare protection.
Thanks in advanced



Title: Re: Blockchain receive API and CloudFlare
Post by: piuk on October 09, 2013, 07:53:21 PM
Anyone had problems with those two ? Getting this:

Error Response 403 body:
Error 1010
Access denied
What happened?

The owner of this website (site.com) has banned your access based on your browser's signature (xxx).


Is it possible to avoid it? I don't want to fully trigger off my cloudflare protection.
Thanks in advanced

Cloud you PM me your ip address.

You should normally only receive this error if you have vastly over exceeded the request limits.


Title: Re: Blockchain receive API and CloudFlare
Post by: sant0s80 on October 10, 2013, 11:11:57 AM
For sure didn't exceeded limit... This is what I get on http://blockchain.info/api/api_receive while testing. Now my host has changed something (don't know what yet, I guess only enabled it from logs) and I am not  getting that error anymore.

..but on "Fire Test Callback" I do get this response: "Error Sending Notification". Check Callback Response Log: Incorrect Receiving Address (the one in their callback URL is same as in my files).

The thing is I am moving my website to another server and my code worked on previous server so I am not sure where is the problem. Money is being forwarded when paying on website but I can't debug why callback doesn't work..


Title: Re: Blockchain receive API and CloudFlare
Post by: piuk on October 10, 2013, 11:39:15 AM
For sure didn't exceeded limit... This is what I get on http://blockchain.info/api/api_receive while testing. Now my host has changed something (don't know what yet, I guess only enabled it from logs) and I am not  getting that error anymore.

..but on "Fire Test Callback" I do get this response: "Error Sending Notification". Check Callback Response Log: Incorrect Receiving Address (the one in their callback URL is same as in my files).

The thing is I am moving my website to another server and my code worked on previous server so I am not sure where is the problem. Money is being forwarded when paying on website but I can't debug why callback doesn't work..

"Incorrect Receiving Address" is an error generated by the php example (callback.php line 19).

Quote
if ($_GET['address'] != $my_bitcoin_address) {
   echo 'Incorrect Receiving Address';
  return;
}

If you have changed bitcoin addresses (or have multiple addresses) you will need to do something a long the lines of:

Quote
$my_addresses = array("1MyAddress", "1MySecondAddress");
if (!in_array($_GET['address'], $my_addresses)) {
   echo 'Incorrect Receiving Address';
  return;
}


Title: Re: Blockchain receive API and CloudFlare
Post by: sant0s80 on October 10, 2013, 12:22:32 PM
I know, I double checked their address in Callback URL and the one in my files. Now also made that array with 4 more addresses which I used yesterday for testing and same results.
Why can't fire test callback also, related?


Title: Re: Blockchain receive API and CloudFlare
Post by: piuk on October 10, 2013, 04:25:55 PM
I know, I double checked their address in Callback URL and the one in my files. Now also made that array with 4 more addresses which I used yesterday for testing and same results.
Why can't fire test callback also, related?

When you use the test callback what is the error given?


Title: Re: Blockchain receive API and CloudFlare
Post by: briehost on October 10, 2013, 04:51:33 PM
Cloudflare blocks a lot of ports for security reasons. I haven't used blockchain APIs but have had to change ports to get through Cloudflare: http://blog.cloudflare.com/cloudflare-now-supporting-more-ports


Title: Re: Blockchain receive API and CloudFlare
Post by: sant0s80 on October 11, 2013, 08:51:01 AM
I know, I double checked their address in Callback URL and the one in my files. Now also made that array with 4 more addresses which I used yesterday for testing and same results.
Why can't fire test callback also, related?

When you use the test callback what is the error given?

Now it's always "Invalid Server Response: Incorrect Receiving Address". Even when I test by myself and set GET parameter it's always the same no matter if really wrong address or not. I have no idea why is that... broken boolean lol. Also I have sent you codes on PM if you have time to check but there should be no problem because used fine on another server site.

Cloudflare blocks a lot of ports for security reasons. I haven't used blockchain APIs but have had to change ports to get through Cloudflare: http://blog.cloudflare.com/cloudflare-now-supporting-more-ports

My host fixed that problem but thanks for useful information ;)

EDIT: Remembered .htaccess........