This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Pebble nofollow plugin
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
Google have announced they are starting to look for the rel="nofollow" tag in HTML links and will not include such links when indexing web pages and calculating page rank. MSN and Yahoo! have also joined in. Of course, this is pointless without support from those people publishing content on the web, which is why people behind some of the major blogging tools have already signed up. So, step aside, Pebble's gatecrashing the party!
Add nofollow to public referers page : done
Add nofollow to comment and TrackBack author links : done
Build a plugin to add nofollow to links in comment/TrackBack content : done
All of this will be in the next version of Pebble, but this is easy to do now. For (1) and (2), you can edit the following pages within your Pebble install.
/jsp/viewReferers.jsp
/themes/default/jsp/comment.jsp
/themes/default/jsp/trackback.jsp
To use the plugin (3), just drop the pebble-nofollow.jar file (contains classes, source and unit tests) into the /WEB-INF/lib directory of your Pebble installation and restart the server. Then, add the following line to your list of blog entry decorators in the blog properties page.
pebble.decorator.NoFollowDecorator
Click reload blog to make the new plugin effective and you're done.
This will be shipped with the next version of Pebble, but I wanted to get it out while it's still fresh in peoples minds. This won't be the only spam prevention in the next version of Pebble, but I'll write about this when I get some more time. It's pretty cool to see everybody coming together to help fight spam.