Catalogue-driven contact form

Post

Posted
Rating:
#7944 (In Topic #2025)

dealing with spam

Greets!

I am using the contact form as shown in the video;



East and quick to setup, looks and works great.

Problem is I am getting hit by form spammers. I am researching how I can block keywords, have it include the visitors IP, etc but no luck.

Perhaps this is a basic form only and I should develop a more powerful contact form?  Would appreciate any suggestions and curious how others handle sform spam and contact forms..

Cheers and happy spring!

 

Post

Posted
Rating:
#7946
There are a couple ways you can reduce spam on a catalogue contact form.

If you have Composr's CAPTCHA enabled, it will show up as a required field on the block according to your settings.

There is a more advanced method. You can also add in an extra field on the catalogue which requires some specific answer… e.g. ask a question in the field name which you can find the answer somewhere on the site. Then, after creating the field, find its ID (if you edit the catalogue, you should see the field # next to it. So the ID will be field_# .

Go in your Admin Zone > Setup > Field Filters. Follow this tutorial to create a field filter for your antispam field. For example:

Code

<qualify pages="members" types="view" fields="field_#">
    <possibilitySet error="Incorrect antispam answer" secretive="1">correct answer keeping in mind not to use commas,another acceptable answer</possibilitySet>
</qualify>

Replace the value of pages with the name of the page where your contact form is located, and replace type with its type (if applicable, or remove type if there is none). And set the field's ID.

I can't guarantee this will work; I have not tested it. But please let me know. If others have ideas please feel free to chip in.
0 guests and 0 members have recently viewed this.