Answer the question
In order to leave comments, you need to log in
How to use VPN in PHP for scraping?
Curl has a parameter in which you can enter a web proxy, ok but I want to use my vpn servers, why pay twice. My vpn provider gives about 50 servers in different countries, which allows you to parse any site from his country.
Works on PPTP L2TP OpenVPN SSTP.
Please advise how to use human vpn in php.
The purpose of the idea is to parse 8 sites in different languages in different countries through these VPNs and so that the sites understand that I am from their country, because some do not allow you to receive information if your ip is from another country.
You either need to keep these 8 vpn up all the time and only curl, for example, specify which ip to go to or raise it again for each connection. At least somehow.
I searched Google and did not find anything, that the old one came across and did not understand the meaning. Thank you.
Answer the question
In order to leave comments, you need to log in
VPN needs to be raised in the system and configure routing
in PHP, select using CURLOPT_INTERFACE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question