Bitcoin Forum
October 23, 2017, 09:03:28 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Blockchain receive API and CloudFlare  (Read 2608 times)
sant0s80
Newbie
*
Offline Offline

Activity: 21


View Profile
October 09, 2013, 05:13:22 PM
 #1

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

1508792608
Hero Member
*
Offline Offline

Posts: 1508792608

View Profile Personal Message (Offline)

Ignore
1508792608
Reply with quote  #2

1508792608
Report to moderator
1508792608
Hero Member
*
Offline Offline

Posts: 1508792608

View Profile Personal Message (Offline)

Ignore
1508792608
Reply with quote  #2

1508792608
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508792608
Hero Member
*
Offline Offline

Posts: 1508792608

View Profile Personal Message (Offline)

Ignore
1508792608
Reply with quote  #2

1508792608
Report to moderator
1508792608
Hero Member
*
Offline Offline

Posts: 1508792608

View Profile Personal Message (Offline)

Ignore
1508792608
Reply with quote  #2

1508792608
Report to moderator
1508792608
Hero Member
*
Offline Offline

Posts: 1508792608

View Profile Personal Message (Offline)

Ignore
1508792608
Reply with quote  #2

1508792608
Report to moderator
piuk
Hero Member
*****
Offline Offline

Activity: 910



View Profile WWW
October 09, 2013, 07:53:21 PM
 #2

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.

sant0s80
Newbie
*
Offline Offline

Activity: 21


View Profile
October 10, 2013, 11:11:57 AM
 #3

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..
piuk
Hero Member
*****
Offline Offline

Activity: 910



View Profile WWW
October 10, 2013, 11:39:15 AM
 #4

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;
}

sant0s80
Newbie
*
Offline Offline

Activity: 21


View Profile
October 10, 2013, 12:22:32 PM
 #5

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?
piuk
Hero Member
*****
Offline Offline

Activity: 910



View Profile WWW
October 10, 2013, 04:25:55 PM
 #6

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?

briehost
Member
**
Offline Offline

Activity: 79



View Profile WWW
October 10, 2013, 04:51:33 PM
 #7

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

To brie or not to brie...
sant0s80
Newbie
*
Offline Offline

Activity: 21


View Profile
October 11, 2013, 08:51:01 AM
 #8

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 Wink

EDIT: Remembered .htaccess........
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!