Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Support on site development

Started by obada almaitah 8 years ago · 3 replies · 637 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 webmasterodp, 1 week ago
4 157 6 days ago
Support · by nwhitfield, 1 week ago
2 136 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 559 2 weeks ago
Support · by Gravver, 3 weeks ago
6 347 3 weeks ago