Is it possible for a web server to know which type of device request has been received from?
For example, can a create a website which shows different contents if request came from a computer (Firefox) and something different if it came from iPhone?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The way is the User Agent header, as has been said. You best use a list like this one to find out which mobile is it.
When I had to do something like it I stored the unknown received User Agents in a table to find out later about the ones I didn’t have stored and thus wasn’t able to know for sure what to serve.