From: KS on
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.


From: Evertjan. on
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>
........


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