Skip to content

fix: change default curl user agent#2926

Merged
dvikan merged 2 commits intoRSS-Bridge:masterfrom
dvikan:ua-fix
Jul 31, 2022
Merged

fix: change default curl user agent#2926
dvikan merged 2 commits intoRSS-Bridge:masterfrom
dvikan:ua-fix

Conversation

@dvikan
Copy link
Contributor

@dvikan dvikan commented Jul 17, 2022

The previous ua is Chrome 74 on Windows 10 which is the most common one. The new one in here is firefox 102 which I snagged from https://github.com/lwthiker/curl-impersonate/blob/main/firefox/curl_ff102

For some reason I had better luck with this new ua when testing NovelUpdatesBridge. So maybe we should switch to this new one. The behaviour can possibly be explained by that cloudflare has intimate knowledge on how the chrome 74 on windows 10 acts which is different from the current usage via curl.

One issue that remains is that if users have copied config.default.ini.php to config.ini.php the old ua remains in use.

EDIT: I also had improvements with SlusheBridge which no longer returned 403 Forbidden
EDIT: Could consider dropping the ua from config in order to prevent the old one from being used in old custom configs.

[0] https://developers.whatismybrowser.com/useragents/parse/#parse-useragent

@github-actions
Copy link

github-actions bot commented Jul 17, 2022

Pull request artifacts

file last change
NovelUpdatesBridge-current-context1 2022-07-17, 02:56:45
NovelUpdatesBridge-pr-context1 2022-07-17, 02:56:45

@dvikan dvikan merged commit cd0ca7f into RSS-Bridge:master Jul 31, 2022
@dvikan dvikan deleted the ua-fix branch July 31, 2022 01:58
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.

1 participant