Cloudflare blocks direct API request when Google Chrome doesn't

1 day ago 5
ARTICLE AD BOX

I would like to load the JSON content from a "normal" server, the query URL is
https://www.astrobin.com/api/v2/equipment/camera/?format=json

When I run the query in the Google Chrome browser I get the expected result, I can parse it, OK.

Then I try to do the same in VB.NET (see code below) or C# I get a Cloudflare block.

Do I have any chance to run my query just "as Google Chrome"?

Best regards Martin.

This is the code I use:

Using MyHTTPClient As New System.Net.Http.HttpClient Dim request As System.Net.Http.HttpRequestMessage = New System.Net.Http.HttpRequestMessage(System.Net.Http.HttpMethod.Get, URL) response = MyHTTPClient.Send(request) responsereader = New System.IO.StreamReader(response.Content.ReadAsStream()) Answer = responsereader.ReadToEnd End Using
Read Entire Article