The Artima Developer Community
Sponsored Link

.NET Buzz Forum
rel = "nofollow"

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Scott Watermasysk

Posts: 661
Nickname: scottwater
Registered: Aug, 2003

Scott Watermasysk is an ASP.NET developers. He wrote the .Text blog engine.
rel = "nofollow" Posted: Jan 19, 2005 11:07 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Scott Watermasysk.
Original Post: rel = "nofollow"
Feed Title: ScottW's ASP.NET WebLog
Feed URL: /error.aspx?aspxerrorpath=/blog/rss.aspx
Feed Description: ASP.NET and Blogging
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Scott Watermasysk
Latest Posts From ScottW's ASP.NET WebLog

For those of you who can compile .Text, I recommend a quite edit to help* reduce the effectiveness of comment spam.

The class to change is Dottext.Framework.Util.Globals. Method: EnableUrls (found in Dottext.Framework\Util\Globals.cs)

In this method, .Text will look for links posted in a comment (prior to this call the entire comment is HtmlEncoded).

Before: text = text.Replace(m.ToString(), "<a target=\"_new\" href=\"" + m.ToString() + "\">" + m.ToString() + "</a>");
After:   text = text.Replace(m.ToString(), "<a ref=\"nofollow\" target=\"_new\" href=\"" + m.ToString() + "\">" + m.ToString() + "</a>");

Community Server already had something "home grown" baked in, but was updated ealier today to support nofollow.

* I seriously doubt this will stop spammers, but anything we can do to make not worth the effort the better off we are. See: BrokenWindows

 

Read: rel = "nofollow"


Topic: New Architect Journal available Previous Topic   Next Topic Topic: Wanted: Great questions for an interview with Juval Lowy

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use