Introduction🔗
The Getting Started Web examples show how to add 51Degrees device detection to a web application. The pipeline runs on each incoming HTTP request, reads the User-Agent and any User-Agent Client Hints the browser sent, and exposes the detected device, operating system and browser properties to your handler so you can adapt the response.
Two deployment models are covered:
- Cloud calls our hosted service over HTTPS. You do not need to manage a local data file or detection binary. See Getting started with cloud detection in a web application.
- On-premise runs the Hash engine in your process with a local data file. Use it for offline operation or when latency and throughput are priorities. See Getting started with on-premise detection in a web application.
For both examples, configure a pipeline, register it with your web framework, and read the detected properties from each request. Select a tab for your language and framework. If you are evaluating which deployment model fits your use case first, see Migrating from cloud to on-premise for a comparison.
Getting started with cloud detection in a web application
Getting started with on-premise detection in a web application
