Bitcoin Forum
May 09, 2024, 01:27:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain receive API and CloudFlare  (Read 2742 times)
sant0s80 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


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

1715261276
Hero Member
*
Offline Offline

Posts: 1715261276

View Profile Personal Message (Offline)

Ignore
1715261276
Reply with quote  #2

1715261276
Report to moderator
1715261276
Hero Member
*
Offline Offline

Posts: 1715261276

View Profile Personal Message (Offline)

Ignore
1715261276
Reply with quote  #2

1715261276
Report to moderator
1715261276
Hero Member
*
Offline Offline

Posts: 1715261276

View Profile Personal Message (Offline)

Ignore
1715261276
Reply with quote  #2

1715261276
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715261276
Hero Member
*
Offline Offline

Posts: 1715261276

View Profile Personal Message (Offline)

Ignore
1715261276
Reply with quote  #2

1715261276
Report to moderator
1715261276
Hero Member
*
Offline Offline

Posts: 1715261276

View Profile Personal Message (Offline)

Ignore
1715261276
Reply with quote  #2

1715261276
Report to moderator
1715261276
Hero Member
*
Offline Offline

Posts: 1715261276

View Profile Personal Message (Offline)

Ignore
1715261276
Reply with quote  #2

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

Activity: 910
Merit: 1005



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 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


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
Merit: 1005



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 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


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
Merit: 1005



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
Merit: 10



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 (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
October 11, 2013, 08:51:01 AM
Last edit: October 11, 2013, 07:36:49 PM by sant0s80
 #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:  

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