A
A
Alexey2018-05-08 12:15:17
PHP
Alexey, 2018-05-08 12:15:17

IP substitution in requests to a third-party server?

Hello dear forum users. After reading all kinds of materials on the topic on the Internet, at least those that are on the surface and pop up immediately, I did not find an answer for myself.
Initial data.
An application written in php makes requests to vk servers. To obtain large amounts of data, during normal execution, one would have to make thousands, or even tens of thousands of requests, a multi-token client has been implemented, and even works with the /execute method. For requests belonging to the category of obtaining public data, oddly enough, there are no problems. But in the functionality of the application, there are features that require calls to more serious methods, for example, sending private messages. In other words, spam. In order not to become like them and not become one with them, the application implements a fairly advanced system for selecting and filtering users, which determines the target audience. That is, the problem of complaints from users is solved. The newsletter is sent to people who really need it. But there remains a problem with the logic of the work of vk itself. They have a fad - if requests come from different accounts but from the same ip, this is quickly cut off and the accounts fly into a ban. That's right, vk understands that these are bots and "goodbye". And as the support argued - for the sake of the safety of millions, you have to sacrifice a few. Simply put, they don’t care that your application does not disturb the peace of network users and delivers information targeted, only to those who need it. To deal with that - they will not become a normal mailer or a spam bot. Simply put, they don’t care that your application does not disturb the peace of network users and delivers information targeted, only to those who need it. To deal with that - they will not become a normal mailer or a spam bot. Simply put, they don’t care that your application does not disturb the peace of network users and delivers information targeted, only to those who need it. To deal with that - they will not become a normal mailer or a spam bot.
Task.
How to make the vk server think that requests are coming from different ip. Well, at least, I didn’t understand from which ip requests come. As far as I understand, in principle, all the data by which the script can determine the address where the request came from is contained in the request itself. And even before I got acquainted with the topic, you can’t rely on them especially, since the data can be replaced. And here's how to implement it - stupid. Although the solution seems to me to lie on the surface. I can be wrong.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Arkhipov, 2018-05-08
@alekstar79

The IP address is not contained in the HTTP request, it is at a lower level. To request from a different IP address, use a proxy .
Example with CURL:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_PROXY, $proxy);

A
Alexander Aksentiev, 2018-05-08
@Sanasol

Send spam in PM != normal mailer.
Messages are not intended for this.
Fuck users how interested they are, spam is spam.
It is foolish to try to deny it and say that you are not violating anything.
What are you talking about, close his eyes or what?
What are you talking about #2
The solution is called a proxy .
You have such a big tool in your hands, but you haven’t heard about proxies or what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question