LoginSignup
16
15

More than 5 years have passed since last update.

iPhoneでプロキシサーバーの例外設定をする

Posted at

結論から言ってしまうと出来ません。

そこで.pacファイルを使用します。
.pacファイルはProxy auto-configと言ってプロキシ設定を自動で行うための設定ファイルです。

下記のような.pacファイルを作成し、アクセスできる場所へ配置します。
※もちろんプロキシ設定前なのでプロキシを経由せずにアクセス出来る場所である必要があります。

function FindProxyForURL(url, host)
{
  //Access images directly
  if (host == "image.xxxxxx.co.jp") return "DIRECT";
  if (host == "thumbnail.xxxxxx.co.jp") return "DIRECT";

  //For everything else use stg proxy
  return "PROXY [プロキシサーバー]";
}

あとはiPhoneのWi-Fi設定の「HTTPプロキシ」のところで「自動」を選択して.pacファイルを配置したアドレスを入力すればOKです。

16
15
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
16
15