Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click bombing prevention #10

Open
Tangol opened this issue Oct 5, 2021 · 2 comments
Open

Click bombing prevention #10

Tangol opened this issue Oct 5, 2021 · 2 comments

Comments

@Tangol
Copy link

Tangol commented Oct 5, 2021

At the moment, the plugin registers every time a user clicks on the banner. So if a user clicks 50 times in 50 seconds, the plugin will return 50 clicks.

Is there a way/reason to prevent this by using a JS like this one?
The idea is to generate a cookie with an expiration of 24 hours (maybe) or longer, each time a user clicks on the banner.

There's no need for complicated IP storing/checks, as it would be too much, and would complicate stuff, so a cookie would be the easiest way.

What do you think?

@adrianolmedo
Copy link
Member

The idea is good.

What happens if they disable JS? It would have to be implemented from PHP.

@Tangol
Copy link
Author

Tangol commented Oct 5, 2021

Yeah, I was thinking of just a quick and simple solution for the average user that clicks on banners.

Indeed the PHP side would work better and also would give the posibility to keep track of clicks done on every banner position.
So if the user clicks on banner 1 - that banner is saved for 24 hours, then he clicks on banner 2 - that banner also gets saved for 24 hours, and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants