Documentation / Tutorials / Server

Run PHP scripts using rotating proxies

/ Server / Run PHP scripts using rotating proxies

Sometimes, we want our PHP code to run behind the proxies to hide our IP address.
This tutorial will explain how to set up rotating proxies using a bash script.

Create the PHP script which needs to be run behind the proxies.
eg. index.php

Suppose we want to scrap the data and we don’t want to be banned from the site server.

Create the file on our server file system.

make sure your index.php and are in the same folder.

make the file executable by firing this command: chmod u+x

to test the functionality run the file using ./ command.
now our PHP script will run behind the proxy server.


This tutorial will be helpful when you are scraping big data and don’t want to get banned.

Most Popular

Leave a Reply

Your email address will not be published.