• Resolved aryanrajseo

    (@aryanrajseo)


    Hi, From last few weeks i am getting thousands of spam from a similar pattern of IP name and random text.

    The spam bot use different name, email and Text having no links. Here what it looks like

    klvnkmlbto
    ajbbdrkmzq
    [email protected]
    95.142.47.238	
    ucwhgvndvuivshazflemumiahfenae
    
    Approve | Reply | Quick Edit | Edit | Spam | Trash

    What should I do now?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Hi @aryanrajseo

    if you can spot some common pattern which is in all comments (maybe IP address), you can set up your own pattern like in this plugin (using the antispam_bee_patterns filter.

    https://github.com/Zodiac1978/custom-patterns-asb/blob/master/custom-patterns-asb/custom-patterns-asb.php

    Are you sure that ASB is working correctly?

    All the best,
    Torsten

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi,

    Thank you for showing the way to block comments with additional patterns. Unfortunately, each comment is different but looks similar.

    Here is some recent comments https://share.getcloudapp.com/rRuExlEk

    I turned off the comments for now.

    It was working perfectly, works on other sites but facing this on one site from last 1 month.

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Hi @aryanrajseo

    I see one pattern in those comments you maybe can use:

    The content is one word and it always contains of exactly 30 characters.

    The name is one word and it always contains of exactly 10 characters.

    So maybe this is working:

    	$patterns[] = array(
    		'body' => '\b[a-z]{30}\b',
    		'name' => '\b[a-z]{10}\b',
    	);

    \b is enabling word boundary (https://www.regular-expressions.info/wordboundaries.html)
    [a-z] are the allowed characters (just small letters)
    {10} or {30} is the amount of characters.

    This should do the trick … hope it helps!

    All the best,
    Torsten

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Thank you.

    Following code in functions.php will work. Correct?

    function antispam_bee_patterns() {
        add_filter( 'antispam_bee_patterns', 'antispam_bee_add_custom_patterns' );
    }
    add_action( 'init', 'antispam_bee_patterns' );
     
    // Determine individual filters (author, host, body, ip, email). Separate multiple regular expressions with |
    function antispam_bee_add_custom_patterns($patterns) {
    	
    	// custom pattern
    	$patterns[] = array(
    		'body' => '\b[a-z]{30}\b',
    		'name' => '\b[a-z]{10}\b',
    	);
    
    	return $patterns;
    }
    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Yes.

    If you don’t have a child theme and this is not your own theme, then the next update can overwrite your additions to the functions.php, so maybe put it in a snippet plugin like https://www.ads-software.com/plugins/code-snippets/ or put it in a functionality plugin: https://gist.github.com/Zodiac1978/1d9f33ef1be377869ad3

    I re-checked your screenshot and even better seems to be that the bot is using the website field to, so you can add:
    'host' => '\b[a-z]{10}\b',

    All the best,
    Torsten

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Thank you, I added that.

    Recently it was in Pending comments, Now it is in Spam with reason Local DB Spam. share.getcloudapp.com/L1uzZQ5m

    Recently about 2k+ spam comments in 1 week ??

    I will see and wait, if it will continue, will turn off comments on the blog.

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Now it is in Spam with reason Local DB Spam

    I am wondering why it is not showing “Regular Expression”, maybe ASB is now using the IP to detect the spam – but hey, it works! ??

    So why do think you need to disable comments?

    Just delete spam after 30 (or more or less) days, so that the database is not polluted from the spam and you are fine. No spam comment is online and so this spam wave will end at some time.

    All the best,
    Torsten

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi,

    Yes plugin is working great and It is really great to see the advance filters.

    Thank you for giving your valuable time in this and helping me.

    Thanks.

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    You’re welcome!

    If you want to rate the plugin – I would highly appreciate it. ??

    All the best,
    Torsten

    Hi,

    I am using Antispam Bee plugin on my Divi builder site. I have noticed that the posts on which people leave a comment (non-spammy), Divi builder stops working.

    First I approached the Divi Team and they shared that there may be a compatibility issue of the plugin with Divi. They suggested me to either change the plugin or contact you to check if there is any such issue. If you confirm the compatibility issue of the plugin with Divi builder, they will approach their developers.

    Please help me.

    Regards,

    Vandana

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Now it is in Spam with reason Local DB Spam.

    I was running in the same problem and after some other people report the pattern do not work, I debugged this again and it was a simple but serios mistake on my side. The fieldname is not name, it is author.

    So the pattern needs to be:

    $patterns[] = array(
    		'body'   => '\b[a-z]{30}\b',
    		'author' => '\b[a-z]{10}\b',
    	);

    With this code it will work.

    All the best,
    Torsten

    obeier

    (@obeier)

    Hi Thorsten,
    Thank you for your effort to solve the problem.
    I would like to compliment you for the work you have done. You should actually set up a small donation account so that people like you receive a small bonus for jobs that are not paid.
    Thanks again
    Otto

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Hi Otto @obeier,

    thank you very much! ??

    There is a donate section on the plugin page itself (in the sidebar).

    Donations are used to pay for our team gatherings where we code together to solve more problems. We do not look for profit, but for spam free websites. Thanks for considering a donation! ??

    All the best
    Torsten

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Not working’ is closed to new replies.