Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: API endpoints behind CloudFlare are requiring javascript to be enabled. #660

Open
2 tasks done
tylermiranda opened this issue Apr 24, 2024 · 3 comments
Open
2 tasks done
Labels
information Already fixed or not something requiring an update

Comments

@tylermiranda
Copy link

What happened?

A bit of a weird one here. I can hit the API endpoints just fine using Invoke-ResthMethod from my home machine and my work machine when I egress through my home internet or my work internet. On my Azure machines however, egressing through the Azure internet connection, it appears CloudFlare DDOS protection is kicking in and requiring the use of javascript. Guessing the Azure public ip block triggers an automatic protection.

image

Version

v2404.928

What PowerShell edition/s are you running Evergreen on?

Windows PowerShell

Which operating system/s are you running Evergreen on?

Windows 10+

Have you reviewed the documentation?

Verbose output

This is the API endpoint so no output.
@tylermiranda tylermiranda added the bug Something isn't working label Apr 24, 2024
@aaronparker
Copy link
Owner

I'd say the Javascript requirement there is because the challenge page uses Javascript to do some detection on the endpoint, but that typically runs in the browser. Bot protection is likely running across my entire domain, so I'll have to see how I can disable that just for the domain the API runs on.

@tylermiranda
Copy link
Author

It's no biggie. In this environment I can use the module for now to get around it. Thanks!

@42uhybrider
Copy link

FYI we are using pwsh 7.x which is fully functionally with the API and methods.
Alternatively you could enforce the user-agent version, which seems to be the issue.

@aaronparker aaronparker added information Already fixed or not something requiring an update and removed bug Something isn't working labels Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information Already fixed or not something requiring an update
Projects
None yet
Development

No branches or pull requests

3 participants