dev/asp.net, c#

[asp.net] Request.ServerVariables Collections 정보 보기

코딩for 2021. 1. 18. 10:50
반응형

 

 

[클라이언트 IP 주소 얻기]

 

[asp.net] 클라이언트의 IP주소 얻기 - Request.ServerVariables["HTTP_X_FORWARDED_FOR"], Request.ServerVariables["REMOTE_

요청한 클라이언트의 IP 가져오기 Request.ServerVariables["REMOTE_ADDR"]; 를 통해서 기본적으로 요청 클라이언트의 IP 를 얻어올 수 있다. 하지만 해당 서버가 proxy 서버를 통해서 전달이 된 경우 REMOTE_ADDR.

askforyou.tistory.com

 

Request ServerVariables Collection 

ALL_HTTP HTTP_CONNECTION:keep-alive 
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7 
HTTP_REFERER:https://www.google.co.kr/
HTTP_UPGRADE_INSECURE_REQUESTS:1
ALL_RAW  
APPL_MD_PATH /LM/W3SVC/1313000914/ROOT
APPL_PHYSICAL_PATH D:\www\
AUTH_PASSWORD  
AUTH_TYPE  
AUTH_USER  
CERT_COOKIE  
CERT_FLAGS  
CERT_ISSUER  
CERT_KEYSIZE  
CERT_SECRETKEYSIZE  
CERT_SERIALNUMBER  
CERT_SERVER_ISSUER  
CERT_SERVER_SUBJECT  
CERT_SUBJECT  
CONTENT_LENGTH 0
CONTENT_TYPE  
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE  
HTTPS_SECRETKEYSIZE  
HTTPS_SERVER_ISSUER  
HTTPS_SERVER_SUBJECT  
INSTANCE_ID 1313000914
INSTANCE_META_PATH /LM/W3SVC/1313000914
LOCAL_ADDR 183.111.144.153
LOGON_USER  
PATH_INFO /Lecture/3_beginner_Objects/Request_ServerVariable.asp
PATH_TRANSLATED D:\\Request_ServerVariable.asp
QUERY_STRING  
REMOTE_ADDR 211.206.227.2
REMOTE_HOST 211.206.227.2
REMOTE_USER  
REQUEST_METHOD GET
SCRIPT_NAME /Request_ServerVariable.asp
SERVER_NAME www.tistory.com
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/7.5
URL /Request_ServerVariable.asp
HTTP_CONNECTION keep-alive
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7
HTTP_COOKIE  
HTTP_HOST www.taeyo.net
HTTP_REFERER https://www.google.co.kr/
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36
HTTP_UPGRADE_INSECURE_REQUESTS 1

 

 

반응형