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