

BACK






PageRank Sculpting: You can still use rel=nofollow
Posted by bbriniotis on 11th of September, 2009 at 04:33 to Programming, SEOSome months ago Google changed the way that treats the nofollowed links. This new policy causes massive problems to all the sites that use the nofollow attribute as it affects the way that PageRank flows in the site and it could lead to PR loss.
WebSEOAnalytics has developed a free script that allows you not only to do PageRank sculpting as easily as you did before but also keep all the rel=”nofollow” links you have in your sites.
Brief description
Our solution uses obfuscated javascript in order to block Google. Additionally we encode the URLs in order to make sure that they can not be detected by search engines. This script has already tested in several sites for the last 3 months and it is currently used in this site.
The main idea is that the developer will still be able use rel=”nofollow” to block the links he wants. Then a script will detect all the nofollowed links and it will replace it with the obfuscated javascript.
You can download the script here: webseoanalyticsLinker.zip
Below you can find installation instructions and also a detailed analysis of the way it works.
Analysis
The solution should comply with the following restrictions:
- The solution needs to fix the old sites with the minimum effort and be compatible with the old dynamic parts.
- It needs to be time efficient.
- It must be expandable and easily customized.
- It must be supported by all the browsers and exclude the minimum number of users from viewing the page.
- It must be easy to update in case that Google makes more changes.
In the next part we will present how to install the script and the PHP code that solves the above issue. If your site is not developed in PHP it is very easy to build your own script by following the steps of the last part of the article. Within the next weeks we will release a .NET version of the script.
Installation
Warning: Make sure you have basic knowledge of PHP and that you know what you are doing before you start editing your site.
Download the webSeoAnalyticsLinker zip and extract the files on the root of your site.
Include the file webSeoAnalyticsLinkerheader.php in every page of your site by inserting before the <html> tag the command
<?php include('webSeoAnalyticsLinkerheader.php'); ?>
Include the file webSeoAnalyticsLinkerfooter.php in every page of your site by inserting after the </html> tag the command
<?php include('webSeoAnalyticsLinkerfooter.php'); ?>
Add in all of your pages the javascript files webSeoAnalyticsLinker.js and base64.js by inserting between the tags <head></head> the lines:
<script src="webSeoAnalyticsLinker.js"></script>
<script src="base64.js"></script>
By default the above script uses the Recursive Function mode (see below). If you wish to use the HTTP POST mode you need to edit the files variables.php and webSeoAnalyticsLinker.js. Open them and change the variables $webSeoAnalyticsLinkerMode and var webSeoAnalyticsLinkerMode from 0 to 1.
When using the HTTP POST mode it is optional to block the nofollowed pages in the case that they do not get called by using the POST method. In order to do this insert before the <html> tag the command
<?php include('nofollowblocker.php'); ?>
This will prevent Google from indexing your blocked page.
We suggest to use the default Recursive Function mode.
The last modification that needs to be done is in your CSS file. Every style that affects the <a> tag must also affect the <span> tag. In order to achieve this modify all the anchor styles of your css file like this:
The following lines
div.someClass a {
...
}
Should be converted to
div.someClass a, div.someClass span.webseoanalyticsLinker {
...
}
Back to the lab - Hands on keyboard (for Web Developers)
First of all we need to find a way to dynamically replace every link that is marked as nofollow. The way to do this is to process the output of every page just before it is sent to the user (on the side of the server). Then we will use Regular Expressions to replace all the nofollowed links with spans that execute Javascript.
Secondly as we know Google can execute basic javascript code. In order to prevent Google from parsing our code we can use 2 methods:
- Recursive Function Calls
- HTTP POST Method
In the first method when the user clicks on the link (which is replaced by a <span>) a javascript function gets called recursively. Finally an obfuscated code is executed that redirects the user to the target page.
In the second method after the click, a form is created dynamically. This form is used in order to create an HTTP POST request to the target URL. Optionally we can check on the target URL (the nofollowed page) if the POST method has been used. If not we will redirect the user to the main page. This will prevent Google from even indexing the page.
The last think we do is to encode all the blocked URLs with Base64 encoding. This is mainly because Google checks not only for anchor links but also for strings that look like URLs. So if you have in your HTML source, within your javascript a URL string, it is certain that Google will follow it and that it will consider it a link. In order to be able to use the Base64 decoding with Javascript we use a library called Base64 encode / decode.
This solution can be applied not only to new but also to old sites with minimum effort. It is extremely time efficient as it allows you to continue using the nofollow attribute in your code. When the code gets executed it will replace all the nofollowed anchors by spans. Also it can be easily customized and updated. Finally it is a cross browser solution and it limits only the users that have javascript turned off.
You can download the PHP/Javascript version of the script from here: webSeoAnalyticsLinker.zip
Tags: anchor, coding, download, free, google, javascript, link, nofollow, pagerank, pagerank sculpting, php, Programming, SEO, Useful Links, web development, webseoanalyticsLinker

40 Responses to “PageRank Sculpting: You can still use rel=nofollow”
Leave a Reply
Guest Articles (10)
Guides (28)
Marketing (65)
PPC (7)
Programming (8)
SEO (91)
Social Media (25)
Why my SEO campaign Failed (4)
Best Practices for optimizing your website for mobile devices
How to Use Social Media for Crisis Management
Basic Social Media Practices for Travel and Tourism Industry
The 10 Dos and 10 Don’ts of a Corporate Social Media Strategy
SEO Tutorial: How to change your website’s host without affecting your Rankings
How Guest Blogging can help you improve your SEO?
New Google Toolbar PageRank Update – November 2011
SEO Guide: How to change your Domain name without losing your rankings
5 reasons why Google encrypts the Keyword Data & the effects on Online Marketing
20 KPIs you should monitor in Google Analytics






