Answer the question
In order to leave comments, you need to log in
How to check proxy?
How to check proxies for the fact that they are blocked on any resources or not automatically through PHP?
Answer the question
In order to leave comments, you need to log in
Request something through this proxy and check if it returns what you need or something else (or nothing at all). Curl to the rescue.
Most often there are no problems with proxies.
But if you want to check automatically:
You make a CURL request through a proxy (in the cycle, slipping a new proxy each time) to the site you need to check
1. Option send an HTTP GET request, see the response
2. Option send an HTTP HEAD request. The body will not come, save some time .
3. Option to read the first line from the current stream if == HTTP/1.1 200 then the proxy is not blocked. T. e. even faster option.
Well, you can also set a timeout for the proxy and a timeout for waiting for a response and a timeout for reading data. That's all for high-speed enumeration.
Well, in general, it's better not to write in php.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question