Find the client browser ip-adress

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KS

    #1

    Find the client browser ip-adress

    Is it possible to get a client browser ip-adress when it access my webpage?
    If the client is behind a network from a company can I get the ipadress
    gateway where the client is behind or is it i only possible to get the
    client ipadress?

    I want to somehow deny everyone except the one with the correct
    ip-adress/range.


  • Evertjan.

    #2
    Re: Find the client browser ip-adress

    KS wrote on 28 feb 2005 in comp.lang.javas cript:[color=blue]
    > ...
    > I want to somehow deny everyone except the one with the correct
    > ip-adress/range.[/color]

    Not safely with any clientside script.

    With serverside script,
    like ASP j[ava]script it is quite possible,
    as long as you mean the external IP:

    <script runat="server" language="jscri pt">
    var q = request.serverv ariables("remot e_addr");
    if (q != "123.456.789.10 0") response.end;
    </script>
    <html>
    ........


    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)

    Comment

    Working...