(23 votes, average: 4.04 out of 5)
VERY cool stuff here! How hard are the links decodet? Because… google already reads simple JS like “document.write”.. and onclick-JS.
SEOux Indianer: It can not be decoded by Google for sure. We have been using this script for 3 months to many of our clients and of course in this site.
I’ll be checking this out. Looks very interesting.
There is obviously a lot to know about this. I think you made some good points in Features also.
:O So mush Info :O
Your blog is so informative
I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.
Here is some further reading if anyone would like more info on Google PR and nofollow usage.
Edited by bbriniotis: URL address is replaced by an anchor link.
#1 Source of information I have read about this is right here. Keep going Thank you and all my best
i will check it .. tnx
Nice idea, but its really bad for usability. You want your links to work even if Javascript is disabled. I’m using the noscripts plugin on firefox and some of your links like “references and clients” do not work.
So a caveat to people that are thinking of using this to replace all their no-follow links. Browsers with JS switched off won’t be able to access the links.
PR is very important in Seo. So, this information is a great contribution.Thank you very much.
It’s easier to just create a clean nav structure and not risk running afoul of all sorts of search engine filters, yes?
Very clever! An excellent plugin, I’m using it on all of my sites. Thank you very much! *bookmarked and stumbled*
Hmm, I guess this would work but… really, you are just chasing your tale here. The whole page rank sculpting and silos thing was a killer move two, maybe three years ago but now, it is dead in the ground.
The same thing to a lesser and more natural degree can be achieved with a good, usable navigation and extra links to important pages built into the site design. Really, no need for this kind of approach and you only risk discovery and punishment at the hand of the google hammer!
Hi there, I would have to agree with Ian and John ,) and wouldn’t be just as easy to perhaps utilize the for ??
Thanks very good for report, I follow your blog
very good information about pagerank, i am using it for my sites
Thanks for the info. We are looking over this right now and hope to implement this soon. Thanks again
I download this file and will try for my website
Thanks
thanks for this script
[...] the “must have” SEO tools for website analysis, PageRank Sculpting, page and keywords analysis, link tools, search engines tools and site submitter, Web SEO Analytics [...]
[...] in your website, you can avoid PageRank losses by using the method described in the article “PageRank Sculpting: You can still use rel=nofollow“. Thank you for Sharing tweetmeme_source = 'webseoanalytics'; [...]
I think this feature has created a lot of confusion. But if the whole idea of no follow is conceptually clear then it will definitely boost your site’s ranking
WOW this is the first i have heard of the no follow thing, how dishearting this is. But i like the plugin thanks for the info nice1
Very interesting strategy. I will make some tests were in Brazil with this approach and come back to tell’ya about it.
[...] of you who are fans of PageRank Sculpting should read the article “PageRank Sculpting: You can still use rel=nofollow” where we describe a very effective technique that allows you to drive the link juice to the [...]
I am going to implement and test, will report back results of changes if any.
[...] of you who are fans of PageRank Sculpting should read the article “PageRank Sculpting: You can still use rel=nofollow” where we describe a very effective technique that allows you to drive the link juice to the [...]
[...] Poucos meses atrás Matt Cutts anunciou que o atributo rel=”nofollow” não funciona mais da maneira que costumava fazer. A recomendação é basicamente que se você não quer que um link seja seguido, diminua a ocorrência dele no seu site. Existe uma outra alternativa também, que é a seguinte: Uma vez que o Googlebot não segue links em javascript, use javascript para os links que você não quer que sejam seguidos. O pessoal da WebSEO Analytics desenvolveu um javascript que automatiza este processo, detectando links com atributo rel=”nofollow” e substituindo por links em js que pode ser baixado no endereço: PageRank Sculpting: You can still use rel=nofollow. [...]
Great script I like and used it on my website
[...] In the first years of Google, PageRank was one of the most important signals that heavily affected the search results. As a consequence SEO Professionals heavily focused on increasing the PageRank values of their pages either by building links naturally or by acquiring paid links from high PageRank pages. At the same time SEOs and webmasters have tried to manipulate the PageRank distribution by changing their internal link structure and by using PageRank sculpting techniques. [...]
[...] 39. Have I nofollowed the links that I do not trust? Have I decided on whether I will do PageRank sculpting? [...]
[...] perda de PageRank por motivos de utilização de nofollow. Para maiores informações, acesse aqui. vi) Utilize redirecionamento 301 invés de 302 quando os caminhos das páginas mudarem e elas [...]
I was doing some online research on the nofollow tag attribute trying to determine the best way to use it on my site. Google Search led me to this post here, and after reading it, I feel like I learned a few things, thanks! I haven’t used these tags much on my site, and after looking at this post, that sounds like it might not be a bad thing! Thanks of the info on options that exists to not devalue the use of Nofollows based on changes Google has made. Its good to know about solutions that exists out here for webmasters. Thanks again.
-David
Page rank sculpting with the nofollow tag is still in debate and many sites are still using it to achieve higher pr to the higher priority links, some of sites are able to sculpt to PR 7 and higher using the nofollow tag, so I don’t think it is a big issue as of yet.
what about if we have link like onclick= ” parent.location=’ some think . com ‘
”
in such javascript , search engine can find us?
It sounds pretty smart, though I am thinking Google would not really approve a method like this, or…?
I’d be very cautious using this script. Whilst at present you’ve not encountered any hit, it’s not natural and I’d expect you to run into issues in the future.
Time can be better spent elsewhere such as looking at improving the structure or the overall internal linking of the site..
You might be interested in reading our latest blog post about page rank sculpting and no-followed links:
http://www.sitevisibility.co.uk/blog/2011/12/22/abc-of-seo-no-follow/