How to bypass IP validation with cURL script

February 17, 2011 PHP Recipes

Hi All,
all we know the Tor network for anonymous surfing. In case you’ve never header about it – welcome to https://en.wikipedia.org/wiki/Tor_%28ano … network%29

So, can we use it in a php cURL script to bypass IP validation, country or even your own provider IP ban? Yes, we can. And here is the tutorial.

Before I start, I should add a disclaimer: everything you see below is NOT a way to violate any network resources rules. You should NOT use this for any kind of attacks/fraud or spam or anything of that kind

So, first we need to install a Tor client. Since I’m on a windows box now, I’ll use Vidalia bundle. This all-in-one package contains the Tor client itself, a proxy server that your browser can use for anonymous surfing. You can donwload it from https://www.torproject.org/dist/vidalia- … -0.2.7.exe The install is pretty straightforward. Once you’re done with it (be sure to check Privoxy install, you can also check Torbutton extension for FF, but it’s up to you, it is not necessary for our task) and launch the app, you should see something like:

If you see ‘connected to Tor network’, congratulations, you’re able to create the script itself. By default it binds the proxy to 8118 port
Let’s consider some basic cURL script:

if you launch it in command line , you should see HTML output of https://whatismyipaddress.com/ giving you an address of someone connected to Tor, something similar to:

you’re done.

You may ask, what is the purpose of all this. Well, assume there is a service that allows some limitation of connections for one IP. It may not need an account, allowing anonymous connections, but it tracks your IP. WHOIS databases for instance. Using this approach you can bypass these limitations.


Leave a Reply

Your email address will not be published