LoginSignup
3
4

More than 5 years have passed since last update.

Proxyサーバーの有無にかかわらずクライアントIPアドレスを取得する

Last updated at Posted at 2012-02-23

HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, REMOTE_ADDR を順にみてくれるらしい。

request.remote_ip
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4