posted by brwyatt on September 22, 2013

Well... two things happened that lead up to Captchas:

  1. I got tired of having to go through and delete a bunch of garbage comments and banning those IPs
  2. while doing so, I managed to accidentally delete all the comments, including the two legitimate ones. (oops, oh well!)

So now, to leave a comment, there is a simple captcha that must be completed before it will let you submit the comment.

Turns out, it isn't hard, but isn't easy, either. It wasn't as simple as just slapping in the code used on the Contact form, had to do some tooling in other parts of the comment components, too (yay MVC patterns). But, in the end, I was still able to just "reuse" the captcha component from the Contact form, I just had to make sure the Blog Comment Model, View, and Controller were all on the same page about it, and had to add in stuff to make sure it references the component correctly. If anyone else wants to get it working in Yii, this is where I found how to do it: The one thing he is missing is adding it to the attributeLabels() function in the BlogComment model, but that's not really important. I hope this reduces the amount of spam I get here.

And then... this further lead to me deciding to tweek the site a bit. Updated the index page, updated the About page, and FINALLY fixed the Server Stats page which has been broken for a while (it was still trying to get stats for the old Freenet drive, which no longer exists). In any case, I hope it looks/reads a bit nicer now. After all, it was first written TWO YEARS ago!

Now if only I can find some time to put in the effort to get the Hypervisor running...

One comment

Anthony Milam says:
March 9, 2014 at 06:36 am
Good job deleting comments, came from seeing your donation on humble bundle, then from your twitter.

Leave a Comment

Fields with * are required.

Please enter the letters as they are shown in the image above.
Letters are not case-sensitive.