ASP中怎样让对方获得自己的ip地址,请大虾们帮帮忙,谢了~~

来源:百度知道 编辑:UC知道 时间:2024/06/24 08:30:06
[</b></font></a><a HREF class="STYLE12" style="cursor: hand; letter-spacing: 3.5" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost/student/index.asp');"><font color="#FFFFFF">设为首页</font></a><a style="cursor: hand; letter-spacing: 3.5"><font color="#00FF00"><b>]
就是对方把我的网站设为首页后 this.setHomePage('http://localhost/student/index.asp');">
localhost就直接变成我的ip地址
当我的IP地址改变的时候 别人随时把我的网页设为首页。

[</b></font></a><a HREF class="STYLE12" style="cursor: hand; letter-spacing: 3.5" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://<%=Request.ServerVariables("Local_Addr")%>/student/index.asp');"><font color="#FFFFFF">设为首页</font></a><a style="cursor: hand; letter-spacing: 3.5"><font color="#00FF00"><b>]

<%=Request.ServerVariables("Local_Addr")%>用于获取服务器IP