Implement "nofollow" for hand–coded sites? Jan20 '05

Feedback

# (1 of 3): Zombie

1 year, 6 months after the fact. (Sun 06 Aug 2006, 4:28 PM CST)

it should be easy, just use a regex while validating/saving the comment :)
I stared php only recently so i can’t give you PHP code but in PERL it would go something like this:

s/(<a.*?)(>)/$1 rel="nofollow">/;

have fun

# (2 of 3): Zombie

1 year, 6 months after the fact. (Sun 06 Aug 2006, 4:30 PM CST)

ups, validating ate my code...
and i just noticed i’m kinda late for this one LOL

Previous comment Return to entry

# (3 of 3): Matthom

1 year, 6 months after the fact. (Mon 07 Aug 2006, 9:10 AM CST)

Zombie, I made your code sample visible. Thanks for the idea. And, no, you’re not late - I keep comments open for that reason.

Previous comment Return to entry

RSS feed for comments on this post

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

Return to entry.

matthom is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.

Contact Matt

Google states that only blog software developers need to make a change, but I don’t use any blog software.

You are at the feedback permalink page for: Implement "nofollow" for hand–coded sites?

Read more...