thomaspaulson / silverstripe-contactform

contact form on sidebar - silverstripe module
1 stars 2 forks source link

Spam Protection #1

Open mhenden opened 9 years ago

mhenden commented 9 years ago

I'm having problems getting SilverStripe SpamProtection module to work with this. Was hoping you might have a few pointers -- also should mention that while module looks great I'm not getting any submissions in my local test environment and am wondering if I should be -- or if this will happen once site is on server...

Really need to get spam protection on as I don't want to be bombarded with crap once site is live!

thomaspaulson commented 9 years ago

Hello Mike, Unfortunately, you need mail server to work on local machine. i will look into spam protection and come up with something soon.

mhenden commented 9 years ago

That sounds great thanks Thomas — love SilverStripe but I’m not really a programmer and am starting to feel really out of my depth here!! If mail issues just down to local environment and will work fine on live server that’s great, but I really want some sort of spam protection in place before I upload site — I’ve had too many problems with form spam in the past!

On 25/07/2014, at 4:28 pm, thomas paulson notifications@github.com wrote:

Hello Mike, Unfortunately, you need mail server to work on local machine. i will look into spam protection and come up with something soon.

— Reply to this email directly or view it on GitHub.

voodoomajik commented 9 years ago

Hi There Have you managed to have a look at this? i am currently using you module in a project and can see it being useful in the future as well. i have just spent a couple of hours trying to get the spam protection going with no luck. it would be nice to have it going. i will have another go at it when i have some time but if you have some ideas it would be a help.

thomaspaulson commented 9 years ago

Hello

I have enabled support for spam protection and I have tested with math spam protection module, also rename the ContactForm.ss to ContactForm.ss_ so that spam feild is visible by default Form template file

thomaspaulson commented 9 years ago

Hello Boys, hope enabling spam protection helped you solve the issue, do reply

mhenden commented 9 years ago

Hi thomas.paulson, sounds great. How do I get spam protection to work? Also where do I configure where form is to be sent to? The _config.php file?

thomaspaulson commented 9 years ago

Hello mike, you can enable spam protection as metioned in this link https://github.com/silverstripe/silverstripe-spamprotection.

Below is the code which I used to test spam protection with MathSpamProtector ( https://github.com/silverstripe/silverstripe-mathspamprotection )

mysite/_config/spamprotection.yml

---
name: spamprotection
---
FormSpamProtectionExtension:
  default_spam_protector: MathSpamProtector
mhenden commented 9 years ago

Hi ThomasPaulson

Have checked this out. Looks straightforward, although after reading the GitHub page I have some reservations about MathSpamProtector security. Have you tried with Recaptcha? I’m guessing the spam protection.yml file would look as follows:


name: spamprotection

FormSpamProtectionExtension: default_spam_protector: RecaptchaSpamProtector

Also, I’m wondered where to set information for recipient of form (i.e. me)? Can you please advise?

Tried to send a form to see what happens without filling in email address and it locked my browser up, which was annoying. Had to crash the machine to get out of it!

Probably all very basic to you, but I’m actually a Graphic Designer who does websites, not a programmer!

thanks MIKE

14 Brees Street, Lower Hutt, Wellington, New Zealand

p: 04-577 0243, m: 027 4419 273, e: mike@mhdesign.co.nz w: www.mhdesign.co.nz

On 17/06/2015, at 5:28 pm, thomas paulson notifications@github.com wrote:

Hello mike, you can enable spam protection as metioned in this link https://github.com/silverstripe/silverstripe-spamprotection.

Below is the code which I used to test spam protection with MathSpamProtector ( https://github.com/silverstripe/silverstripe-mathspamprotection )

mysite/_config/spamprotection.yml

name: spamprotection

FormSpamProtectionExtension: default_spam_protector: MathSpamProtector

— Reply to this email directly or view it on GitHub.