Python獲取客戶端IP地址

獲取客戶端IP地址 if 'HTTP_X_FORWARDED_FOR' in request.META: ipaddress = request.META['HTTP_X_FORWARDED_FOR'] else: ipaddress = request.META['REMOTE_ADDR']
相關文章
相關標籤/搜索