dongshan1036 2011-08-09 02:18
浏览 71
已采纳

使用Amazon EC2作为PHP cURL的代理

I'm new to Amazon Web Services/EC2. Would it be possible to setup a private proxy that I could connect to through PHP cURL?

An important caveat is that it should be possible to access from a shared host which I don't have physical access to.. The solutions I've seen elsewhere seem to require that you use a specific local machine to access it.

  • 写回答

1条回答 默认 最新

  • duanluanlang8501 2011-08-09 02:22
    关注

    If you setup Squid on the EC2 server and restrict it by username and password AND/OR IP address it would be just fine. As long as your second server (even shared host) has PHP cURL support you should be fine, as you can define username and password you want to use to access the proxy server while making a curl request. You can use the IP of the shared box to secure your proxy server, so that other people don't start abusing it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 QT6颜色选择对话框显示不完整
  • ¥20 能提供一下思路或者代码吗
  • ¥15 用twincat控制!
  • ¥15 请问一下这个运行结果是怎么来的
  • ¥15 单通道放大电路的工作原理
  • ¥30 YOLO检测微调结果p为1
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下