- Posts: 149
- Thank you received: 6
Customer registration not using Joomla's email domain blocking
3 years 7 months ago #350337
by icomex
-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.9
-- PHP version -- : 8.0.28
We have a long-standing Hikashop site which constantly fights automated user registrations which use the .ru and .fr domains (they don't do business internationally). We have Joomla configured to disallow users from registering with emails that use those domains - which seems to block Joomla registrations using Joomla forms, but user registrations via the HikaShop Checkout page don't seem to enforce this feature. None of these accounts have attempted or succeeded to complete orders, but they are cluttering up both the Joomla Users table and Hikashop's Customer table.
Does HikaShop enforce this registration restriction? or do I manually need to identify and remove all of these fake accounts from both systems - as I did about two years ago? (there are currently over 200 of these accounts, only a few of which have ever logged in after the fake checkout.)
-- Joomla version -- : 4.2.9
-- PHP version -- : 8.0.28
We have a long-standing Hikashop site which constantly fights automated user registrations which use the .ru and .fr domains (they don't do business internationally). We have Joomla configured to disallow users from registering with emails that use those domains - which seems to block Joomla registrations using Joomla forms, but user registrations via the HikaShop Checkout page don't seem to enforce this feature. None of these accounts have attempted or succeeded to complete orders, but they are cluttering up both the Joomla Users table and Hikashop's Customer table.
Does HikaShop enforce this registration restriction? or do I manually need to identify and remove all of these fake accounts from both systems - as I did about two years ago? (there are currently over 200 of these accounts, only a few of which have ever logged in after the fake checkout.)
Please Log in or Create an account to join the conversation.
3 years 7 months ago #350344
by nicolas
Replied by nicolas on topic Customer registration not using Joomla's email domain blocking
Hi,
HikaShop doesn't currently enforces that restriction on domain names.
However, I think it's a good idea to add it.
We'll work on this for the next release of HikaShop ( in 2 months as we just released the 4.7.2). In the meantime, you'll have to manually delete the user accounts.
HikaShop doesn't currently enforces that restriction on domain names.
However, I think it's a good idea to add it.
We'll work on this for the next release of HikaShop ( in 2 months as we just released the 4.7.2). In the meantime, you'll have to manually delete the user accounts.
Please Log in or Create an account to join the conversation.
3 years 7 months ago #350366
by icomex
Replied by icomex on topic Customer registration not using Joomla's email domain blocking
Thanks. I really appreciate this.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350760
by icomex
Replied by icomex on topic Customer registration not using Joomla's email domain blocking
Just an update: we are literally receiving over a hundred of these fake registrations a day now. Is there a quick way to modify the regex used to validate email addresses to exclude the Russian alphabet?
Please Log in or Create an account to join the conversation.
3 years 6 months ago - 3 years 6 months ago #350767
by Philip
Replied by Philip on topic Customer registration not using Joomla's email domain blocking
Hello,
Yes, it's possible, you can use such RegEx in order to prevent Email Address with Russian alphabet.
We think that you can process some tests with this RegEx :
Hope this will help you to prevent this.
Regards
Yes, it's possible, you can use such RegEx in order to prevent Email Address with Russian alphabet.
We think that you can process some tests with this RegEx :
Code:
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Hope this will help you to prevent this.
Regards
Last edit: 3 years 6 months ago by Philip.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350777
by icomex
Replied by icomex on topic Customer registration not using Joomla's email domain blocking
Good start, though I haven't found where the RegEx test is being performed yet.
In the meantime, It appears that I've successfully blocked the ".ru" registrants by blocking the email domain using Akeeba Admin Tools Pro's email blocking. Joomla's tools to do the same weren't working with Hikashop, but Akeeba's firewall hardening seems to do that trick.
There's still a lot of fake registrants using valid but obviously stolen email addresses, but these are identifiable because they are including a URL within the submitted register_name field. I am attempting to add a small onChange script to the Name field that checks to see if the Name value includes "http" or ".ru". If it finds it, it simply wipes the value of the field immediately. Hopefully this will be enough to discourage a keystroke driven script. If not, I'll have to keep working on finding and tightening the data validation routines.
I do appreciate your help.
In the meantime, It appears that I've successfully blocked the ".ru" registrants by blocking the email domain using Akeeba Admin Tools Pro's email blocking. Joomla's tools to do the same weren't working with Hikashop, but Akeeba's firewall hardening seems to do that trick.
There's still a lot of fake registrants using valid but obviously stolen email addresses, but these are identifiable because they are including a URL within the submitted register_name field. I am attempting to add a small onChange script to the Name field that checks to see if the Name value includes "http" or ".ru". If it finds it, it simply wipes the value of the field immediately. Hopefully this will be enough to discourage a keystroke driven script. If not, I'll have to keep working on finding and tightening the data validation routines.
I do appreciate your help.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350778
by icomex
Replied by icomex on topic Customer registration not using Joomla's email domain blocking
With all the registration forms hardened via javascript and the default Joomla registration forms completely overridden and disabled, it appears that the only solution is to improve the server-side data validation. Maybe with a custom plugin that runs first. That will be a serious challenge for tomorrow.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350784
by nicolas
Replied by nicolas on topic Customer registration not using Joomla's email domain blocking
Hi,
I would recommend looking at extensions.joomla.org/extension/ospam-a-not/
It seems to work great to block spam registrations.
I would recommend looking at extensions.joomla.org/extension/ospam-a-not/
It seems to work great to block spam registrations.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350804
by icomex
Replied by icomex on topic Customer registration not using Joomla's email domain blocking
I'll check it out. Thanks.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350807
by icomex
Replied by icomex on topic Customer registration not using Joomla's email domain blocking
Thank you VERY much for your suggestion of OSpam-A-Not. It has blocked the fake registrations successfully since the moment it was installed - about 1 fake a minute. This is definitely part of my toolbox now.
To help clean up my dataset, I plan to build an admin interface which flags all HikaShop Users who have NOT made a Purchase and haven't returned to the site since they registered, and will display their correlating Joomla User. That should make it easy to identify any accounts which seem suspicious ( e.g.: gibberish user names, even though their email addresses seem legit) and give me a single delete button to export or get rid of them.
Again, thanks for your help!
To help clean up my dataset, I plan to build an admin interface which flags all HikaShop Users who have NOT made a Purchase and haven't returned to the site since they registered, and will display their correlating Joomla User. That should make it easy to identify any accounts which seem suspicious ( e.g.: gibberish user names, even though their email addresses seem legit) and give me a single delete button to export or get rid of them.
Again, thanks for your help!
Please Log in or Create an account to join the conversation.
Time to create page: 0.332 seconds