Forum Moderators: open

Message Too Old, No Replies

How do I stop a link from giving PR?

         

Dino_M

3:07 pm on Oct 11, 2002 (gmt 0)

10+ Year Member



What to do some experiments on a site regarding PR and PR leaking can someone tell me the exact code I need to put in front/after my A HREF link.

Make the instructions idiot proof if possible!
cheers

DaveN

3:19 pm on Oct 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you could do it the javascript
place is in the header

<script type="text/javascript">
function noprlink(url){window.open('http://'+url)}
</script>

use this for the link

<a href="javascript:noprlink('www.somesite.com')">link to you<a>

DaveN

Chico_Loco

10:02 pm on Oct 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only problem with that code is that it will make the link visable for non-javascript compliant browsers, but clicking on the link will do nothing. Also google will send PR to "javascript..." in the href?

I use this:

<SCRIPT Language="Javascript">
document.write('<a href="http://address.com">Link Text</a>');
</SCRIPT>

This was google sees nothing, and neither do people who have javascript disabled!

Marcia

10:08 pm on Oct 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, you really don't "leak" PR, you don't lose PR from a page by linking out. There's a smaller portion of PR that goes back to your own site's pages from that page with outbound links, but you can control that by how many pages link to that one and how far up or down it is in the linking path from the high PR pages.

The danger is that if you stop "giving" PR benefit you could lose valuable inbound links if they're recips and end up shooting yourself in the foot. Some people do check, especially if they expect something back for a good PR link they're giving you. Then, others who see it won't link to you in future, if they're savvy.

NameNick

10:34 pm on Oct 11, 2002 (gmt 0)

10+ Year Member


Dino_M,

You could use a link counter script (php or perl), so that the link would look like this:

<a href="http://www.yourdomain.com/linkcounter.php?url=http://www.otherdomain.net/">Link Text</a>

Greetings NN

Dino_M

9:20 am on Oct 14, 2002 (gmt 0)

10+ Year Member



cheers all,

Marcia I had no intention of using this to con unknowing webmasters out of PR, just want to controll the flow around my own site with a bit more precision! and prehaps to make sure no one is using these little tricks on yours trully :)

Powdork

6:00 am on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use java script to call up a js file that is in a robots.txt protected directory. The protected js file does the linking. I use it to make sure Gbody doesn't see links that it may consider to be cross linking.
This way
a. Gbody can't see the link so there is no pr flow
b. Since there is no pr flow, there would be no penalty for using cross linking to enhance pr.

ikbenhet1

5:29 pm on Oct 15, 2002 (gmt 0)

10+ Year Member




Chico, i think you make a good point about leaking pr that is worth trying, can't lose on that.

your html for nopr link is javascript and the link will not be visible in javascript disabled browsers (i guess, never tested).

tristan

6:47 pm on Oct 15, 2002 (gmt 0)



>You could use a link counter script (php or perl), so that the link would look like this:
> <a href="http://www.yourdomain.com/linkcounter.php?url=http://www.otherdomain.net/">Link Text</a>

I used something similar on my site:
href="http://<domain>/cgi-bin/link.pl?http://www.othersite.com/">

and then denied the link.pl script with a robots.txt, but the links still
show up as backlinks in google... I guess you'd be better off by using a db
and a code instead of the url as parameter

Chico_Loco

5:30 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I recently wrote such a CGI script which has a small database of url called by a parameter name of the form show.pl?id=some-id

I wrote it to track stuff, so I've a little admin screen where you can ad links / modify, see how many hits url's have gotten and also you can see any call's to the script that have no id's i.e. their not pointing to any URL.

I'd be willing to provide the code, just sticy me if you want it.

teeceo

5:59 am on Oct 16, 2002 (gmt 0)

10+ Year Member



I have a qeustion on the same lines. how do I link to a site without the link being followed by googlebot and when someone clicks on the link, a new page pop's up so that they don't leave my site?

teeceo.

Powdork

6:12 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Create a js file with the following in notepad

function url() { hidden=open('http://www.siteyouwanttolinkto.com','NewWindow','status=no,resizable=yes,scrollbars=yes'); }

save it in a subdirectory along with a blank index file. Disallow the subdirectory with robots.txt

In the head of the page(s) with the link put

<script language="JavaScript" src="directory/filename.js"></script>

for the link put

<a href="javascript:url()"

Hope this helps
cut

This will open the page in a new window with no navigation or address bars and Googlebot won't follow it.

fathom

6:17 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is very advantageous for you that Googlebot follows the link particularly if this is a reciprocating link.

In this case:

<a href="#" onclick="window.open('http://www.somedomain.com/index.html', 'defined link title should be same as anchor text','toolbar=yes or no,resizable=yes or no,scrollbars=yes or no,width=800,height=600,left=0,top=0');">link anchor text</a>

(remove "yes or" "or no" depending on which attributes you use.)

with popping out to a new window and no tool bars you are ensuring that the visitor will return to your site and without needing to back out or losing their way. (make sure though that the new domain fits your attributes selected).

This also hides the new domain name, meaning they will most likely need to come back to your site to find the linked domain again.

teeceo

6:36 am on Oct 16, 2002 (gmt 0)

10+ Year Member



"<a href="#" onclick="window.open('http://www.somedomain.com/index.html', 'defined link title should be same as anchor text','toolbar=yes or no,resizable=yes or no,scrollbars=yes or no,width=800,height=600,left=0,top=0');">link anchor text</a>"

could you give me a example of this, I am brand new at this. could you show me a working model of this please?

teeceo.

allanp73

6:43 am on Oct 16, 2002 (gmt 0)

10+ Year Member



I agree that it is important to let Google find the link especially if it is a reciprocal link. I recommend that if you worry about loosing visitors that you add the following code to the link "target=blank"
This opens a new page instead of leaving your site and allows Google to continue crawling.

teeceo

6:53 am on Oct 16, 2002 (gmt 0)

10+ Year Member



it's not a risip thing. the site I will link to has a pr0 and I don't what to get smashed by google.

teeceo.

tigger

7:09 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't see that as a problem I've linked to a couple of sites that are new and have a zero PR, my page has a PR5 and it's not harmed that,I think sometimes we do all panic a bit too much about linking to sites that have either a zero or been banned from google

fathom

8:02 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Agree with Tigger -- most sites that have PR0 pages are not penalized pages just insufficient PR to transfer internally based on the dilution factor.

Caution is always best but sites with penalities tend to be quite noticeable why they are penalized.

If still in doubt, link through cgi-bin and disallow googlebot is robots.txt for this directory.

Dave_Hill

12:39 am on Oct 18, 2002 (gmt 0)




HTML obsfucation would work wonders. Man, the first time I saw that in action I was dumbfounded, just a bunch of hashed up indecipherable gibberish that then went through a javascript decoder included in the code to make sense of.