How can I get the user's real user agent from the source server

Cloudflare will automatically replace some requested user agents. How can I get the user’s real user agent from the source server by using the proxy service?
For example, using php’s $request->header(‘user-agent’)

Where do you see this? I’m not aware of Cloudflare replacing user agents.

2 Likes

We request through the app, our own user agent is indeed replaced, there is no problem without the proxy