Jump to content

how to detect IE users


darkcarnival

Recommended Posts

hi,

 

i a having a bit of trouble with a download manager tool of mine. the way IE works with the warning bar the captcha blocks the reload.

 

so a solution i thought was to make a ie section if they cant download the files.

 

now i only want IE users to see this to kill off abuse a bit but I dont know how to get get browser details from php or more on how to just the name of the browser and not the version part.

 

now if someone has a better solution to my issue, please input, im open to other opinions :)

 

thanks :)

Link to comment
https://forums.phpfreaks.com/topic/37291-how-to-detect-ie-users/
Share on other sites

$_SERVER['HTTP_USER_AGENT'] will give you the User-Agent string passed to you by the browser. Compare that to a list of User-Agents (I believe the best file list is the browscap.ini).

 

I suggest just manually extracting the User-Agent strings from the file, as you won't need the browser capabilities for use in this problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.