BTCMarkets / API

API
119 stars 30 forks source link

API antiddos protection #125

Closed alexsith closed 4 years ago

alexsith commented 6 years ago

Hello. I requested to support to add my IP to whitelist because your API server return antiddos page even at first request. I don't know why they told me create ticket here. I used different UserAgent - one from your example. other from my browser. It didn't help.

Trace:

Request: GET https://api.btcmarkets.net/account/balance {'accept': 'application/json', 'Content-Type': 'application/json', 'apikey': '4e***a', 'timestamp': '1519759119151', 'signature': 'ZEG****dg==', 'User-Agent': 'btc markets python client', 'Accept-Encoding': 'gzip, deflate'} None NetworkError exception: ('btcmarkets https://api.btcmarkets.net/account/balance GET 403 <!DOCTYPE html>\n\n\n\n \n\nAttention Required! | Cloudflare\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n

\n \n
\n
\n

One more step

\n

Please complete the security check to access api.btcmarkets.net

\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n \n
\n\n
\n
\n\n
\n
\n \n \n \n
\n
\n
\n
\n
\n\n
\n
\n
\n

Why do I have to complete a CAPTCHA?

\n \n

Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.

\n
\n\n
\n

What can I do to prevent this in the future?

\n \n\n

If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.

\n\n

If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.

\n \n
\n
\n
\n \n\n \n\n\n
\n
\n\n \n\n\n\n',)

martin-nginio commented 4 years ago

Hi @alexsith

Thanks for your feedback.

We recently had another customer reporting similar issues and now have a process to investigate those cases where CloudFlare block the request and help solving them.

If this is still happening please let us know and we can investigate it further. We may need some more data from you (e.g. ip address) that you can share by opening a ticket with our support team.

By the way, we have developed new generation of API that comes with several improvements and new features. Please feel free to check it below and If you have any questions please let us know. https://api.btcmarkets.net/doc/v3#section/Introduction

Thanks again.

Regards, Martin