One more SPAM issue topic

  • OksanaM
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0

OksanaM created the topic: One more SPAM issue topic

Hello. I have searched the forum and documentation, but unfortunatelly there is no nice and clean answer what to do with spam. Or I cant understand how to apply advices, so please help me with this.

What I use on my site:
1. Honeypot 1 .
2. Honeypot 2 . I know it is the same function, but maybe the name of the field will do the work making bots actually put a name in this field... I dont know. And the instruction says:

in your form's properties > Advanced tab > More Options > Submit Pieces > Before Submit

but there is no "Before submit" tab, there is "Form pieces>Before" or "Submit pieces>Begin submit". I have put the code in the second one.
3. Recapcha. When I make test mails I always have to choose some images to verify I am not a robot, why do spamers still go through, I don't understand...
4. Honeypot 3, which is not hidden imput but a texfield which is turned off but have a validation rule "Integer or empty".

Still I get some spam. On the forum I found some interesting solutions, but I can't apply them, so maybe I do something wrong.
1. Validating the value of every field, as I got it. No sure if i can use it is spamers fill al the nesessary fields?
$this->execPieceByName('ff_InitLib');

if (ff_getSubmit('vorname') == '' ||
    ff_getSubmit('nachname') == '' ||
    ff_getSubmit('vorname') == ff_getSubmit('nachname') ||
    ff_getSubmit('feld3') == '' ||
    ff_getSubmit('feld4') == '' ||
    ff_getSubmit('feld5') == '' ||
    ff_getSubmit('feld6') == '' ||
    ff_getSubmit('feld7') == '')
{
// echo '<script>alert("Fehler");</script>';
exit;
}
No idea where to put it because the topic is in german.

2. Forbid to use specific words
function ff_badwords(element, message)
{
var badwords = /(funds|Funds|business|Business|Financial|Funding|php|http|www|лента|прогон|tablets|интервала|pills|mg|erectile|.net|http|.com|все|Facebook|mg|viagra|Viagra|сети|SEO|loan|seo|Loan|business|order|GOOGLE|google|revenue|debt|tiniest|vasilievna)/ig; // add the words in this line :)
if (badwords.test(element.value)) {
if (message=='') message = element.name+" contains a spam word.\n";
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_badwords
I have put this in the "Manage scripts - new", applied validation to the field, but it does not work. Should I change something in the code for my site?

Would be very grateful if someone helps me.(
#238480
  • Posts: 269
  • Karma: 1
  • Thank you received: 34

Eddy.vh replied the topic: One more SPAM issue topic

Hello.

OksanaM wrote: Hello. I have searched…

$this->execPieceByName('ff_InitLib');

if (ff_getSubmit('vorname') == '' ||
    ff_getSubmit('nachname') == '' ||
    ff_getSubmit('vorname') == ff_getSubmit('nachname') ||
    ff_getSubmit('feld3') == '' ||
    ff_getSubmit('feld4') == '' ||
    ff_getSubmit('feld5') == '' ||
    ff_getSubmit('feld6') == '' ||
    ff_getSubmit('feld7') == '')
{
// echo '<script>alert("Fehler");</script>';
exit;
}
No idea where to put it because the topic is in german.


The script must be inserted in Submit Piece - Begin submit. Check the Custom button

OksanaM wrote: 2. Forbid to use specific words

function ff_badwords(element, message)
{
var badwords = /(funds|Funds|business|Business|Financial|Funding|php|http|www|лента|прогон|tablets|интервала|pills|mg|erectile|.net|http|.com|все|Facebook|mg|viagra|Viagra|сети|SEO|loan|seo|Loan|business|order|GOOGLE|google|revenue|debt|tiniest|vasilievna)/ig; // add the words in this line :)
if (badwords.test(element.value)) {
if (message=='') message = element.name+" contains a spam word.\n";
ff_validationFocus(element.name);
return message;
} // if
return '';
} // ff_badwords
I have put this in the "Manage scripts - new", applied validation to the field, but it does not work. Should I change something in the code for my site?

Would be very grateful if someone helps me.(


What is the name of your new script?
It must be named ff_badwords imperatively
#238488
Moderators: ForumSupporttomeperica
Time to create page: 0.060 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here