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

random user-agent #657

Merged
merged 5 commits into from
Jul 29, 2023
Merged

random user-agent #657

merged 5 commits into from
Jul 29, 2023

Conversation

My-Responsitories
Copy link
Contributor

No description provided.

@dogdie233
Copy link
Contributor

如果用随机的话会不会导致复现难度增大捏(有debug倒是无所谓)
而且每次请求都换一个UA会不会更容易被风控

@My-Responsitories
Copy link
Contributor Author

这边测试是被风控了换ua可解除风控, 可能ua和ip有不一样的风控规则, 再给每个api加个referer

@nilaoda
Copy link
Owner

nilaoda commented Jul 28, 2023

可能允许用户设置UA更好一些 随机确实感觉有点风险

@dogdie233
Copy link
Contributor

做成参数(?)(好多参数)
然后如果没有指定参数,则运行程序的时候随机一个,而不是每次请求都随机一次

@nilaoda nilaoda merged commit dece855 into nilaoda:master Jul 29, 2023
@nilaoda
Copy link
Owner

nilaoda commented Jul 29, 2023

好久没看api了 话说现在是不是所有平台都会返回8K、杜比视界和HDR了?我看你随机了三种貌似都会出

@My-Responsitories
Copy link
Contributor Author

好久没看api了 话说现在是不是所有平台都会返回8K、杜比视界和HDR了?我看你随机了三种貌似都会出

ua只是web用js控制fnval的, 既然fnval都硬编码了, 也就不需要ua了, 拿IE6的ua带上fnval=4048都能拿到8K
不过8K好像在tv/app端也能播放, 但使用-tv/-app只能拿到4K, 一会我再推个pr改一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants