Jump to content
X2Community Forums

Recommended Posts

Simple solution: Try to add some HTML-code in every form (additional settings --> advanced --> custom HEAD), e.g. 

 

<input type="text" name="foo" style="display: none;">

 

and sort it out, if filled - only spambots will fill your "honeypot field".

 

 

KR, Michael

Link to post
Share on other sites

Hi alt_f4,

 

Thanks for that.  Ive put the following in head and CSS:

 

<p class="antispam">Leave this empty<input type="text" name="url"></p>
  
<?php 
// if the url field is empty 
if(isset($_POST['url']) && $_POST['url'] == ''){
     // then send the form to your email
          mail( 'you@yoursite.com', 'Contact Form', print_r($_POST,true) ); 
// otherwise, let the spammer think that they got their message through
?>
 
.antispam { display:none;}
 
This seems to work, however, the form, no longer displays the short message conforming the email has been sent.
 
Any ideas?
 
Cheers,
 
Mike
Link to post
Share on other sites

Hmmm, maybe someone from the staff jumps in?

 

Guess an integration of google re-captcha would be nice (X2 has already some google stuff integrated, guess it wouldn´t be a big deal)?

 

 

We´re using WP with NinjaFirewall to integrate X2 - NinjaFirewall has a transparent anti-spam system. And adds an extra layer of security.

 

KR, Michael

Link to post
Share on other sites
  • 2 weeks later...

Sorry for the late reply, but yes, the honeypot field alt_f4 has suggested should work perfectly. However, if you're adding that PHP code to the custom CSS in the weblead designer, then it will unfortunately not function as expected. If you want to go this route, you'll need to customize the WebFormAction component.

 

That said, I agree completely that CAPTCHA would be nice in this situation, and am happy to report that CAPTCHA integration on weblead and service case forms is well underway, and should be available in the next update.

 

Raymond

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...