Pregunta

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

¿Fue útil?

Solución

Yes you can.

visitor_ip = request.env['REMOTE_ADDR']
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top