Forum Moderators: not2easy

Message Too Old, No Replies

Putting the rel=nofollow tag in CSS

All links in a certain class would be tagged no follow

         

theChronic

1:22 am on Mar 8, 2006 (gmt 0)

10+ Year Member



Hello,
I was wondering if there was any way so that any links contained in a certain class could automatically be treated as "nofollow".

Example:
<div class="spammers">
<a href="spammer bla bla">QWERTY</a>
</div>

This way the search engines would not follow any links inside of the div

Thanks,
John

DrDoc

2:39 am on Mar 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A couple things ...

First, CSS is not a programming language. It defines style and behavior ... neither of which covers blocking SEs from following certain links. You will have to specify the links as "nofollow" by other means.

Second, spammy SEs are likely not to care if you tell them not to follow the link. :)