Googles rel="nofollow" on Comment spam
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Feature requests and Feedback
View previous topic :: View next topic  
Author Message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Tue Jan 18, 2005 23:36    Post subject: Googles rel="nofollow" on Comment spam Reply with quote

Is b2 following this initiative or is it already conforming?

Quote:
From now on, when Google sees the attribute (rel="nofollow") on hyperlinks, those links won't get any credit when we rank websites in our search results. This isn't a negative vote for the site where the comment was posted; it's just a way to make sure that spammers get no benefit from abusing public areas like blog comments, trackbacks, and referrer lists


Quote:
We hope the web software community will quickly adopt this attribute and we're pleased that a number of blog software makers have already signed on:

Brad Fitzpatrick - LiveJournal
Dave Winer - Scripting News
Anil Dash - Six Apart
Steve Jenson - Blogger
Matt Mullenweg - WordPress
Stewart Butterfield - Flickr
Anthony Batt - Buzznet
David Czarnecki - blojsom
Rael Dornfest - Blosxom

We've also discussed this issue with colleagues at our fellow search engines and would like to thank MSN Search and Yahoo! for supporting this initiative. Here are a few guidelines for anyone else who wants to join the cause.


Prevernting comment spam

_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
whoo
Forum Mom
Forum Mom

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Wed Jan 19, 2005 0:06    Post subject: Reply with quote

i have heard nothing about that on this side of the block, not surprisingly-- it's a simple fix though if youre interested in adding it on to URl's within comments.
I actually would like to see it used for trackbacks and comments, primarily because I would like to decide to whom I provide any sort of pagerank increase to, rather than have them provide a link, and forge out their own PR using my site. Blogs are not free for all link sites, after all.

I also think Google rocks for taking the initiative to push that through, of course I've always liked Google (looking at my Google coffee cup) Yes, this just provided one more reason.

wordpress and MT already have plugins out to handle this automagically. thats what happens when you have huge motivated user-bases.

_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Wed Jan 19, 2005 0:45    Post subject: Reply with quote

It's a pretty neat idea, but I'm not sure it'll stop them from doing the deed. After all if they can get some humans to click through they win. OTOH knowing they won't get the goods from search engine placement will make targetting a blog app known to use this sort of pointless. Hopefully b2evo will add it before they do another release and get themselves on that google list of no-credit blog tools. In fact a maintenance release with this and the security patch would be nice.

In the meantime, if anyone wants to add this tool to thier arsenal here's most of the hackage required.

First do the stats list on your regular blog page (if you have that bit showing) by editing _main.php and look for 2 cases of
Code:
<li><a href="<?php stats_referer() ?>"><?php stats_basedomain() ?></a></li>
and changing them to this
Code:
<li><a href="<?php stats_referer() ?>" rel="nofollow"><?php stats_basedomain() ?></a></li>


To do the same thing to your stats page you edit either skins/_stats.php or skins/skinname/_stats.php and make the same change. Find 4 cases of
Code:
<a href="<?php stats_referer() ?>">
and change them all to
Code:
<a href="<?php stats_referer() ?>" rel="nofollow">

There is one other place to add it in the _stats.php file. Find
Code:
<?php stats_referer('<a href="', '">') ?>
and change it to
Code:
<?php stats_referer('<a href="', '" rel="nofollow">') ?>


Next is the comments/trackbacks/pingbacks section, but this won't address spam-links in the body of the comment. Hopefully someone smart will come along and share a method for that. Anyway to do this to the part where the commenter's website is linked you open b2evocore/_class_comment.php and scroll down to line 145 in the "function author" bit and change
Code:
if( $makelink ) echo '<a href="'.$this->author_url.'">';
to
Code:
if( $makelink ) echo '<a href="'.$this->author_url.'" rel="nofollow">';

Next, in the same file, slide on down to line 229 in the "function author_url" bit and change
Code:
if( $makelink ) echo '<a href="'.$url.'">';
to
Code:
if( $makelink ) echo '<a href="'.$url.'" rel="nofollow">';


As always, delete/ban/report. If you happen to miss something take comfort knowing you didn't help them with search engine ranking. Life is good when you don't help spammers with search engine ranking.


Last edited by EdB on Sun Jan 30, 2005 1:06; edited 2 times in total
Back to top
View user's profile Send private message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Wed Jan 19, 2005 0:49    Post subject: Thanks EdB Reply with quote

I'll fiddle with your suggested hacks and you are right...

b2Evo profile would certainly benefit from inclusion in the club...


Thanks for the tips.

_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
guarriman
New Poster
New Poster

Joined: 23 Dec 2004
Posts: 32
Reputation: 37.1Reputation: 37.1Reputation: 37.1Reputation: 37.1 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jan 19, 2005 4:04    Post subject: Reply with quote

I think b2evo might modify their source code and contacting Google in order to be listed within 'the club'.
Back to top
View user's profile Send private message
meonkeys
New Poster
New Poster

Joined: 03 Jan 2005
Posts: 12
Reputation: 16.5Reputation: 16.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jan 19, 2005 14:02    Post subject: Reply with quote

EdB, thanks for the hacks! Very cool. This should definitely be submitted as a patch to b2evolution.
Back to top
View user's profile Send private message
guarriman
New Poster
New Poster

