I am getting a lot of spam on my site, it is just a simple form with one text input for a question and an email input field that gets emailed to me, so I am looking for something very simple to block the spam, as I am getting the emails every 20 minutes or so. Obviously, it is VERY annoying... so I am hoping to make the "honeypot" method work so that I can just have a hidden field that is meant to be left blank. I'm sure many others have struggled with this but I have not been able to find a definitive answer, so I thought I'd just ask.
Can anyone help me with an EASY method to validate a blank field??
Administrators- I'm sure you've heard this before but it would be really great if there was just a "validate-blank" option or something of the sort.
Thanks in advance.
Can anyone help me with an EASY method to validate a blank field??
Administrators- I'm sure you've heard this before but it would be really great if there was just a "validate-blank" option or something of the sort.
Thanks in advance.
Hi,
First off, have you tried to enable the ImageVerification option,or the ReCaptcha plugin?
Next, if you'd like to add some honeypot check, the Serverside Validation is where to look for this. I'd suggest some code like this:
Add this to the Serverside Validation, and create a 'disabled' input named Zsomefield' in your form..
/Fredrik
First off, have you tried to enable the ImageVerification option,or the ReCaptcha plugin?
Next, if you'd like to add some honeypot check, the Serverside Validation is where to look for this. I'd suggest some code like this:
<?
if (JRequest::getVar('somefield') != '') {
return 'Evil spammer! Be gone';
}
Add this to the Serverside Validation, and create a 'disabled' input named Zsomefield' in your form..
/Fredrik
Hi there,
I'd like to implement this method too. Can you please advise which file I need to add that code (and what line number approx)?
Many thanks!
I'd like to implement this method too. Can you please advise which file I need to add that code (and what line number approx)?
Many thanks!
Hi wastedspace,
As Fredrik says it's in the serverside validation. That's on the validation tab in the Form Editor.
Bob
As Fredrik says it's in the serverside validation. That's on the validation tab in the Form Editor.
Bob
Hi Bob,
Forgive me. Of course it is in that bit. Had it in my head I had to edit some php code in the backend.
Many thanks!
Ali.
Forgive me. Of course it is in that bit. Had it in my head I had to edit some php code in the backend.
Many thanks!
Ali.
This topic is locked and no more replies can be posted.