1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How Do You Make All Comments No-Follow?

Discussion in 'Blogging' started by bobbylove321, Apr 13, 2011.

  1. bobbylove321

    bobbylove321 BANNED BANNED

    Joined:
    Nov 8, 2008
    Messages:
    1,987
    Likes Received:
    2,198
    Does anyone know how to make all the comments on your wordpress no-follow?

    I have 19,000+ spam comments, and I want to approve them all, but I want to make sure that they are all no-follow before I do so.

    Thanks
     
  2. Knoxgates

    Knoxgates Supreme Member

    Joined:
    Aug 9, 2008
    Messages:
    1,266
    Likes Received:
    918
    Hey bobbylove i think all the comments on a wordpress blog are Nofollow by default.
     
    • Thanks Thanks x 1
  3. Subsonic

    Subsonic Regular Member

    Joined:
    Mar 17, 2011
    Messages:
    367
    Likes Received:
    333
    Location:
    DNS root zone database
    All comments on Wordpress blogs are nofollow by default so you are safe :) However if you want to make all the comments ******** you can do it by modifying comment-functions.php file:

    1) Open up /wp-includes/comment-functions.php
    2) Look for the following code (somewhere near line 350):

    PHP:
    $return "<a href='$url' rel='nofollow'>$author</a>";
    3) Change it to the following:

    PHP:
    $return "<a href='$url'>$author</a>";
    4) Save and upload to your site. Now all the comments are ********.

    I hope that this helps!
     
    • Thanks Thanks x 1
  4. lacy1978

    lacy1978 Junior Member

    Joined:
    Jan 5, 2011
    Messages:
    153
    Likes Received:
    39
    what the heck are the *****?
     
  5. Subsonic

    Subsonic Regular Member

    Joined:
    Mar 17, 2011
    Messages:
    367
    Likes Received:
    333
    Location:
    DNS root zone database
    BHW seems to filter some words out. Both ****** words are d0f0ll0w.