<![CDATA[ Quip 'nospam' field - My Forums]]> https://forums.modx.com/thread/?thread=86443 <![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field?page=2#dis-post-538721 BobRay Feb 23, 2016, 03:22 PM https://forums.modx.com/thread/86443/quip-nospam-field?page=2#dis-post-538721 <![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538680
Ah yes, the problem is that bots have become smart and you may need to include a CAPTCHA or another mechanism to prevent spam from getting through.

You could try SPForm as BobRay suggested earlier in this thread.

Kind regards,
Erwin]]>
might-e Feb 23, 2016, 05:58 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538680
<![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538679 Quote from: might-e at Feb 22, 2016, 10:33 AM
Quote from: dubbs at Feb 19, 2016, 03:15 PM

[...]

Hi Erwin,

Where in the ThreadReply.php file do you add the new line:

if (!empty($fields['nospam'])) return;


Cheers,

Hi Dubbs,

I am not able to check right now, but in the metioned file ("core/component/quip/controllers/web/ThreadReply.php") there sould be a bunch of "if" checks for checking form values etc. If you paste it somewhere you should be fine.

Let me know if it doesn't work.

Thanks - have implemented that - works in the respect that if I force the noSpam hidden field to be in view with firebug and add a value the comment is not submitted - but still getting spam...]]>
dubbs Feb 23, 2016, 05:55 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538679
<![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538610 Quote from: dubbs at Feb 19, 2016, 03:15 PM

[...]

Hi Erwin,

Where in the ThreadReply.php file do you add the new line:

if (!empty($fields['nospam'])) return;


Cheers,

Hi Dubbs,

I am not able to check right now, but in the metioned file ("core/component/quip/controllers/web/ThreadReply.php") there sould be a bunch of "if" checks for checking form values etc. If you paste it somewhere you should be fine.

Let me know if it doesn't work.]]>
might-e Feb 22, 2016, 04:33 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538610
<![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538533 Quote from: might-e at Sep 02, 2013, 05:50 PM
Hi

Recently I put a website online with a quip guestbook and articles with quip integration. Past few days I got some spam on the guestbook (5 messages in a few days). So I checked why those were getting through the anti-spam, thinking a hidden field with the name 'nospam' might be to obvious. But I thought of checking if it actually worked, so I used Firebug to set a value for nospam and posted a message. I was baffled when the comment was actually posted.

So I checked the documentation, to see if maybe I set it up wrong, but there isn't really anything to setup about the anti spam method with an empty field. So I dug into the code and found the handlePost function in core/component/quip/controllers/web/ThreadReply.php. There is actually no mention of 'nospam' in that file, nor do I believe it is anywhere else.

So I added the following line after the for each:
if (!empty($fields['nospam'])) return;


I know this will be deleted as soon as there will be an update, but is this a proper fix so long as it isn't fixed in quip itself?

Erwin

Hi Erwin,

Where in the ThreadReply.php file do you add the new line:

if (!empty($fields['nospam'])) return;


Cheers,]]>
dubbs Feb 19, 2016, 09:15 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-538533
<![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476651
]]>
BobRay Sep 04, 2013, 02:52 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476651
<![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476626 http://bugs.modx.com/issues/10163)

I agree the best solution would be a configurable field. Maybe you could go as far as faking an easy captcha. (Advanced) spambots will probably try to solve the (fake) captcha and the script will recognize it as a spam attempt.

A configurable field is probably not even that complicated.. Might look into it and post a better fix later.

Thanks for your reply's]]>
might-e Sep 03, 2013, 06:38 PM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476626
<![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476549 garryn Sep 03, 2013, 06:26 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476549 <![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476545
Since you're going to update it, I'd suggest that you consider calling it something like 'user__name' (with two underscores), though that might break existing installations where user have created their own Tpl chunks.

Perhaps an even better option would be to make the field name configurable with a property that defaults to 'nospam', but suggest that people change it, so everyone has a different field name and you could change it again if bots start getting through.
]]>
BobRay Sep 03, 2013, 05:21 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476545
<![CDATA[Re: Quip 'nospam' field]]> https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476542 So we don't lose this in the forums, could you please add a bug report here: http://bugs.modx.com/projects/quip]]> garryn Sep 03, 2013, 04:39 AM https://forums.modx.com/thread/86443/quip-nospam-field#dis-post-476542