JKG Posted January 13, 2011 Share Posted January 13, 2011 Hey, Wondering if this would work, it is based on the idea that everyone who is a real visitor will be using a browser, is that correct? Do robots use browsers too? if so, it wont work! haha. <? $browser = mb_substr($_SERVER['HTTP_USER_AGENT'], 0, 31); if (!empty($browser)){echo '<form action="send.php" method="post">';} ?> Just thought it was nice and simple, and couldnt see anywhere if it would work or not... Link to comment https://forums.phpfreaks.com/topic/224298-form-spam-protection-idea-will-this-work/ Share on other sites More sharing options...
lastkarrde Posted January 13, 2011 Share Posted January 13, 2011 No. Bots can easily fake user agents. Best to use a CAPTCHA. Link to comment https://forums.phpfreaks.com/topic/224298-form-spam-protection-idea-will-this-work/#findComment-1158854 Share on other sites More sharing options...
JKG Posted January 13, 2011 Author Share Posted January 13, 2011 ah dammit! was just an idea... i suppose if it was that easy, it would have been done already. Link to comment https://forums.phpfreaks.com/topic/224298-form-spam-protection-idea-will-this-work/#findComment-1158855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.