gpt4 book ai didi

flutter - 如何从受 Cloudflare DDOS 保护的 URL 获取 Assets ?

转载 作者:行者123 更新时间:2023-12-05 06:51:38 27 4
gpt4 key购买 nike

我想用 Dio http 客户端以字节形式获取音频,这样我就可以播放本地文件中的音频。我正在使用 audioplayers 插件,在我们添加 cloudflare 之前,只要给它一个 url 就可以正常工作。现在 5 秒 DDOS 保护抛出 503 状态代码。

我想知道是否有解决方法可以从受 Cloudflare 保护的链接中获取此数据。

sample image url sample audio url

最佳答案

来自Cloudflare官网,using Cloudflare with your API :

Security Level: Not IUAM The Security level controls Cloudflare's basic protection level for the URL pattern. When this feature is set to "I'm Under Attack" either in the Cloudflare settings or in a page rule, each visitor is presented with an interstitial page with a 5 second delay before the request is redirected to its destination.

We advise specifying this to anything but "I'm Under Attack" so that there is never a delay applied to API requests.

所以你应该删除“我受到攻击”这个特征

关于flutter - 如何从受 Cloudflare DDOS 保护的 URL 获取 Assets ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66140398/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com