Bitcoin Forum
July 27, 2024, 06:33:21 PM *
News: Help 1Dq create 15th anniversary forum artwork.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blockchain.info api - how to determine if callback is valid.  (Read 662 times)
ytwg (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0



View Profile
April 09, 2013, 08:01:07 AM
 #1

Hi, does anyone else use the blockchain.info api?
If so how do you determine that the callback is from them.
I used to use gethostbynamel("blockchain.info"); but then they changed the callback IP to one not in that list [185.7.149.10].
Yesterday they seem to have changed it again to [91.223.16.20].

Any idea how i can do this automatically without having to log their IPs and when a customer complains, update the php script?

Zeilap
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
April 09, 2013, 08:07:46 AM
 #2

Hi, does anyone else use the blockchain.info api?
If so how do you determine that the callback is from them.
I used to use gethostbynamel("blockchain.info"); but then they changed the callback IP to one not in that list [185.7.149.10].
Yesterday they seem to have changed it again to [91.223.16.20].

Any idea how i can do this automatically without having to log their IPs and when a customer complains, update the php script?



Use https.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
April 09, 2013, 08:18:15 AM
 #3

Quote
blockchain.info api - how to determine if callback is valid

I use a secret code and check it on callback.
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!