I added the following lines of code to catalog -> controller -> account -> register.php because most of the spam telephone number start with 8
if ((utf8_substr($this->request->post['telephone'],0,1) == '8')) {
$this->error['telephone'] = $this->language->get('error_telephone');
}
I put the line just after this one.
if ((utf8_strlen($this->request->post['telephone']) < 3) || (utf8_strlen($this->request->post['telephone']) > 32)) {
$this->error['telephone'] = $this->language->get('error_telephone');
}
But it appears to be ignoring the new line.
I've also tried != '0' in place of =='8' but still doesn't stop it.
Can anyone tell me what I am doing wrong please?
Regards
Pete
Have you refreshed cache ?
Are you using captcha?
search the marketplace
https://www.opencart.com/index.php?rout ... ch=captcha
https://www.opencart.com/index.php?rout ... earch=spam
spam buster
invisible captacha
https://www.google.com/search?q=opencar ... ncart+spam
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I thought it would help by creating a "Telephone number" error and not let the registration go through.
I don't know how spam things work so I may be totally wrong.
Thanks for the links. I had searched the extensions but obviously looking for the wrong thing as I couldn't find any.
Regards
Pete
substr not utf8_strlen
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I installed your spambot buster last night and this is the first morning fot quite a while that I haven't got up to over 100 spam registrations.
I actually woke up to NONE.
Exellent plugin so far. Good work and thank you.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Glad to hear it works.wolfdogpete wrote: ↑Fri Feb 17, 2023 8:55 pmHi JNeuhoff
I installed your spambot buster last night and this is the first morning fot quite a while that I haven't got up to over 100 spam registrations.
I actually woke up to NONE.
Exellent plugin so far. Good work and thank you.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Trying to do a quick hack that might break stuff when extensions exist that fix the issue properly:
https://www.opencart.com/index.php?rout ... er=antropy
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: Bing [Bot] and 22 guests