Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Suggestion which would also protect the VirtueMart registration form from Spam

More
6 years 4 months ago - 6 years 4 months ago #5580 by jk1
Hello Aicha,

today we were discussing strange spam registrations which Abhishek Das (the owner of virtueplanet.com), which somehow passed all logs and the Google captcha on several Joomla websites. He wrote his own plugin this morning which logs every bit of information (full raw request, url, $_SERVER etc) for every successful registrations, in order to get more information. During the discussion I suggested to also install your SpambotCheck plugin and try it's logging features.

He did have a look at it and replied: "...just checked the codes of SpambotCheck plugin. It can not block spam through VM registration form because it uses "jform" to get the input data onUserBeforeSave
It can log them though.

A little bit later he suggested the following change in spambotcheck.php which would enable the plugin to also protect the VirtueMart (Shop) registration form:

In lines 42-44 replace:
Code:
"fullname" => $data['name'], "username" => $data['username'], "email" => $data['email1']

with
Code:
"fullname" => isset($data['name']) ? $data['name'] : JRequest::getVar('name'), "username" => isset($data['username']) ? $data['username'] : JRequest::getVar('username'), "email" => isset($data['email1']) ? $data['email1'] : JRequest::getVar('email1')

What do you think? Update the plugin with this? :)
Last edit: 6 years 4 months ago by jk1.

More
6 years 4 months ago #5581 by Administrator AV
Hi jk1,

thanks for your suggestion!

Making the suggested change will probably result in my plugin hooking into a lot of other extension, which "auto registrate a Joomla! user" as well (for example Akeeba Subscription....), too.

At the moment, I'm not absolutely sure, if that is what I want, but I think this could be solved, by adding a plugin parameter, to switch between the two ways of getting the data. I think, that especially with Joomla! 4 coming up, I will have to check the plugin code soon anyway and I will take this as an oportuinity to look into your suggested modifications as well. I think I can adapt them one way or the other, so that with the next version of the plugin, you will be able to use the protection the plugin provides with VirtueMart as well.

Until then, feel free to change the code on your installation.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum