Forum Moderators: phranque

Message Too Old, No Replies

Search engine access to .swf

I don't want google to link to my flash file

         

growlin stan

11:39 pm on Feb 23, 2009 (gmt 0)

10+ Year Member



I have a site structure as below:

/
index.html (displays /flash/main.swf file)

/flash/
main.swf

Google have extracted some content out of my site and linked directly to the .swf file.

The problem is that the swf file loads larger than designed to and looks teribble - images are distorted.

The index.html file is what controls how large the .swf plays and its position etc.

I have moved the swf file to the _private directory to prevent it happening again but now the google result is a dead link.

What would be the best way to approach this? Ideally I would like google to show results from content within the site but I don't want it pointing to the swf file.

phranque

12:19 am on Feb 24, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], growlin stan!

you should look at this:
swfobject - Google Code [code.google.com]

growlin stan

12:31 am on Feb 24, 2009 (gmt 0)

10+ Year Member



Thanks. That looks complicated for a beginner like me.

Samizdata

1:11 am on Feb 24, 2009 (gmt 0)

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



Google (and some others) will respect this in a robots.txt file.

User-agent: *
Disallow: /*.swf$

And swfObject (as suggested) is not complicated at all.

...