sKunKbad Posted August 3, 2009 Share Posted August 3, 2009 I know that the HTTP_USER_AGENT can be easily modified. I have done it myself in cURL and using stream_context_create. For general purposes though, I'm wondering if all modern browsers will always output or reliably never output a user agent string. What I'm worried about is a browser that outputs a user agent string on one request, then for whatever reason decides not to for the next one, or randomly output/no output. Would being on a secure page make a difference? Quote Link to comment https://forums.phpfreaks.com/topic/168589-solved-http_user_agent-reliability/ Share on other sites More sharing options...
btherl Posted August 3, 2009 Share Posted August 3, 2009 It'll generally stay the same. If your target demographic is normal users with normal browsers, you can expect it to stay the same. Quote Link to comment https://forums.phpfreaks.com/topic/168589-solved-http_user_agent-reliability/#findComment-889257 Share on other sites More sharing options...
sKunKbad Posted August 3, 2009 Author Share Posted August 3, 2009 I'll consider that the right answer, because it is what I wanted to hear! Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/168589-solved-http_user_agent-reliability/#findComment-889261 Share on other sites More sharing options...
btherl Posted August 3, 2009 Share Posted August 3, 2009 Hehe Well if that's not a good enough reason, in my job I process clickstreams involving hundreds of thousands of users and millions of hits daily. User agents pretty much stay the same as far as I can see in those. Plenty of bots masquerade as real browsers, and there's a lot of weird user agents, but I've never noticed a user agent change for the same user session. Quote Link to comment https://forums.phpfreaks.com/topic/168589-solved-http_user_agent-reliability/#findComment-889264 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.