예제
A browser on Windows
Parse a representative user-agent string. User-agent strings can be spoofed; this check covers only the listed browser/client label.
입력
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36Expected checks
Case-insensitiveContains "Chrome"A command-line HTTP client
Inspect a curl client string and see the parser’s limitation: it reports browser identity as unknown. A user-agent is a self-reported string and is not trustworthy identity.
입력
curl/8.10.1Expected checks
Case-insensitiveContains "Name: unknown"A Firefox browser
Parse a representative user-agent string. User-agent strings can be spoofed; this check covers only the listed browser/client label.
입력
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0Expected checks
Case-insensitiveContains "Firefox"An iPhone browser
Parse a representative user-agent string. User-agent strings can be spoofed; this check covers only the listed browser/client label.
입력
Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1Expected checks
Case-insensitiveContains "Safari"An Edge browser
Parse a representative user-agent string. User-agent strings can be spoofed; this check covers only the listed browser/client label.
입력
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0Expected checks
Case-insensitiveContains "Edge"