Detect Alexa Tool Bar using PHP

Discussion in 'PHP' started by lomb, Oct 16, 2010.

  1. #1
    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
     
    lomb, Oct 16, 2010 IP
  2. axelay

    axelay Peon

    Messages:
    54
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    axelay, Oct 16, 2010 IP
  3. betaturn

    betaturn Peon

    Messages:
    273
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Alexa toolbar does not appear in user agent, its sad but true.
     
    betaturn, Oct 17, 2010 IP
  4. lomb

    lomb Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for your replys does anyone else know of how to do this?
     
    lomb, Oct 20, 2010 IP
  5. AnoxiA

    AnoxiA Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    actually IE does include alexa in the user_agent eg. Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.0; Alexa Toolbar).
     
    AnoxiA, Oct 22, 2010 IP