Forum

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

can't get JSON file with server versions due to cloudflare captcha

In my browser everything's fine, but unfortunately if I grab it with PHP, cloudflare decline the access and ask to resolve a captcha:

Code:

file_get_contents('https://teamspeak.com/versions/server.json');

result (HTML file, no JSON file as expected):

Code:

Please enable cookies.
One more step
Please complete the security check to access teamspeak.com
Why do I have to complete a CAPTCHA?
Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.
What can I do to prevent this in the future?
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.
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.
Cloudflare Ray ID: xxxxxxxxxxxxxxxx • Your IP: xxx.xxx.xxx.xxx • Performance & security by Cloudflare •

I think it's something to configure on the site of teamspeak.com, or am I missing something?

Having an "API" endpoint that is restricted to humans is kinda pointless.

I'd say what TeamSpeak needs is a new sub-domain like "api.teamspeak.com" or similar and a proper API implementation with rate limits, realtime data and a suitable DDoS mitigation that does not block automated access.

This JSON file that appears to get updated by hand some time after a new release was published is kinda awkward.