+ 1
How to ban an account on your site for a fixed number of days?
Hello friends, please is there a way I can program the ban feature on my site (with JS or Php) in such a way that if I ban an account from accessing the site features, the site automatically unbans the account after a fixed time interval (eg one week), without me having to manually do it myself???
1 Odpowiedź
+ 4
Depends on your backend system and programming language.
But generally it should store the ban date (and maybe ban length) somewhere, then remove the ban if the current date is past the ban length.