IP地址和JS。 [英] IP addresses and JS.
问题描述
我是否正确地认为,当您通过代理连接到网站时,
只有Java(而不是JS)可以获得一个人的IP地址?
谢谢。
我写道:我认为当你连接到网站时我是对的通过代理,只有Java(不是JS)才能获得一个人的IP地址?
不仅* * * Java,但不是Javascript,肯定。
Mick
..
我在9/10/2005 6:04 AM说了以下内容:
我是否认为当你通过代理连接到网站时,只有Java(而不是JS)可以获得一个人的IP地址?
不,Java不是尝试获取一个IP地址的唯一方法,但是JS
无法获得它所有。
-
兰迪
comp.lang.javascript常见问题 - http://jibbering.com/faq &新闻组周刊
Mick White于2005年10月10日在comp.lang.javascript中写道 :
我写道:我是否正确地认为当你通过代理连接到网站时,只有Java(而不是JS)才能获得一个人的IP地址?
不只是* Java,但不是Javascript,肯定。
Javascript可以获取IP地址,但只能获得服务器端。
在ASP平台上试用j [ava]脚本。
================
Clientside服务器看到的IP地址
通常甚至不可用,因为客户端机器
only ;看见"本地IP背后路由器和/或proxi。
并且客户端iP不适用于浏览器内的JavaScript。
=== =============
Java和javascript没有任何共同之处,只有名字。
-
Evertjan。
荷兰。
(用我的电子邮件地址替换所有带点的十字架)
Am I right in thinking that when you connect to a website via a proxy,
only Java (not JS) can get one''s IP address?
Thanks.
Me wrote:Am I right in thinking that when you connect to a website via a proxy,
only Java (not JS) can get one''s IP address?
Not *only* Java, but not Javascript, for sure.
Mick
..
Me said the following on 9/10/2005 6:04 AM:
Am I right in thinking that when you connect to a website via a proxy,
only Java (not JS) can get one''s IP address?
No, Java is not the only way to attempt to get one''s IP Address, but JS
can''t get it at all.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Mick White wrote on 10 sep 2005 in comp.lang.javascript:
Me wrote:Am I right in thinking that when you connect to a website via a proxy,
only Java (not JS) can get one''s IP address?
Not *only* Java, but not Javascript, for sure.
Javascript can get the IP-address, but only serverside.
Try j[ava]script on an ASP platform.
================
Clientside the IP-address as seen by the server
is often not even available, as the client machine
only "sees" the local IP bihind router and/or proxi.
And that clientside iP is not available to in-browser javascript.
================
Java and javascript have nothing in common but the name.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
这篇关于IP地址和JS。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!