Best way to differentiate between browser requests

2019-06-06 16:52发布

问题:

I have some actions in my app that require a user to have logged in on the website, and some that require a "person" (a mobile app user basically) to have authenticated. In order to know whether i need to push the current request through the mobile authentication, i'd like to be able to tell whether the request came from a browser or from an iphone for example.

Is there a request header or something i can look at for this?

thanks, max

回答1:

take a look at mobile_fu