Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Andy Yates
Andy Yates
12,726 Points

Honeypot failure!

Hi!

I've been using the honey pot technique, shown in the simple PHP application classes, to stop spam from my forms, but spam is still getting through.

The code is implemented correctly, as I've tested the unhidden fields myself, but the spammers are obviously auto-detecting the fields and skipping them.

Does anyone know of a more robust way of doing this?

Thanks in advance!

Andy

2 Answers

James Barnett
James Barnett
39,199 Points

captcha's are the industry standard way of doing this

Andy Yates
Andy Yates
12,726 Points

Thanks James,

I'd rather avoid captcha if possible. I should've been a little more specific in my post.

I'm trying to keep the poor user out of the battle against the spam bot, and whilst I realise that no method is 100% effective, I was wondering if there was a more reliable way to implement a honey pot than the basic method mentioned in the simple php application classes?

Thanks again...