6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HerokuのIPアドレス

Last updated at Posted at 2019-01-30

  • heroku infoでRegionを調べる
    • 例えば以下のように表示される
Region:         us
  • heroku regions --jsonでHerokuの各Regionの詳細を表示し、name欄が上記のRegionである要素を探す
    • 例えば「us」であれば以下
  {
    "country": "United States",
    "created_at": "2012-11-21T20:44:16Z",
    "description": "United States",
    "id": "59accabd-516d-4f0e-83e6-6e3757701145",
    "locale": "Virginia",
    "name": "us",
    "private_capable": false,
    "provider": {
      "name": "amazon-web-services",
      "region": "us-east-1"
    },
    "updated_at": "2016-08-09T22:03:28Z"
  },
    {
      "ip_prefix": "18.208.0.0/13",
      "region": "us-east-1",
      "service": "AMAZON"
    },

もしもWhitelistに登録するためにHerokuのIPアドレスを知りたいのなら、「多数」「変更可能性あり」なので非現実的、どうしてもと言うなら https://devcenter.heroku.com/articles/quotaguardstatic 等のInbound IP Address固定アドオンを検討すべき
ちなみにQuotaGuard Staticは「a62b1d0b4983db763450411fd393b3ce-eu-west-1.getstatica.com」等の覚えにくいドメインのURLを許容するか、それが嫌ならカスタムドメインを適用する必要あり

6
3
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
6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?