Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: IP Detection

  1. #11
    ehmm,
    That must be great work dude! a_420_hacker_24

    Bingo.

  2. #12
    Banned
    Join Date
    Jun 2002
    Posts
    119
    Perhaps these will work for you:

    I think this one only works in IE...
    Code:
    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript">
    var ip = '';
    alert("Your IP address is "+ip);
    window.defaultStatus = "Your IP address is "+ip;
    document.write("<title>Your IP address is "+ip+"</title>");
    </script>
    </head>
    <body>
    <p align="center">IP Address In IE</p>
    </body>
    </html>
    This one only works in Netscape...
    Code:
    <html>
    <head>
    <title>IP Address In Netscape</title>
    </head>
    <body>
    <SCRIPT LANGUAGE="JavaScript">
    if ((navigator.appVersion.indexOf("4.") != -1) && (navigator.appName.indexOf("Netscape") != -1)){ 
    ip = "" + java.net.InetAddress.getLocalHost().getHostAddress();
    document.write("Your IP address is " + ip);
    }
    else {
    document.write("IP Address Is Only Displayed In Netscape!");
    }
    </script>
    </body>
    </html>
    Hope this helps~!

  3. #13
    Senior Member
    Join Date
    Dec 2001
    Posts
    243
    yes, nice little program, I'm currently learning perl and am struggling trying to find practical uses, but I could of done that! Nice idea a_420_hacker_24, thanks for the inspiration.
    Search First Ask Second. www.google.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •