Hi there all is there anyway in I.E 8 to detect the Alexa toolbar using PHP. I have done some reading and testing and only found an old javascipt code that is now dead. I also heard you can use the $_SERVER['HTTP_USER_AGENT'] but see no alexa toolbar inside it only Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C Any help much appreciated
I don't think the Alexa toolbar will appear in the user agent string so I would not waste any time looking into this. You have to put in perspective that PHP is server side and what you are trying to find out is based on the client. There are "hacks" to be able to find out some data from the client to PHP but it relies mainly on javascript as you mentionned and it cannot be foolproof. Of course I may be wrong aXe
actually IE does include alexa in the user_agent eg. Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.0; Alexa Toolbar).