How can I redirect HTTP requests made from an iPad?

前端 未结 17 2400
后悔当初
后悔当初 2020-12-12 09:53

Since on an iPad we cannot edit the hosts file (without jailbreaking), how can we arbitrarily redirect web traffic to another url?

This would be important for someth

17条回答
  •  醉酒成梦
    2020-12-12 10:33

    If you have a live website you can use for this:

    You can add an A record to your DNS configuration: something.yourdomain.com which points to your local IP address, then add an entry for something.yourdomain.com to your virtual hosts file. Restart Apache, get your iOS device on the same network and you're good to go.

提交回复
热议问题