Joined: 23 Dec 2004
Posts: 32
Reputation: 37.1Reputation: 37.1Reputation: 37.1Reputation: 37.1 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jan 19, 2005 19:27    Post subject: Reply with quote

b2evo is within the club!!!

http://google-blog.dirson.com/rel-nofollow.php
Back to top
View user's profile Send private message
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Wed Jan 19, 2005 19:59    Post subject: Reply with quote

guarriman wrote:
b2evo is within the club!!!

http://google-blog.dirson.com/rel-nofollow.php


Then the fourth piece of the puzzle should be linked here so's everyone can find it. Go to http://forums.b2evolution.net/viewtopic.php?t=2829 to see how to make the body of a comment get the nofollow doodad.

It also means real people who comment on your blog won't get any linkage value out of it, but that's probably not the end of the world. I think whoo said something along the lines of "you can't pimp off my domain". Anyway it makes sense (to me) that if you're using this you should make it a point to give your frequent commenters a nod in your linkblog.
Back to top
View user's profile Send private message
whoo
Boss Lady
Boss Lady

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Wed Jan 19, 2005 20:18    Post subject: Reply with quote

lol, yeah you could paraphrase what i said to be something like that. I dont get alot of comments, but that siad, even IF i did, I would be very restrictive about what sorts of urls, trackbacks etc.. I allowed. Take for instance the person that might come to your site, they leave their name, or some nickname, which of course is linked to their url, and then they "pimp" their site in a comment. They have managed not just one, but two links.

Its a philosophical debate really, with all kinds of issues. What if someone with content I dont care for leaves a comment? Their comment might be viable but do I really want to link to their site and suck up my whoopping page rank of 3? prolly not Big Razz I dunno.

--

Lastly, its nice that that info is on that site there, however thats not Google, thats a site hosted by just another person. Just because they have google in the URL doesnt mean anything. Perhaps someone ought to to contact the real google??

_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Fri Jan 21, 2005 10:37    Post subject: "no follow" bookmarklet Reply with quote

Show non PR links

A related and nifty little bookmarklet that highlights effected "no follow" links.

_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
joebeone
Seasoned Poster
Seasoned Poster

Joined: 14 Jul 2004
Posts: 56
Reputation: 41.1Reputation: 41.1Reputation: 41.1Reputation: 41.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Sat Jan 22, 2005 19:08    Post subject: _magpierss.php Reply with quote

If you're using EdB's _magpierss.php hack, you'll need to search for links ("<a...") and insert
Code:
rel=\"nofollow\"
in four places (I can't give line numbers because I've already modified this hack).

Later: Note that you have to escape the quotes above with backslashes "\" to get rel=\"nofollow\".
Back to top
View user's profile Send private message Visit poster's website
joebeone
Seasoned Poster
Seasoned Poster

Joined: 14 Jul 2004
Posts: 56
Reputation: 41.1Reputation: 41.1Reputation: 41.1Reputation: 41.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Sat Jan 22, 2005 19:24    Post subject: nofollow for links in comments Reply with quote

Here's how you get links within comments to have nofollow.

(I've taken the liberty to quote this from the other post EdB points to above... this way, the entire solution is in one thread (linked to from dirson's google blog)):

uber wrote:
Hi,
I have patched _class_comments.php with this text at line no. 369 (content function)
Code:

$comment  = preg_replace('/<a href=([^>]*)>/i','<a href=\\1 rel="nofollow">',$comment);


Note: the filename is _class_comment.php in 0.9.0.10. -Joe
Back to top
View user's profile Send private message Visit poster's website
captsolo
Seasoned Poster
Seasoned Poster

Joined: 19 Aug 2003
Posts: 70
Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Apr 14, 2005 18:35    Post subject: Reply with quote

EdB wrote:
Anyway to do this to the part where the commenter's website is linked you open b2evocore/_class_comment.php and scroll down to line 145 in the "function author" bit and change
Code:
if( $makelink ) echo '<a href="'.$this->author_url.'">';
to
Code:
if( $makelink ) echo '<a href="'.$this->author_url.'" rel="nofollow">';


EdB, what is the change on line 145 for? After adding rel="nofollow" on line 229 and making the same change to the comment body, the comment page is ok and all the links have 'nofollow'. Just curious if this change on line 145 is needed and what's it for.

_________________
Best regards,
CaptSolo


Last edited by captsolo on Thu Apr 14, 2005 18:49; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
joebeone
Seasoned Poster
Seasoned Poster

Joined: 14 Jul 2004
Posts: 56
Reputation: 41.1Reputation: 41.1Reputation: 41.1Reputation: 41.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 1

PostPosted: Thu Apr 14, 2005 18:43    Post subject: Reply with quote

I believe this is for the URL that the commentor provides as part of filling out the comment form (that is, *not* the links in the body of the comment). -Joe
Back to top
View user's profile Send private message Visit poster's website
captsolo
Seasoned Poster
Seasoned Poster

Joined: 19 Aug 2003
Posts: 70
Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6Reputation: 67.6 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Apr 14, 2005 18:54    Post subject: Reply with quote

Nope - that's what line 229 does.
(Sorry - intially I forgot to mention i did this change when writing the 1st post)

You could take a look at my blog and see if you notice any comment links w/o "nofollow". I don't. If looking at the main page, you may follow the comment on post "Fortune 500 - 2003 - list" for there - it has comments with links in them.

_________________
Best regards,
CaptSolo
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Feature requests and Feedback All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board