Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Support on site development

Started by obada almaitah 8 years ago · 3 replies · 720 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 TomW, 2 weeks ago
8 228 9 hours ago
Support · by alex, 2 months ago
8 667 1 day ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 160 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago