Staticman fighting spam


#1

I guess a few of us here use staticman ?

What are you all doing to fight spam ?
I’m getting two or three each week, and it looks like someone actually typing stuff in, and completing the captcha :open_mouth:

What are other doing ?


#2

spam is so boring :frowning:

Here’s another:

the visit to the page:
136.169.197.73 - - [05/Dec/2018:14:43:31 +1300] "GET /development/2018/11/06/Comments-on-blogs-vs-Social-Media.html HTTP/1.0" 200 167824 "https://terminaladdict.com/development/2018/11/06/Comments-on-blogs-vs-Social-Media.html" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"

and then post to staticman:
136.169.197.73 - - [05/Dec/2018:14:43:41 +1300] "POST /v2/entry/TerminalAddict/ta.com-website/master/comments HTTP/1.0" 200 724 "https://terminaladdict.com/development/2018/11/06/Comments-on-blogs-vs-Social-Media.html" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"

anyone got any brilliant ideas?
will trade ideas for links to porn sites :laughing:


#3

update:
this seems to be working (for now)

<fieldset>
    <div class="g-recaptcha" data-sitekey="xxx" data-callback="verifyCaptcha"></div>
</fieldset>
<fieldset>
  <button type="button" id="comment-form-submit" class="btn" disabled="disabled" aria-disabled="true" >Submit Comment</button>
  <noscript>Your browser does not support JavaScript! You can't submit a comment.</noscript>
</fieldset>

then some JS

var verifyCaptcha = function(response) {
    if(response.length == 0) {
    } else {
    	var _el=$('#comment-form-submit');
        _el.removeAttr("disabled");
        _el.addClass('button-primary dark-blue-bg');
        _el.attr('aria-disabled', 'false');
        _el.attr('type', 'submit');
    }
};

#4

Why don’t you activate moderation in your staticman config file?


#5

I do have moderation.
It’s just super boring dealing with spam :slight_smile:

So I’m trying to stop it before it turns into a pull request


#6

From what I can tell Staticman has support for Akismet… which should help filter out spam. That said I’ve never had any luck or confirmation if it’s actually turned on after enabling it in the config or that it’s doing anything.


#7

I don’t think Akismet in staticman actually does anything ?

Anyway … I spoke too soon :frowning:

185.234.219.246 - - [11/Dec/2018:15:15:03 +1300] "GET /development/2018/11/06/Comments-on-blogs-vs-Social-Media.html HTTP/1.0" 200 167948 "https://terminaladdict.com/development/2018/11/06/Comments-on-blogs-vs-Social-Media.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
185.234.219.246 - - [11/Dec/2018:15:15:13 +1300] "POST /v2/entry/TerminalAddict/ta.com-website/master/comments HTTP/1.0" 200 1275 "https://terminaladdict.com/development/2018/11/06/Comments-on-blogs-vs-Social-Media.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"