• Steve

    (@beforewisdom)


    How can I block a particular user/ip address from posting comments to my blog? I tried typing his IP address into the forbidden words list, but that had no effect. Should I type in his whole connection string?

    I have spam karma installed, is there a way to block his IP or ISP with that?

    Also, I suspect he is someone I ejected before, is there a way to recover deleted comments?

    Thanks in advance for any info

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you want to block via IP address, I’d just put the block in the htaccess file:

    Example: https://www.javascriptkit.com/howto/htaccess5.shtml

    If you add it to SK2 or the block list, it’s just yet another process wordpress has to run through each and every time.

    Thread Starter Steve

    (@beforewisdom)

    I’m not sure that my ISP allows me access to a htaccess file

    Only way to find out is to ask them.

    Thread Starter Steve

    (@beforewisdom)

    They in fact do not.

    How can I do this with just wordpress and spam karma?

    I tried typing his IP address into the forbidden words list, but that had no effect. Should I type in his whole connection string?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Putting the IP address into the “Comment Blacklist” section on the Options->Discussion page will block comments from that IP.

    Thread Starter Steve

    (@beforewisdom)

    I saw that, but it looks like this person is on dialup. Their IP address is slightly different each time. Will this feature accept wildcards/regular expressions?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    It will accept regular expressions if you want to get really complicated. The actual matching occurs by using preg_match. The regular expression used is #your_text#i. So don’t use any # symbols.

    Blocking 1.2.3.* could be done with the expression “1\.2\.3\.“. The backslashes are needed to escape the periods and let them be periods instead of the regular expression “any character”.

    Whatever you put in will be searched for in the author, email, url, comment text, ip, and user agent. Any matches cause the comment to get blocked.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Blocking particular people’ is closed to new replies.