WordPress.org

Ready to get started?Download WordPress

Forums

Specific words for spam (10 posts)

  1. Abcmoteur
    Member
    Posted 2 years ago #

    Hi everyone,

    I would know how to put specifics words in WP for spam because usually a part of a word could be use by WP.

    I would like WP use the word and never a part.

    Thanks.

  2. MickeyRoush
    Member
    Posted 2 years ago #

    Abcmoteur wrote:

    I would know how to put specifics words in WP for spam because usually a part of a word could be use by WP.

    I would like WP use the word and never a part.

    Could you give an example of what you're trying to do? It may give us a better understanding of how you can be helped.

  3. Abcmoteur
    Member
    Posted 2 years ago #

    Hi,

    thanks for your help.

    For example : "interesting"

    I want to block "interesting" but not "interest", "interests", etc...

    WP use a part of "interesting" and I doesn't want.

    How?

  4. MickeyRoush
    Member
    Posted 2 years ago #

    Abcmoteur wrote:

    I want to block "interesting" but not "interest", "interests", etc...

    WP use a part of "interesting" and I doesn't want.

    If you block "interesting" it will not block "interest" or "interests".

    But it would block something like, "noninteresting" if that is even a word. It works like regular expression, sort of. If you wanted to block "interest", that would block "interests" or "interesting", etc.

    Another example. Say you wanted to block something simple like "to" that would block pretty much most of the English language. :) As it would block "today", "tomorrow", "top", etc. Anything with "to" in it. So any word that you block, will block any other word that has it's entirety within it.

    Does that help?

  5. Abcmoteur
    Member
    Posted 2 years ago #

    Thanks you for your explain. I understand.

    However, can I block only "to"?

  6. MickeyRoush
    Member
    Posted 2 years ago #

    Abcmoteur wrote:

    However, can I block only "to"?

    You could, but you would end up blocking a large percentage of words that contain the letters "to". If your blog was in English, you would end up preventing probably 33 percent of the words in the English language. And no one could leave a legible comment. LOL! Thirty-three percent was just an estimate.

    My recommendation....DO NOT block words that are broad like "to". The letters "to" are in way too many normally used words.

    More reading:
    http://perishablepress.com/press/2007/10/08/wordpress-spam-battle-3-seconds-that-will-save-you-hours-of-time/

    This blog as a blacklist you can download then copy and paste the list into your blacklist.
    http://www.prelovac.com/vladimir/wordpress-comment-blacklist

  7. Abcmoteur
    Member
    Posted 2 years ago #

    I know but my question is HOW block ONLY "to" and NOT "today", "together", etc...

    (it's an example word)

  8. You can't. If you block a word, all uses of that word in another word, will also be blocked. It's a limitation.

  9. Abcmoteur
    Member
    Posted 2 years ago #

    Ok, it's clear but it's not pratical.

  10. MickeyRoush
    Member
    Posted 2 years ago #

    @ Abcmoteur

    It sounds like you're trying to whitelist words from the banned list. You'd have to use some type of regular expression like begin of string "^" or end of string "$"

    This plugin implements the begin of string "^" meta character

    http://wordpress.org/extend/plugins/better-moderation/

    It's not very practical for the majority of WordPress users, that's why it's not recommended. But the plugin listed above should do what you're asking. If the plugin works. I've never tested it.

    From the plugin:
    "If you just wish to match Word and not WordPress use the ^ character at the start or end to signify not preceded/followed by a letter eg.

    ^feck|Text|Bad Language

    would match

    feck
    fecking
    fecker

    but not mutherfecker.

    This is actually a cool plugin if it works. I just found it thanks to your inquiries. You could have more control over all of the following values:

    name
    email
    url
    text
    ip
    useragent
    all

    So, if you did something like:

    to^|All|Do Not Like This Word

    It would block "to" but allow "today", "together", "top". But it would block "unto", "magento", etc.

    Not sure if you could use a "^" and the beginning and end to isolate like so:

    ^to^|All|Do Not Like This Word

    All you can do is try and see it works, if not just deactivate and remove.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags