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

Require script help

Discussion in 'BlackHat Lounge' started by jerry4695, Mar 25, 2008.

  1. jerry4695

    jerry4695 Newbie

    Joined:
    Jan 25, 2008
    Messages:
    40
    Likes Received:
    1
    Hi,

    Is there a script I can use to send those who
    use Firefox to one page and those who use
    IE to another page with different content but
    both from the same url.

    Thanks.
     
  2. stephan

    stephan Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 7, 2008
    Messages:
    1,607
    Likes Received:
    81
    Yes that's possible

    If you use PHP this is the easiest way to do it.


    PHP:
    if (strstr($_SERVER['HTTP_USER_AGENT'],'Firefox')) {

    //FIREFOX CONTENT GOES HERE

    }
    else {

    // ALL OTHER BROWSER GO HERE

    }

     
  3. blackmark

    blackmark Registered Member

    Joined:
    Mar 7, 2008
    Messages:
    55
    Likes Received:
    8
    just change the content here with a redirect command

    Code:
    <?php header("location: [some-url]");?>
     
  4. cashcorp

    cashcorp Regular Member

    Joined:
    Feb 8, 2008
    Messages:
    430
    Likes Received:
    270
    Home Page:
    Hmmm...
    Thanks guys, looks like Ill be using this in my future cookie stuffing ventures!
     
  5. Shemmj

    Shemmj Newbie

    Joined:
    Dec 17, 2007
    Messages:
    32
    Likes Received:
    4
    Thanks for the help but I have some
    knowledge on HTML only.

    How can it be done with HTML.

    Thanks.
     
  6. jerry4695

    jerry4695 Newbie

    Joined:
    Jan 25, 2008
    Messages:
    40
    Likes Received:
    1
    Sorry guys but I forgot to mention that I wanted to know how it could be done with html.