开发者

Using Amazon EC2 as a proxy for 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 impo开发者_StackOverflow社区rtant 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