Find the client browser ip-adress

K

KS

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.
 
E

Evertjan.

KS wrote on 28 feb 2005 in comp.lang.javascript:
...
I want to somehow deny everyone except the one with the correct
ip-adress/range.

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="jscript">
var q = request.servervariables("remote_addr");
if (q != "123.456.789.100") response.end;
</script>
<html>
........
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top