The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Stop Spammers with rel=nofollow in URLs! Details »» | ||||||||||||||||||||||||||
In the first cooperative move for nearly ten years, the major search engines have unveiled a new indexing command for web authors that they all recognize, one that they hope will help reduce the link and comment spam that plagues many web sites....due to removing the point of doing it in the first place.
The new "nofollow" attribute that can be associated with links was originated as an idea by Google in late 2004 and MSN and Yahoo, as well as major blogging vendors have jumped onboard. The Nofollow Attribute The new attribute is called "nofollow" with rel="nofollow" being the format inserted within an anchor tag. When added to any link, it will effectively serve as a flag to tell the search engines that the link has not been explictly approved by the site owner, and therefore "not follow" it, or not use the referring page's (on your site) Page Rank in any way. For example, this is how the HTML markup for an ordinary link might look: <a href="http://www.somedomain.com/page.html">My forums are the best lol lol lol click here!!</a> This is how the link would look after the nofollow attribute has been added, with the attribute portion shown in bold <a href="http://www.somedomain.com/page.html" rel="nofollow">My forums are the best lol lol lol click here!!</a> This would also be acceptable, as order of elements within the anchor tag makes no difference: <a rel="nofollow" href="http://www.site.com/page.html" >Visit My Page</a> Once added, the search engines supporting the attribute will understand that the link has not been approved in some way by the site owner. Think of it as a way to flag to them, "I didn't post this link -- someone else did." Quote:
WHAT WILL THIS DO, IN ESSENCE? This will affect URLs in posts, as well as signatures...anything that goes through the bbcodeparse function as far as I can tell/guess, and will work recursively, or whatever the word is that means 'it will affect all existing posts and signatures'...or it did for me anyway. Update: Thanks to Michael Morris and natez0rz for pointing out that using the $post global would be a much better idea. To change the conditional number of posts, alter PHP Code:
It should work with all vB 3.0.x versions, but was tested on 3.0.6. File to modify: 1 1/ Open your includes/functions_bbcodeparse.php file Find: PHP Code:
PHP Code:
3/ Relax, safe in the knowledge that spammers linking from your site are doing so for no reason whatsoever. 4/ Edit: exclude staff usergroups and members with over 50 posts. Show Your Support
|
Comments |
#42
|
||||
|
||||
This is a great little hack!
First, you are only excluding new members, with under a certain post count, from having a link that they put in a post, or in a signature, from being indexed by a search engine. It does not affect any other links in your forum, only those. If you have spammers dropping urls in posts, then the urls they drop, will not be indexed. I recently had a user join my forum, and I could tell right away that he was nothing more than a "link dropper" (or, you could call, a "name dropper"). He posted short, little one sentence messages and reply's in all of my sub-forums with little meaning to the related subject matter. In other words, he was trying to 'fake' it. The one thing that he did manage to include was a link to his website, or other sites (commercial sites, loosely related to our forum) in both his posts, and in his signature. He only made about ten posts and was never heard from again. Little does he know that, with this hack installed, it was all for nothing. After installing this hack, I check the source code of various posts made by members that are under the post thresh-hold and those that are over the thresh-hold. I only found the "nofollow" in posted urls that were under the thresh-hold. My forum deals with ship/boat modeling. A some what limited subject to most Internet users. I and my fellow hobbyists can tell pretty quickly if a new member like the one above knows what the hell they are talking about or not. I set my new poster thresh-hold to 25 for now. So any llegitimate link that a legitimate member puts in a post will be indexed soon enough. This hack, for me any way, takes care of those links that are in that 'gray' area. Ones that are kind of related to our site, but until the new member has "proven himself", his posted links won't be indexed. Great hack kall, , John 'clicks install' |
#43
|
||||
|
||||
*salutes*
Thank you John. Your story illustrates EXACTLY what the point of this hack was to achieve. I'm feeling all warm and fuzzy now. |
#44
|
||||
|
||||
Quote:
BTW, I was looking at this part of the code: PHP Code:
I'll have to play around with it, and see if something can work. John PS; I forgot to add, I have V-3.0.7 and this hack works fine. |
#45
|
|||
|
|||
Very nice hack.
/me clicks install |
#46
|
||||
|
||||
Quote:
Something that is outside my scope I am afraid. If someone else could give us some pointers? |
#47
|
|||
|
|||
Has anyone noticed an increase in their site's PageRank after installing the mod???
|
#48
|
||||
|
||||
Just a little question, but does this extra attribute added to the anchor tag show up as invalid on XHTML validators?
- Zero Tolerance |
#49
|
||||
|
||||
Quote:
|
#50
|
|||
|
|||
Questions:
1. Can I only add this addon to my forums posts ? as well archive posts ? 2. Will this help anyway in SEO ? 3. I have some paid sponsorers on forums footers and archive footers, will this hack ignore those links if only added for forums posts ? 4. Can I exclude some urls from getting ignored ? Thanks. |
#51
|
||||
|
||||
Quote:
Quote:
3. See Answer 1. 4. That should be doable, but is a little complicated for me this time of night. Would involve an extra conditional under OR $posts=50..but I dunno what. OR $rightlink=='excludedlink' is the basic psuedocode I think. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|