DylanBarnes06 Posted July 14, 2015 Share Posted July 14, 2015 (edited) Hello, I have a issue where my server IP is banned from connecting to a website to get info, I think for making too many requests but I am well under their limits. $info = file_get_contents('http://example.com'); I want to make the php connect to the website using TOR, so it will be able to get the info. The TOR connection and port is 127.0.0.1:9050. So I just need to make php make the outgoing connection using the above IP and port? Is there any way I can do this? Thanks in advance. Dylan Edited July 14, 2015 by DylanBarnes06 Quote Link to comment Share on other sites More sharing options...
scootstah Posted July 14, 2015 Share Posted July 14, 2015 Why not contact the site and try to work it out? Quote Link to comment Share on other sites More sharing options...
DylanBarnes06 Posted July 14, 2015 Author Share Posted July 14, 2015 Why not contact the site and try to work it out? They don't have any way of contacting them unfortunately. It is just a site for exchange rates. Quote Link to comment Share on other sites More sharing options...
scootstah Posted July 14, 2015 Share Posted July 14, 2015 You can use CURL with a proxy. That's as much as I'm willing to share, because I don't know your true intentions. Sorry, and good luck. Quote Link to comment Share on other sites More sharing options...
abdul202 Posted July 18, 2015 Share Posted July 18, 2015 as command line use this curl --socks5 127.0.0.1:9050 http://example.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.