Jump to content

lastfahrt11

Members
  • Content count

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. lastfahrt11

    Fake accounts

    this stop most spam and inform you by mail $bad_companies = array('google', 'apple', 'add next', 'add next'); add this after line 58 $error = false; //Added to block spammers A $bad_companies = array('google', 'apple'); if (in_array(strtolower($company), $bad_companies)) { $error = true; $messageStack->add('create_account', "You have triggered spamming prevention rules. If your info is correct and you are not a spammer please contact us or try again."); $spam_email_text = "Spammer Alert: <b>" . $firstname . " " . $lastname . "</b> Using company name <b> " . $company . "</b> triggered spam alert."; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'BOT Spammer Alert!', $spam_email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } if (in_array(strtolower($entry_tax_id), $bad_companies)) { $error = true; $messageStack->add('create_account', "You have triggered spamming prevention rules. If you info is correct and you are not a spammer please contact us or try again."); $spam_email_text = "Spammer Alert: " . $firstname . " " . $lastname . "Using company name: " . $company . " with tax id: " . $entry_tax_id . " triggered spam alert."; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'Spammer Alert:', $spam_email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } //block ZIP CODE without number like this hjhjkjgkjbkgjg if ($postcode != '') { if (ctype_alpha($postcode)) { $error = true; $messageStack->add('create_account', "You have triggered spamming prevention rules. If you info is correct and you are not a spammer please contact us or try again."); $spam_email_text = "Spammer Alert: postcode" . $firstname . " " . $lastname . " " . $email_address . " Using company name: " . $company . " with postcode: " . $postcode . '-'. $good_postcode . " triggered spam alert."; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'Spammer Alert:', $spam_email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); }} //END Added to block spammers
×