---
id: "user-agent-sniffing"
kind: "web-feature"
canonical: "https://timetostable.com/feature/user-agent-sniffing"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# User agent sniffing (`user-agent-sniffing`)

The navigator.userAgent property and several others loosely identify a browser. Selectively showing content based on the user agent string, also known as user agent sniffing, is unreliable. Consider using feature detection or user agent client hints instead.

- **Group**: other
- **Baseline**: Widely Available
- **Newly Available Date**: 2016-09-20
- **Widely Available Date**: 2019-03-20
- **Specification**: https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object
- **Constituent BCD keys**: 17

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 3.5 | 2009-06-30 |
| Chrome | 4 | 2010-01-25 |
| Firefox for Android | 4 | 2011-03-29 |
| Chrome Android | 18 | 2012-06-27 |
| Edge | 12 | 2015-07-29 |
| Safari on iOS | 10 | 2016-09-13 |
| Safari | 10 | 2016-09-20 |

