1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect depending on Browser

Discussion in 'Black Hat SEO Tools' started by Siek, Sep 6, 2008.

  1. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    As we know IE/FF is very much different from one another.. so different landing pages are necessary for each one. I've searched the all over google and have found this php redirect....

    --------------------------
    <?
    if ($name = strstr ($HTTP_USER_AGENT, "MSIE")) {
    Header ("Location: hxxp://www.msn.com/");
    } else {
    Header ("Location: hxxp://www.google.com/");
    }
    ?>

    -------------------------
    However, when i tried this on both my browser it sent me to google. IS MSIE not seen as the new version or something?
     
  2. bosshog

    bosshog Newbie

    Joined:
    Mar 15, 2008
    Messages:
    43
    Likes Received:
    3
    Occupation:
    web programmerr
    Location:
    texas
    Worked for me in IE 6..

    On Windows XP SP2, IE7 will send the following User-Agent header: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
    On Windows 2003 Server, IE7 will send the following User-Agent header: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
    On Windows Vista, IE7 will send the following User-Agent header: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)

    seems like as long as your user agent has MSIE in it, it should work..
     
    Last edited: Sep 6, 2008
  3. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    Hmm thanks for the update - i think i may need to do more tests.. haha
     
  4. ewind

    ewind Registered Member

    Joined:
    Jul 2, 2008
    Messages:
    99
    Likes Received:
    10
    How do you check it in multiple br0wsers?
     
  5. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    Download both browsers lol and open up the page where the script is installed.. lol :)
     
  6. ewind

    ewind Registered Member

    Joined:
    Jul 2, 2008
    Messages:
    99
    Likes Received:
    10
    How can you install both ie6 and ie7 on same platform?
     
  7. bosshog

    bosshog Newbie

    Joined:
    Mar 15, 2008
    Messages:
    43
    Likes Received:
    3
    Occupation:
    web programmerr
    Location:
    texas
    If not you can use tamper data(firefox plugin) and you can set your own user agent in firefox.
     
  8. ewind

    ewind Registered Member

    Joined:
    Jul 2, 2008
    Messages:
    99
    Likes Received:
    10
    Thanks bosshog. Does that mean by installing this plugin FF will behave like IE? correct me if i am wrong
     
  9. bosshog

    bosshog Newbie

    Joined:
    Mar 15, 2008
    Messages:
    43
    Likes Received:
    3
    Occupation:
    web programmerr
    Location:
    texas
    No but when you turn it on, you can edit the header you send from FF..

    just add/edit the element User-Agent:
     
  10. Profit

    Profit Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    209
    Likes Received:
    158
    Occupation:
    Money Maker
    Location:
    Atlanta
    Get IE Tabs for FF. It allows you to make FF render both broswers with a simple click. Great addon.

    Code:
    [URL="https://addons.mozilla.org/en-US/firefox/addon/1419"]https://addons.mozilla.org/en-US/firefox/addon/1419[/URL]
     
  11. PauloPT

    PauloPT Jr. VIP Jr. VIP Premium Member

    Joined:
    May 22, 2008
    Messages:
    344
    Likes Received:
    1,124
    Occupation:
    Rainbow hatter
    Location:
    Portugal
    This means it works with IE6 but with IE7 it's recognized as firefox and therefore goes to google?
     
  12. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    Or maybe i should switch up the coding to make it look for the FIREFOX browser instead of the IE browser

    Get them to look for firefox...and for the elsestatement is everything else?

    Any thoughts on what the notation for FIREFOX is by chance? or ill have to google to look for it i remember it somewhere lol
     
  13. PauloPT

    PauloPT Jr. VIP Jr. VIP Premium Member

    Joined:
    May 22, 2008
    Messages:
    344
    Likes Received:
    1,124
    Occupation:
    Rainbow hatter
    Location:
    Portugal
    If you get them to look for firefox then won't all IE and Mozilla browsers go to the same url anyway?
     
  14. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    HAHA good point.. damnn so theres no way around this... gayy lol
     
  15. BozoClown

    BozoClown Junior Member

    Joined:
    Jan 4, 2009
    Messages:
    150
    Likes Received:
    106
    Check this out. Very simple.

    hxxp://tredosoft.com/Multiple_IE
     
  16. Siek

    Siek Regular Member

    Joined:
    Feb 4, 2008
    Messages:
    456
    Likes Received:
    294
    So in the end if theres no way we can change anything - the best we can do is seperate the Firefox/IE7 users from the IE6 and below + others..

    Firefox/IE7 own 75% of the market share while
    IE6 + Others own the other 25%

    -----------
    It's still a good separation i guess. Make do what you can. =)