문제

Can I access the IP address of the client from request header?If yes,how?

도움이 되었습니까?

해결책

Yes you can.

visitor_ip = request.env['REMOTE_ADDR']
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top