@andy231 said in Correct way to loop through all entries of a database resource?:
линию в цикле или на запуск потока и отключить ресурс повторного использования, чтобы каждый раз, когд
How about limiting the number of elements in the resource?
Need to check the IP via web response.
You need to get back the information from third party services, they are limitless, some examples:
https://www.maxmind.com/en/locate-my-ip-address
https://ipapi.co/json/
https://ifconfig.me/
After info received, simple parse the result.
Good luck!
For those who needs this later, you can set up http proxy and send a simple get request to https://api.ipify.org , it will give you the ip adress in plain text, no need to parse the json.
One of many simple and easy ways to do it.