I've got a problematic user I need to block from my site. And while I know I could use .htaccess, I'd prefer to adopt a blocking strategy that would account for the possibility of the user's IP address changing.
I imagine something like: Assigning a cookie if the IP address in question appears, then banning the cookie. Perhaps I could give my site enough time to assign the cookie and then implement .htaccess. But I realize this approach could be quite crude.
So I'd welcome feedback on how to go about this.