• I’m running a twenty eleven child theme and I’ve been trying to block comment spam on my site. Using the default options, I’ve already disallowed links in the body of comments. But spammers are still able to display their author name as links. In trying to disable this, I’ve gone to comment-template, but feel like rewriting (in the child theme) the get_comment_author_link function or any of its related functions is not the best way to go about this. My question is, where is the final call to this function being made? In which file? What is the best way to go about removing all links from my comments, in body and author name?

    Thanks!

Viewing 1 replies (of 1 total)
  • You can use a spam filter plugin, but even those are not fully reliable all the time, the best and only way to not get comment spam is to moderate comments.

    You can also add these to the comment blacklist at:

    Dashboard>Settings>Discussion

    http
    www
    url:
    mailto

    etc…

    This will mark virtually all comments with links as spam…just mod your comments.php or similar theme file to note (for real visitors who want to comment) that all comments with url’s will be deleted!

    Now the comments that come through for moderation will be much safer to review and approve.

    Allowing comments without moderation can and will lead to your site having links to known bad sites, which can get you delisted in SEO and even removed from search engines.

Viewing 1 replies (of 1 total)
  • The topic ‘get_author_comment_link?’ is closed to new replies.