PDA

View Full Version : can google follow links inside forms?



Apollo
01-31-2004, 05:36 PM
I want to hide a link going through a banner ad.

Will this hide the link:

<form method="GET" action="http://www.othersite.com">

<input src="bannerad.gif" name="I1" alt="go to other site" width="468" height="60"

type="image">

</form>

If it will, why isn't this a more commonly discussed method for hiding links rather than javascript?

Thanks

Chris
01-31-2004, 06:08 PM
Because you need some pretty crazy CSS to get a form to look like a text link (its possible though).

The best way to do this is to run it through a redirect script though.

dolphin
01-31-2004, 06:16 PM
No Google does not follow forms. Allow ways of doing it is using Javascript

Cheers

fatnewt
01-31-2004, 07:01 PM
Relying on JavaScript for links isn't good for usability/accessibility concerns.

Aspen's right, a redirect script would be the best way to go.

Apollo
02-04-2004, 02:06 PM
Just to make sure to allay my google penalty paranoia ...

Are you saying that google cannot follow a script that reads a database to find a URL?

So if you have a URL http://www.mydomain.com/gohere.php?id=23

and then in 'gohere.php' you read the database to get the URL matching '23' and then use this URL for a header/location transfer.

Is this enough to hide from google?

My apologies if this seems simple but in this case I am not so much worried about PR leak as I am about attracting some penalty from google (which would hurt me a lot).

incka
02-04-2004, 03:16 PM
I think google might tranfer PR to gohere.php...

Apollo
02-04-2004, 03:26 PM
>>I think google might tranfer PR to gohere.php...

In my particular case that is ok because gohere.php is still on-site and the main thing I am actually trying to achieve is to stop google knowing where I am linking to.

However, if my example does transfer PR to gohere.php then how can you have a transfer script without this happening and without javascript which as fatnewt points out can cause usability issues for those with javascript switched off?

GCT13
02-04-2004, 03:43 PM
You could put gohere.php in a directory that is disallowed by robots.txt.

Chris
02-04-2004, 04:11 PM
Yes, and if you do that no PR will be lost.

Apollo
02-15-2004, 03:05 PM
Originally posted by GCT13
You could put gohere.php in a directory that is disallowed by robots.txt.
Another solution I thought of for this is to not have a specific 'gohere.php' to handle the redirection but instead just include the redirection as part of your index page or another regular internal page or directory and then there is no worry about losing PR.

You could just put it in an include file if you were worried about it cluttering up your code.

Apollo
06-18-2004, 11:24 PM
Just to update this, on two separate sites I put the destination URL inside a MySql database and then had an image redirection link with the key of the record containing the destination URL.

These links are showing up in the backlinks so google is following the link even though the URL is being read from a database and redirected.

My sole aim in this is to avoid a cross-linking penalty, not to avoid PR transfer, and so far the sites have got a good PR boost and not suffered a penalty. In fact it is even possible that they have received a 'boost' because of being in a particular 'neighborhood' (if such a thing happens).

Anyway I just thought I would let you know.

I might hide the image inside a form next and see if that can hide the link from google.

Chris
06-19-2004, 06:30 AM
Did you block the redirect script with robots.txt

Apollo
06-19-2004, 10:20 PM
No, unfortunately I did not use robots.txt to block the redirect script. I should try that before I move to the forms method. Thanks.