Answer the question
In order to leave comments, you need to log in
How to make a person see all ads?
There is a site, it has a way to get currency, "coins". In order to get them, the user must follow the link, view the ad, then enter the captcha and automatically go to the next ad, and at the end to the php file where the number of coins will be updated. But abusers can simply reload the php file and add coins to themselves. How to protect yourself from this? If you put a separate php in front of each captcha that will generate the code, and the next one will not open until it receives this code, but again, you can just open these files in order and ignore ads. A site through which links are shortened and cat cut ads are shown. net (just don't ban me for advertising, I'm just showing what site I'm working with to make it clearer)
Answer the question
In order to leave comments, you need to log in
The .pop() method pops the last value from the array.
You need to pull out arbitrary.
Use the slice / splice methods for this
Make a unique token, which is given at the beginning of the "mining" of coins. It is also desirable to add the column "Last viewed" to the table with users, in the date. For example, when the user watched ads for the last time. You can also make a table with advertising identifiers, and generate them in advance at the beginning of viewing ads (from abusers) (example: TOKEN (which is given at the beginning of viewing ads) | unique id | status. And then if the user has viewed demolish this record (also at the end you need to compare whether he watched all the ads), and if he didn’t watch it (or the time has expired), also demolish it, but do not give confirmation that he completed the task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question