mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Remove "LibWeb+LibJS/1.0" from the default User-Agent string
As it turns out, there are popular User-Agent blacklists out there with the string "LibWeb" in them. Such entries have been added long before our LibWeb existed, so "LibWeb" has presumably been used by some bot that people got tired of. Trying to chase down everyone who has installed these blacklists is obviously a losing battle, so this patch simply removes the engine part of our default UA string.
This commit is contained in:
parent
6175fcdaeb
commit
4ead33d8fc
Notes:
sideshowbarker
2024-07-17 02:05:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4ead33d8fc Pull-request: https://github.com/SerenityOS/serenity/pull/20736
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace Web {
|
|||
#define BROWSER_NAME "Ladybird"
|
||||
#define BROWSER_VERSION "1.0"
|
||||
|
||||
constexpr auto default_user_agent = "Mozilla/5.0 (" OS_STRING "; " CPU_STRING ") LibWeb+LibJS/1.0 " BROWSER_NAME "/" BROWSER_VERSION ""sv;
|
||||
constexpr auto default_user_agent = "Mozilla/5.0 (" OS_STRING "; " CPU_STRING ") " BROWSER_NAME "/" BROWSER_VERSION ""sv;
|
||||
constexpr auto default_platform = OS_STRING " " CPU_STRING ""sv;
|
||||
|
||||
class ResourceLoaderConnectorRequest : public RefCounted<ResourceLoaderConnectorRequest> {
|
||||
|
|
Loading…
Add table
Reference in a new issue