Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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...