maxpower99 10 Posted February 24, 2016 Share Posted February 24, 2016 [DE] Wie kann ich einstellen per PHP, damit jeder Besucher nur 10 Klicks pro Sekunde machen darf? [EN] How can I adjust my PHP, so that every visitor may make only 10 clicks per second? Link to comment Share on other sites More sharing options...
Frozen 189 Posted February 24, 2016 Share Posted February 24, 2016 I don't know anything about php, but i think this will help: http://stackoverflow.com/questions/7199783/limit-button-clicks-to-once-every-5-minutes https://www.sitepoint.com/community/t/how-to-count-the-number-of-times-a-button-is-clicked/27287 Mix both and i think it will work Link to comment Share on other sites More sharing options...
maxpower99 10 Posted February 24, 2016 Author Share Posted February 24, 2016 1 hour ago, Frozen said: I don't know anything about php, but i think this will help: http://stackoverflow.com/questions/7199783/limit-button-clicks-to-once-every-5-minutes https://www.sitepoint.com/community/t/how-to-count-the-number-of-times-a-button-is-clicked/27287 Mix both and i think it will work No it is not. Link to comment Share on other sites More sharing options...
Ayaka 300 Posted February 26, 2016 Share Posted February 26, 2016 You can not do this with php because this is client side! You can do it with javascript / jQuery. Created a codepen: http://codepen.io/anon/pen/ZpNmOE Here we dont count clicks per secound but the result is the same. Maybe try to redescribe your scheme. Why do you want to do this? What is the background thought? Perhaps we have a better solution F E E L - T H E - A W E S O M E N E S S Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now