Pergunta

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

Foi útil?

Solução

Yes you can.

visitor_ip = request.env['REMOTE_ADDR']
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top