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 |
#22
|
||||
|
||||
Quote:
PHP Code:
edit, actually I believe it would be PHP Code:
|
#23
|
||||
|
||||
Quote:
This hack adds the "no follow" attribute to links which have gone through vB's bbcode parser (posts, sigs, etc) and will stop spiders following them but the links in your templates (almost all probably pointing to other pages on your own site) won't be affected and so will be followed. The "no follow" in the header meta will tell spiders to not follow any links at all, including to the rest of your own site. |
#24
|
||||
|
||||
Quote:
|
#25
|
||||
|
||||
Nice hack.
I made a modification to it so that only new members (in my case, those with less than 30 posts) have rel="nofollow" attached to their posts. Established members are not penalised and the searchbots will still follow and index their links. Replace PHP Code:
PHP Code:
|
#26
|
|||
|
|||
Quote:
Cretins get high ranking by using loopholes in the way that search engines rank sites/pages. Essentially if a search engine "sees" a url that has numerous other pages linking to it it thinks that that site is popular. This may be the case, but if I were to visit every single one of the users sites from this forum alone and posted a link to my board on each one suddenly my sites ranking will increase as the bots "see" lots of links to my site. This is the essence of "google bombing" (like search on Feeling Lucky for WMD in google for example). By making it so that links POSTED IN THREADS have no follow means that the search engine bots IGNORE links in posts but will index your pages and follow all the other links in your pages unless you've messed with robots.txt or put the nofollow elsewhere. I think that explains it.... *INSTALLED* |
#27
|
||||
|
||||
Quote:
I kinda thought that was obvious, but thank you for spelling it out so well for those people who seem to think this is some kind of 'Stop Spiders from indexing your site' hack, which..quite frankly, would be a retarded idea. |
#28
|
|||
|
|||
Installed, however, is there a way this can be implemented into signatures as well? It seems as if it's taking no effect there. *edit* Errr, maybe it is. It should work everywhere, right? Profile pages don't seem to include it, maybe my browser is cached.
|
#29
|
||||
|
||||
Although I think yoyo's post needed to be clarified, I think people arebeing hard on him. There are many boards out there with many goals. Aslong as people understand what he's doing and implement it tofurthertheir goals, his posts have been very helpful AND he clearlyknows whathe's talking about.
Thanks for the hack Kall and the additions. I like the one basedonnumber of posts. It will be cool if the addons can be mentioned inthefirst thread for new people coming onto this thread. This willprobablygrow into a big thread until vb supports the tag....WHICH Isuggestthey do right away so that they can boost their pagerank bygettingmentioned in Google's blog which announced this (just kidding, they are using a redirect anyway.) |
#30
|
|||
|
|||
Couldnt get this to work, followed instructions but no "nofollow" showed when viewing source.
|
#31
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|