Padideh
Padideh

Reputation: 149

Run function in time

I want block user ip if run this function more than 5 times, and this limit only be for 15 minutes, is it possible? newbie to php and no idea how should start or using what? no matter how to block user ip.. i just want to know how can i set limit in certain time.

if executed more than 5 , block for 15 minutes after 15 minutes user can execute, but if again more than 5 times, block it again.

PHP:

if(isset($_GET['login'])){
// some code
function sendSMS(){
// do something 
}
}

Need logic and what php function should use?

Upvotes: 0

Views: 35

Answers (1)

GermanMech
GermanMech

Reputation: 63

So basically you want some people to write you the code? You should write it yourself and if you need help with a specific task you can ask here. If you want to put your programm in the internet you should be more experienced in php.

Upvotes: 1

Related Questions