Forum Moderators: goodroi

Message Too Old, No Replies

Google Exclude .swf Files

How do i exclude swf files from indexing by google

         

nxfx

2:25 am on Jul 26, 2007 (gmt 0)

10+ Year Member



How do i exclude swf files from being indexed by google? some robots.txt rule maybe?

Thank you

goodroi

1:03 pm on Jul 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If you are only concerned about google then you can use wildcards aka pattern matching. The lines below allows you to tell googlebot not to index any file name containing ".swf". This does not work for all search engines but it is supported by google.

User-Agent: Googlebot
Disallow: /*.swf$

whoisgregg

1:15 pm on Jul 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know it's rather common to use loading .swf files that take a query like /loader.swf?file=therealmovie

Would the dollar sign allow google to index .swf files with a query string appended? Would it be better to leave it off?

goodroi

11:51 am on Jul 27, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



This would tell google not to index any urls containing "swf". So it wouldn't matter if you had a question mark or didn't.

User-agent: Googlebot
Disallow: /*swf*

nxfx

5:26 pm on Jul 30, 2007 (gmt 0)

10+ Year Member



Thank you,

i will try that!

Benjamin