CodeIgniter Forums
Custom User Agent - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Custom User Agent (/showthread.php?tid=36339)

Custom User Agent - El Forum - 11-28-2010

I'm trying to be able to detect the Sprint HTC Evo phone but am having troubles trying to add it to the user agent file in CI.

This is the user agent string from the device:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

Any ideas?

Custom User Agent - El Forum - 11-28-2010

yes you can add custom user agent check in application>config>user_agent.php file will help you to solve your problem

Custom User Agent - El Forum - 11-30-2010

I've been attempting to modify the user_agent.php file in the config folder, but have had no luck. I didn't know if anyone here could help me with what to actually put in the user_agent.php file.