Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
How To Secure Your Contact Form From Bot Attacks

cf64
Registered User
Quote
2023-03-15 08:44:21

Please, has somebody a "simple way" to secure contact page into a website built on RocketCake from bot and robot?
Went to reCAPTCHA but as I'm a beginner, I tried many times without success.
Thanks to all of you for your help and support!
Best Regards


erik
Registered User
Quote
2023-03-15 09:10:35

Add a simple verification field, like here:
https://www.ambiera.com/forum.ph...


cf64
Registered User
Quote
2023-03-15 09:21:10

Thank you very much Erik.
Went to it but, what is the latest code I should enter because it seems it has been updated many times
Also, this code, were should I enter it? Must I create a specific space for it? Must I enter in into the page and modify HTML?
So sorry for my (stupids) questions and thanks a lot for your feedback


erik
Registered User
Quote
2023-03-15 10:22:40

Just as written on that other post: Replace the code in your PHP code element with the one from the forum and add another field for your webform, and set its name to "verfication". Replace the word "foobar" in the code with whatever real people should enter into that verification text field.


cf64
Registered User
Quote
2023-03-15 10:25:05

Thank you so much Erik.
I will try with my very very basic knowledge and will keep you informed.
Best Regards!


cf64
Registered User
Quote
2023-03-18 22:06:33

Erik,
Thank you and sorry, it's me again...
So, when you mention...
"Replace the code in your PHP code element with the one from the forum and add another field for your webform, and set its name to "verfication"
...How I can do that please?
"Replace the code in your PHP code"...where can I find that please?
"Add another field for your webform"...What do you mean?
"Set its name" How can I do that?

Would you have a picture for me to better understand all of these things to do Erik please?

Sorry again Erik and thanks in advance.
Regards!!!


micaelo
Registered User
Quote
2023-03-19 02:07:15

Your first post in this thread reads as if you already have created your contact form. Your questions, however, suggest that you haven't got that yet. So please go to the RocketCake Help where you will find a step-by-step instruction on how to create a contact form.
https://www.ambiera.com/rocketca...
This will tell you how to enter a text field (for verification) and where to put the php-code.


cf64
Registered User
Quote
2023-03-19 12:55:36

To micaelo

I have already have created your contact form

Please, find below what I have into the PHP:


$text = "";

foreach($_POST as $name => $value)

{

$text .= "$name : $value\n";

}



if ($text != "")

{

echo '<span style="font-size:15pt; font-family:Tahoma, Geneva, sans-serif; color:000000; line-height: 1.5; ">Thanks for contacting CONSULTING FIRM.';

mail("pcoqueblin@consultingfirm.fr", "Contact form request", $text);

}


So, based on what is already into the PHP, what should I do, what should I change and more important, how to do it please?

Again, thanks to all of you for your help and support for me to have this solved.
Kind Regards


micaelo
Registered User
Quote
2023-03-19 13:38:59

So, if you already got this, you already know how to enter a text field. Just add another one (the one where visitors will have to enter the verification phrase), following erik's instruction.

And in the php box replace what you have in there currently with the code given in the other thread, again following erik's instruction.


cf64
Registered User
Quote
2023-03-21 02:34:46

TO micaelo

Finally....IT WORKS !!!
So, thanks to you ... and all the ones who helped me on this subject.
Best regards...


taoz
Registered User
Quote
2023-03-21 18:58:18

It's funny, I've had one for almost ten years now totally unprotected and there are years between it's getting spammed, despite it's easy to find on google. The site admin email is getting spammed daily though.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact