Request.ServerVariables("HTTP_REFERER")
 鐢ㄦ潵鑾峰彇(浠庡摢涓〉闈㈣浆鍒板綋鍓嶉〉闈㈢殑) & 璺緞
 甯哥敤鏉ヨ浆鍒版煇涓缃戝潃
 response.redirect Request.ServerVariables("HTTP_REFERER")
 鐢ㄦ潵鍒ゆ柇鏄笉鏄粠鏌愪釜缃戝潃閾炬帴杩囨潵鐨勪篃涓閿,鍙互闃插潃鐩楅摼
 涓嬮潰鍒ゆ柇鏄笉鏄粠涓婚潰杩涙潵,
server_vv=len(Request.ServerVariables("SERVER_NAME"))'鍙栧緱WWW鍚,涓嶅ソ璇村ぇ姒傚氨鏄繖涓剰鎬
 server_v1=left(Cstr(Request.ServerVariables("HTTP_REFERER")),server_vv)'鍙栧緱鏈〉璺緞鐨勪富HTTP
 server_v2=left(Cstr("http://"&Request.ServerVariables("SERVER_NAME")),server_vv)鍙栧緱甯TTP鍚
 if server_v1<>server_v2 and server_v1<>"" and server_v2<>"" then
 response.write("

")
 response.end


sServerName = LCase(Request.ServerVariables("SERVER_NAME"))
     sReferrerpage = LCase(Request.ServerVariables("HTTP_REFERER"))
     '//鐩楅摼妫娴
     If InStr(sReferrerPage,sServerName)<1 then
           Response.Redirect("/Error.asp?IllegalLink")
     End If

鏈満ip:<%=request.servervariables("remote_addr")%>
鏈嶅姟鍣ㄥ悕:<%=Request.ServerVariables("SERVER_NAME")%>
鏈嶅姟鍣↖P:<%=Request.ServerVariables("LOCAL_ADDR")%>
鏈嶅姟鍣ㄧ鍙:<%=Request.ServerVariables("SERVER_PORT")%>
鏈嶅姟鍣ㄦ椂闂:<%=now%>
IIS鐗堟湰:<%=Request.ServerVariables("SERVER_SOFTWARE")%>
鑴氭湰瓒呮椂鏃堕棿:<%=Server.ScriptTimeout%>
鏈枃浠惰矾寰:<%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%>
鏈嶅姟鍣–PU鏁伴噺:<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%>
鏈嶅姟鍣ㄨВ璇戝紩鎿:<%=ScriptEngine & "/"& ScriptEngineMajorVersion&"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %>
鏈嶅姟鍣ㄦ搷浣滅郴缁:<%=Request.ServerVariables("OS")%>
鏀寔鐨勬枃浠剁被鍨嬶細<%=Request.ServerVariables("HTTP_Accept")%>
璁块棶鐨勬枃浠惰矾寰勶細<%=Request.ServerVariables("HTTP_url")%>
鐢ㄦ埛浠g悊鐨勪俊鎭細<%=Request.ServerVariables("HTTP_USER_AGENT")%>
鑾峰彇url涓殑鏂囦欢鍚嶅拰浼犺繃鏉ョ殑鍊:request.ServerVariables("script_name")+"?"+request.ServerVariableS("QUERY_STRING")

鍏朵腑ServerVariables灏辨槸鏈嶅姟鍣ㄧ殑鐜鍙橀噺浜嗭紝璇ュ彉閲忓寘鍚殑鍐呭姣旇緝澶氾紝鎴戜滑鍚屾牱鍏堥噰鐢╢or寰幆杩涜閬嶅巻鏌ョ湅涓嬨
<%for each i in request.servervariables%>
<%=i%>:
<%=request.servervariables(i)%>


<%Next%>


Request.ServerVariables("HTTP_REFERER")鐨勫伐浣滄柟寮

涓嬪垪鎯呭喌鏄粠娴忚鍣ㄧ殑鍦板潃鏍忔甯稿彇寰桼equest.ServerVariables("HTTP_REFERER")鐨:
1.鐩存帴鐢
2.鐢⊿ubmit鎴栨彁浜ょ殑琛ㄥ崟(POST or GET)
3.浣跨敤Jscript鎻愪氦鐨勮〃鍗(POST or GET)

涓嬮潰鎴戜滑鍐嶇湅鐪婻equest.ServerVariables("HTTP_REFERER")涓嶈兘姝e父鍙栧肩殑鎯呭喌:
1.浠庢敹钘忓す閾炬帴
2.鍗曞嚮''涓婚〉''鎴栬呰嚜瀹氫箟鐨勫湴鍧
3.鍒╃敤Jscript鐨刲ocation.href or location.replace()
4.鍦ㄦ祻瑙堝櫒鐩存帴杈撳叆鍦板潃
5.<%Response.Redirect%>
6.<%Response.AddHeader%>鎴栬浆鍚
7.鐢╔ML鍔犺浇鍦板潃

鏄剧劧锛孯equest.ServerVariables("HTTP_REFERER")鍦ㄥ鏁版儏鍐典笅鏄笉鑳芥甯稿伐浣滅殑

ALL_HTTP瀹㈡埛绔彂閫佺殑鎵鏈塇TTP鏍囬鏂囦欢銆
ALL_RAW妫绱㈡湭澶勭悊琛ㄦ牸涓墍鏈夌殑鏍囬銆
APPL_MD_PATH妫绱SAPIDLL鐨(WAM)Application鐨勫厓鏁版嵁搴撹矾寰勩
APPL_PHYSICAL_PATH妫绱笌鍏冩暟鎹簱璺緞鐩稿簲鐨勭墿鐞嗚矾寰勩侷IS閫氳繃灏咥PPL_MD_PATH杞崲涓虹墿鐞嗭紙鐩綍锛夎矾寰勪互杩斿洖鍊笺
AUTH_PASSWORD璇ュ艰緭鍏ュ埌瀹㈡埛绔殑閴村畾瀵硅瘽涓傚彧鏈変娇鐢ㄥ熀鏈壌瀹氭椂锛岃鍙橀噺鎵嶅彲鐢ㄣ
AUTH_TYPE杩欐槸鐢ㄦ埛璁块棶鍙椾繚鎶ょ殑鑴氭湰鏃讹紝鏈嶅姟鍣ㄧ敤浜庢楠岀敤鎴风殑楠岃瘉鏂规硶銆
AUTH_USER鏈閴村畾鐨勭敤鎴峰悕銆
CERT_COOKIE瀹㈡埛绔獙璇佺殑鍞竴ID锛屼互瀛楃涓叉柟寮忚繑鍥炪傚彲浣滀负鏁翠釜瀹㈡埛绔獙璇佺殑绛惧瓧銆
CERT_FLAGS濡傛湁瀹㈡埛绔獙璇侊紝鍒檅it0涓1銆傚鏋滃鎴风楠岃瘉鐨勯獙璇佷汉鏃犳晥(涓嶅湪鏈嶅姟鍣ㄦ壙璁ょ殑CA鍒楄〃涓),bit1琚缃负1.
CERT_ISSUER鐢ㄦ埛楠岃瘉涓殑棰佸竷鑰呭瓧娈碉紙O=MS锛孫U=IAS锛孋N=username锛孋=USA锛夈
CERT_KEYSIZE瀹夊叏濂楁帴瀛楀眰杩炴帴鍏抽敭瀛楃殑浣嶆暟锛屽128銆
CERT_SECRETKEYSIZE鏈嶅姟鍣ㄩ獙璇佺浜哄叧閿瓧鐨勪綅鏁般傚1024銆
CERT_SERIALNUMBER鐢ㄦ埛楠岃瘉鐨勫簭鍒楀彿瀛楁銆
CERT_SERVER_ISSUER鏈嶅姟鍣ㄩ獙璇佺殑棰佸彂鑰呭瓧娈点
CERT_SERVER_SUBJECT鏈嶅姟鍣ㄩ獙璇佺殑涓诲瓧娈点
CERT_SUBJECT瀹㈡埛绔獙璇佺殑涓诲瓧娈点
CONTENT_LENGTH瀹㈡埛绔彂鍑哄唴瀹圭殑闀垮害銆
CONTENT_TYPE鍐呭鐨勬暟鎹被鍨嬨傚悓闄勫姞淇℃伅鐨勬煡璇竴璧蜂娇鐢紝濡傦細HTTP鏌ヨGET銆丳OST鍜孭UT銆
GATEWAY_INTERFACE鏈嶅姟鍣ㄤ娇鐢ㄧ殑CGI瑙勬牸鐨勪慨璁€傛牸寮忎负CGI/revision銆
LOGON_USER鐢ㄦ埛鐧诲綍WindowsNT?鐨勫笎鍙枫
PATH_INFO瀹㈡埛绔彁渚涚殑棰濆璺緞淇℃伅銆傚彲浠ヤ娇鐢ㄨ繖浜涜櫄鎷熻矾寰勫拰PATH_INFO鏈嶅姟鍣ㄥ彉閲忚闂剼鏈傚鏋滆淇℃伅鏉ヨ嚜URL锛屽湪鍒拌揪CGI鑴氭湰鍓嶅氨宸茬粡鐢辨湇鍔″櫒瑙g爜浜嗐
PATH_TRANSLATEDPATH_INFO杞崲鍚庣殑鐗堟湰锛岃鍙橀噺鑾峰彇璺緞骞惰繘琛屽繀瑕佺殑鐢辫櫄鎷熻嚦鐗╃悊鐨勬槧灏勩
QUERY_STRING鏌ヨHTTP璇锋眰涓棶鍙凤紙?锛夊悗鐨勪俊鎭
REMOTE_ADDR鍙戝嚭璇锋眰鐨勮繙绋嬩富鏈虹殑IP鍦板潃銆
REMOTE_HOST鍙戝嚭璇锋眰鐨勪富鏈哄悕绉般傚鏋滄湇鍔″櫒鏃犳淇℃伅锛屽畠灏嗚缃负绌虹殑MOTE_ADDR鍙橀噺銆
REMOTE_USER鐢ㄦ埛鍙戦佺殑鏈槧灏勭殑鐢ㄦ埛鍚嶅瓧绗︿覆銆傝鍚嶇О鏄敤鎴峰疄闄呭彂閫佺殑鍚嶇О锛屼笌鏈嶅姟鍣ㄤ笂楠岃瘉杩囨护鍣ㄤ慨鏀硅繃鍚庣殑鍚嶇О鐩稿銆
REQUEST_METHOD璇ユ柟娉曠敤浜庢彁鍑鸿姹傘傜浉褰撲簬鐢ㄤ簬HTTP鐨凣ET/HEAD/POST绛夌瓑銆
SCRIPT_NAME鎵ц鑴氭湰鐨勮櫄鎷熻矾寰勩傜敤浜庤嚜寮曠敤鐨刄RL銆
SERVER_NAME鍑虹幇鍦ㄨ嚜寮曠敤UAL涓殑鏈嶅姟鍣ㄤ富鏈哄悕銆丏NS鍖栧悕鎴朓P鍦板潃銆
SERVER_PORT鍙戦佽姹傜殑绔彛鍙枫
SERVER_PORT_SECURE鍖呭惈0鎴1鐨勫瓧绗︿覆銆傚鏋滃畨鍏ㄧ鍙e鐞嗕簡璇锋眰锛屽垯涓1锛屽惁鍒欎负0銆
SERVER_PROTOCOL璇锋眰淇℃伅鍗忚鐨勫悕绉板拰淇銆傛牸寮忎负protocol/revision銆
SERVER_SOFTWARE搴旂瓟璇锋眰骞惰繍琛岀綉鍏崇殑鏈嶅姟鍣ㄨ蒋浠剁殑鍚嶇О鍜岀増鏈傛牸寮忎负name/version銆

琚彂鐜伴殣璧风殑
Request.ServerVariables("NUMBER_OF_PROCESSORS")
Request.ServerVariables("OS")
Request.ServerVariables("WINDIR")
Request.ServerVariables("TEMP")
Request.ServerVariables("TMP")
Request.ServerVariables("ComSpec")
Request.ServerVariables("Os2LibPath")
Request.ServerVariables("Path")
Request.ServerVariables("PATHEXT")
Request.ServerVariables("PROCESSOR_ARCHITECTURE")
Request.ServerVariables("PROCESSOR_IDENTIFIER")
Request.ServerVariables("PROCESSOR_LEVEL")
Request.ServerVariables("PROCESSOR_REVISION")

Request.ServerVariables("HTTP_X_FORWARDED_FOR") 鏄彲浠ヨ幏寰椾綅浜庝唬鐞嗭紙缃戝叧锛夊悗闈㈢殑鐩存帴IP锛屽綋鐒跺繀椤昏繖涓唬鐞嗘敮


Request.ServerVariables("Url")
杩斿洖鏈嶅姟鍣ㄥ湴鍧

Request.ServerVariables("Path_Info")
瀹㈡埛绔彁渚涚殑璺緞淇℃伅

Request.ServerVariables("Appl_Physical_Path")
涓庡簲鐢ㄧ▼搴忓厓鏁版嵁搴撹矾寰勭浉搴旂殑鐗╃悊璺緞

Request.ServerVariables("Path_Translated")
閫氳繃鐢辫櫄鎷熻嚦鐗╃悊鐨勬槧灏勫悗寰楀埌鐨勮矾寰

Request.ServerVariables("Script_Name")
鎵ц鑴氭湰鐨勫悕绉

Request.ServerVariables("Query_String")
鏌ヨ瀛楃涓插収瀹

Request.ServerVariables("Http_Referer")
璇锋眰鐨勫瓧绗︿覆鍏у

Request.ServerVariables("Server_Port")
鎺ュ彈璇锋眰鐨勬湇鍔″櫒绔彛鍙

Request.ServerVariables("Remote_Addr")
鍙戝嚭璇锋眰鐨勮繙绋嬩富鏈虹殑IP鍦板潃

Request.ServerVariables("Remote_Host")
鍙戝嚭璇锋眰鐨勮繙绋嬩富鏈哄悕绉

Request.ServerVariables("Local_Addr")
杩斿洖鎺ュ彈璇锋眰鐨勬湇鍔″櫒鍦板潃

Request.ServerVariables("Http_Host")
杩斿洖鏈嶅姟鍣ㄥ湴鍧

Request.ServerVariables("Server_Name")
鏈嶅姟鍣ㄧ殑涓绘満鍚嶃丏NS鍦板潃鎴朓P鍦板潃

Request.ServerVariables("Request_Method")
鎻愬嚭璇锋眰鐨勬柟娉曟瘮濡侴ET銆丠EAD銆丳OST绛夌瓑

Request.ServerVariables("Server_Port_Secure")
濡傛灉鎺ュ彈璇锋眰鐨勬湇鍔″櫒绔彛涓哄畨鍏ㄧ鍙f椂锛屽垯涓1锛屽惁鍒欎负0

Request.ServerVariables("Server_Protocol")
鏈嶅姟鍣ㄤ娇鐢ㄧ殑鍗忚鐨勫悕绉板拰鐗堟湰

Request.ServerVariables("Server_Software")
搴旂瓟璇锋眰骞惰繍琛岀綉鍏崇殑鏈嶅姟鍣ㄨ蒋浠剁殑鍚嶇О鍜岀増鏈

Request.ServerVariables("All_Http")
瀹㈡埛绔彂閫佺殑鎵鏈塇TTP鏍囧ご锛屽墠缂HTTP_

Request.ServerVariables("All_Raw")
瀹㈡埛绔彂閫佺殑鎵鏈塇TTP鏍囧ご,鍏剁粨鏋滃拰瀹㈡埛绔彂閫佹椂涓鏍凤紝娌℃湁鍓嶇紑HTTP_

Request.ServerVariables("Appl_MD_Path")
搴旂敤绋嬪簭鐨勫厓鏁版嵁搴撹矾


浠ヤ笂灏辨槸ASP濡備綍鑾峰彇璁垮IP Request.ServerVariables璇﹁В鐨勮缁嗗唴瀹癸紝鏇村淇℃伅璇峰叧娉∣D浜戝叾瀹冪浉鍏虫枃绔狅紒



鏈枃URL锛http://www.odweb.cn/news_show.html?id=171