Skip to main content

DEFAULT_USER_AGENT

Constant DEFAULT_USER_AGENT 

Source
pub const DEFAULT_USER_AGENT: &str = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/605.1.15 \
     (KHTML, like Gecko) Version/17.5 Safari/605.1.15";
Expand description

Default User-Agent the engine sets on each page. Mirrors a recent shipping Safari on macOS so anti-bot fingerprinters that match on the WKWebView default (which lacks the Version/X Safari/X suffix) don’t flag every request. Backends that support per-webview UA (WKWebView via setCustomUserAgent, WebKitGTK via webkit_settings_set_user_agent, WebView2 via Profile2 / coreWebView2.Settings.UserAgent) apply this string at construction.