Let's say you get a spam nasty malicious user that is constantly posting bogus comments (note: I want people to be able to post unlimited comments so they can talk back and forth argue etc. lol) but you get some jerk that's spamming things and all I have to do the way I designed my site is log into mysql and add a 0 to the activated section. Now they can't log in anymore and post BUUUUUUTT THE PROBLEM with this is if they are still in session they UNTIL THEY CLOSE THEIR BROWSER WHICH COULD BE HOURS OR DAYS etc. they can CONTINUE TO POST SPAM until that session expires to which they can never log in again.
So my 7200 second idea is a safety for once they are blocked the system will log them out automatically to which they can't log in anymore. THE PROBLEM with his idea is users posting a long comment COULD GET LOGGED OUT WHEN THEY CLICK POST AND LOSE THEIR WORK OF TYPING THE COMMENT!!.
You might say like a 30 second warning is the best alternative where the user has 30 seconds to click continue or the session times out. I'm ok with this idea only again the malicious user that has just been blocked so they can't log in anymore CAN KEEP CLICKING CONTINUE TOO AND SPAMMING AWAY.
Solutions or ideas anyone has on this please let me know? I was thinking about changing my bInSession function to checking to see if the account in Activated in the users in a MYSQL database but this connecting like that over and over again seems costly..."sigh"

New Topic/Question
Reply


MultiQuote





|