How do i exclude swf files from indexing by google
nxfx
2:25 am on Jul 26, 2007 (gmt 0)
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)
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)
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)
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.