Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / February 2005



Tip: Looking for answers? Try searching our database.

Find the client browser ip-adress

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KS - 28 Feb 2005 10:41 GMT
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. - 28 Feb 2005 14:45 GMT
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>
.......

Signature

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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.