eMoneySpace
Welcome, Guest. Please login or register.
Did you miss your activation email?
News: Welcome to eMoneySpace! Aug 14, 2022 07:37 pm




Blockchain throwing 403s
Print
Author Topic: Blockchain throwing 403s  (Read 2568 times)
zosma
Reputation: (+1)
*

Offline

Posts: 26
Referrals: 0

View Profile
Sep 06, 2015 03:14 pm

I'm trying to use the bitcoin function built into evo, but it won't work. The "send money" page where it would show users a btc address and amount to send to, simply won't go.

I checked why in the error logs and found that this is what's doing it

[06-Sep-2015 21:01:45 UTC] PHP Warning:  file_get_contents(https://blockchain.info/tobtc?currency=USD&value=4.00): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

Checked google, nothing popping out, anybody got a solution?
Logged
dawkventures
Reputation: (+9)
*

Offline

Gender: Male
Posts: 971
Referrals: 0


View Profile
Reply #1: Sep 06, 2015 03:31 pm

The url is wrong...

the & is making the request fail..

https://blockchain.info/tobtc?currency=USD&value=4.00  works
Logged
zosma
Reputation: (+1)
*

Offline

Posts: 26
Referrals: 0

View Profile
Reply #2: Sep 06, 2015 03:37 pm

thank you for replying but
I don't think that's it, because even if you click the weird & URL, it just says invalid number, not 403 forbidden.

also in the script itself it's written as

$btc_amount = file_get_contents("https://blockchain.info/tobtc?currency=USD&value=" . $amount);

where $amount is the properly formatted USD value (4.00 in my above example),and $btc_amount would get passed to the template, if it was working like it should.

It's weird cause it worked fine earlier, no change in situation, just broke outta the blue. Guess I'll mess around, try a cURL based implementation of it while I sit here hoping someone can help.

UPDATE: Just did the cURL implementation and it says blockchain banned my IP. Rude.

« Last Edit: Sep 06, 2015 03:44 pm by zosma » Logged
JustClick
Reputation: (+60)
*

Offline

Posts: 5794
Referrals: 1


View Profile WWW
Reply #3: Sep 06, 2015 07:45 pm

Why are you using file_get_contents ? when there is API available https://blockchain.info/api

And there is rules to use API too, if request exceeds there is possibility they stop responding or block your IP for sometime.

API is always recommended over file_get_contents.

Many website will show blank page when you try file_get_contents on them. Try it on google or yahoo, you will get blank page. Bcoz it is somehow treat as iframe which is potential for DDOS
Logged

zosma
Reputation: (+1)
*

Offline

Posts: 26
Referrals: 0

View Profile
Reply #4: Sep 07, 2015 12:35 am

Why are you using file_get_contents ? when there is API available https://blockchain.info/api

And there is rules to use API too, if request exceeds there is possibility they stop responding or block your IP for sometime.

API is always recommended over file_get_contents.

Many website will show blank page when you try file_get_contents on them. Try it on google or yahoo, you will get blank page. Bcoz it is somehow treat as iframe which is potential for DDOS

take that up with Link2Click or whoever, cause that's how Evo ships. It's not flooding, the site has like 40 people on it right now that are helping me beta test before public launch. Plus I got API credentials for it and the problem didn't go away.


idk I messaged the blockchain support team, guess I'll see what they say. In the meantime, does anyone know of an alternative bitcoin web checkout api that doesn't require KYC verification? got the USD value conversion going through coindesk, just need like IPN/postback notification system
Logged
dawkventures
Reputation: (+9)
*

Offline

Gender: Male
Posts: 971
Referrals: 0


View Profile
Reply #5: Sep 07, 2015 08:57 am


thank you for replying but
I don't think that's it, because even if you click the weird & URL, it just says invalid number, not 403 forbidden....
Exactly, you have to remove the
I removed the &  from your original posts Link and

https://blockchain.info/tobtc?currency=USD&value=4.00

works fine
Logged
T3h_sloth
Reputation: (+4)
*

Offline

Posts: 311
Referrals: 0

View Profile WWW
Reply #6: Sep 07, 2015 11:23 am

This isnan error present in the registered scripts. if you are using nulled versions or not genuine ones you will get these errors.
Logged

zosma
Reputation: (+1)
*

Offline

Posts: 26
Referrals: 0

View Profile
Reply #7: Sep 07, 2015 02:59 pm

first off, the & is just the html encoding of &. in the script it's not &, it's just &. Turns into & in the error logs.

Not a nulled script issue either, this is Ulti license.

Like I said, blockchain blocked the IP and their support is unresponsive, currently just trying to find an alternate bitcoin processor.
Logged
dawkventures
Reputation: (+9)
*

Offline

Gender: Male
Posts: 971
Referrals: 0


View Profile
Reply #8: Sep 07, 2015 03:35 pm

Well see you should have been more clear from the start.

CoinBase Is pretty good, I dont know about KYC

I use stripe on my sites, they take btc and their checkouts pretty simple...

other then that i dont know
Logged
Print
 
Jump to:  
Copyright © 2008-2022 eMoneySpace. All rights reserved.