EllisLab alum and web developer Derek Allard shared a snippet he uses to have a “delete and ban” link next to comments on the front end of his site. When he gets a spam comment he can easily dispose of the problem and ban the user.
When spammers do sneak comments through my blog, I have a very simple one click* snippet to ban them similar to the way the EE forum’s “ban member” option works. Essentially, beside every comment, I have a “delete & ban” link. This saves me needing to fire up my control panel, and navigate to the proper place. It just saves a bit of clicking around.
The snippet is similar to other code you may have used before that code direct links to the Control Panel in your template and use the
entry_id variable to point to the proper entry or comment.
Read Derek’s post for the code and details.