Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Support on site development

Started by obada almaitah 8 years ago · 3 replies · 486 views
8 years ago

Dears,

I need support on site development or scripting issues to work on my website I have some problem with spam attack coming from contact us page I want to install the captcha security am not experience so I need some one to work with me on this issue any advice .
Regards.
Obada

8 years ago

That sucks. What have you already set up for the form? It's normally a simple matter of adding a new field of captcha type as described in the Grav docs. Is there something here that's not clear to you?

You can also try adding a honeypot field first, but I don't know how effective that will be. Also, recently on a form I simply added a validation filter to reject links in text fields, and that worked really well. That's only a good solution if there's no reason for legitimate users to include links in their messages, and if the spam always contains links.

8 years ago

Thank you for sharing but still not clear where i have to install the captcha

8 years ago

You don't install it. You sign up for a Google ReCaptcha account and get a key, which you will use to configure your new captcha field.

Add a field to your form as per the example. Put your key into the field's recaptcha_site_key property, like:

TXT
  recaptcha_site_key: YOUR-KEY-GOES-HERE

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
3 96 6 hours ago
Support · by Anna, 3 days ago
2 95 1 day ago
Support · by Justin Young, 1 day ago
1 64 1 day ago
Support · by Duc , 1 week ago
2 100 6 days ago
Support · by Colin Hume, 1 week ago
2 92 6 days ago