Bitcoin Forum

Economy => Web Wallets => Topic started by: ytwg on April 09, 2013, 08:01:07 AM



Title: blockchain.info api - how to determine if callback is valid.
Post by: ytwg on April 09, 2013, 08:01:07 AM
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?



Title: Re: blockchain.info api - how to determine if callback is valid.
Post by: Zeilap on April 09, 2013, 08:07:46 AM
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.


Title: Re: blockchain.info api - how to determine if callback is valid.
Post by: Come-from-Beyond on April 09, 2013, 08:18:15 AM
Quote
blockchain.info api - how to determine if callback is valid

I use a secret code and check it on callback.