Sunday, December 16, 2007

CAPTCHA addition and iframe removal

Since I'm on Christmas Break from WSU now, I was able to work on KylanAndKristen.com (our wedding website) this afternoon.

The first task was to modify the guestbook to prevent it from being spammed. If you've visited the site lately, you probably know that it was being attacked by some spambots. After searching around online a bit, I finally ran into the CAPTCHA approach. A CAPTCHA is a test that makes sure that the guestbook user is a human and not a computer. It provides the user with a squiggly image of a word and asks them to type the word into a textbox. If the entered word matches the word in the image, the entry can be put in the guestbook. Since the squiggles make it difficult for a machine to read the image, the CAPTCHA should prevent any spambot messages from getting through. Hooray!

As I was working on implementing the CAPTCHAs, I decided to get rid of all of the iframes in the website. I had used iframes when I was first building the site in August because I wasn't sure how to mix PHP with HTML. It turns out to be really simple actually, so I was able to remove the iframes and make the site pages look a lot more neat.

Check out our wedding website, and enjoy the enhancements. The next thing to do (which will take A LOT of work) will be implementing an RSVP system for the wedding guests.

This and more at Dupyshon.com

No comments: