سؤال

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