¡¡¡¡request|server±¾»úip:<%=request.servervariables("remote_addr")%>
·þÎñÆ÷Ãû:<%=Request.ServerVariables("SERVER_NAME")%>
·þÎñÆ÷IP:<%=Request.ServerVariables("LOCAL_ADDR")%>
·þÎñÆ÷¶Ë¿Ú:<%=Request.ServerVariables("SERVER_PORT")%>
·þÎñÆ÷ʱ¼ä:<%=now%>
IIS°æ±¾:<%=Request.ServerVariables("SERVER_SOFTWARE")%>
½Å±¾³¬Ê±Ê±¼ä:<%=Server.ScriptTimeout%>
±¾Îļþ·¾¶:<%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%>
·þÎñÆ÷CPUÊýÁ¿:<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%>
·þÎñÆ÷½âÒëÒýÇæ:<%=ScriptEngine & "/"& ScriptEngineMajorVersion&"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %>
·þÎñÆ÷²Ù×÷ϵͳ:<%=Request.ServerVariables("OS")%>
Ö§³ÖµÄÎļþÀàÐÍ£º<%=Request.ServerVariables("HTTP_Accept")%>
·ÃÎʵÄÎļþ·¾¶£º<%=Request.ServerVariables("HTTP_url")%>
Óû§´úÀíµÄÐÅÏ¢£º<%=Request.ServerVariables("HTTP_USER_AGENT")%>
»ñÈ¡urlÖеÄÎļþÃûºÍ´«¹ýÀ´µÄÖµ:request.ServerVariables("script_name")+"?"+request.ServerVariableS("QUERY_STRING")
ÆäÖÐServerVariables¾ÍÊÇ·þÎñÆ÷µÄ»·¾³±äÁ¿ÁË£¬¸Ã±äÁ¿°üº¬µÄÄÚÈݱȽ϶࣬ÎÒÃÇͬÑùÏȲÉÓÃforÑ»·½øÐбéÀú²é¿´Ï¡£
<%for each i in request.servervariables%>
<%=i%>:
<%=request.servervariables(i)%>
<hr>
<%Next%>
Request.ServerVariables("HTTP_REFERER")µÄ¹¤×÷·½Ê½
ÏÂÁÐÇé¿öÊÇ´Óä¯ÀÀÆ÷µÄµØÖ·À¸Õý³£È¡µÃRequest.ServerVariables("HTTP_REFERER")µÄ:
1.Ö±½ÓÓÃ<a href>
2.ÓÃSubmit»ò<input type=image>Ìá½»µÄ±íµ¥(POST or GET)
3.ʹÓÃJscriptÌá½»µÄ±íµ¥(POST or GET)
ÏÂÃæÎÒÃÇÔÙ¿´¿´Request.ServerVariables("HTTP_REFERER")²»ÄÜÕý³£È¡ÖµµÄÇé¿ö:
1.´ÓÊղؼÐÁ´½Ó
2.µ¥»÷''Ö÷Ò³''»òÕß×Ô¶¨ÒåµÄµØÖ·
3.ÀûÓÃJscriptµÄlocation.href or location.replace()
4.ÔÚä¯ÀÀÆ÷Ö±½ÓÊäÈëµØÖ·
5.<%Response.Redirect%>
6.<%Response.AddHeader%>»ò<meta http-equiv=refresh>תÏò
7.ÓÃXML¼ÓÔصØÖ·
ÏÔÈ»£¬Request.ServerVariables("HTTP_REFERER")ÔÚ¶àÊýÇé¿öÏÂÊDz»ÄÜÕý³£¹¤×÷µÄ
ѧϰASP֪ʶ֮Request.ServerVariablesÓ¦ÓÃ
80¿á¿áÍø 80kuku.com