1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do you stop google showing your hidden files???

Discussion in 'Google' started by itsall3, Oct 16, 2007.

  1. #1
    Hi everyone,

    I have a problem with my site and google.

    For some reason, it's giving everyone links directly to our "SWF" (flash) files, instead of just the site...

    We really want people to visit the site to get access to the flash content, otherwise, how will they see our adsense ads ;)


    In my robots.txt file i have this:

    User-agent: *
    Disallow: /*swf*


    It's been in there for MONTHS, lol, and google just dosnt seem to care.

    Am i doing somthing wrong?

    Thanks for the help.

    Regards.
    SEMrush
     
    itsall3, Oct 16, 2007 IP
    SEMrush
  2. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #2
    google can't read flash file... well maybe if its html

    and you don't have to include robots if you want google to see it..
     
    bogs, Oct 16, 2007 IP
  3. Alexander the Great

    Alexander the Great Peon

    Messages:
    253
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Unless you have all your flash content in a folder called /*swf* that isn't going to work.

    Maybe a short cut to getting it done quickly would be to use client scripting to write out your swfs. But then you want to block them properly with the robots exclusion protocol.
     
    Alexander the Great, Oct 16, 2007 IP
    itsall3 likes this.
  4. rcj662

    rcj662 Guest

    Messages:
    4,403
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You could change the text for links to files so it is not picked up for a search term. I would not name them i would number them so they do not list the files.
     
    rcj662, Oct 16, 2007 IP
  5. jkolarov

    jkolarov Peon

    Messages:
    109
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    long story short - put all of the files you don't want google to index in a folder, then disallow that same folder and that's it. You can check robotstxt.org for assistance.
     
    jkolarov, Oct 16, 2007 IP
  6. itsall3

    itsall3 Active Member

    Messages:
    505
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #6
    ah, so /*swf* means exclude a directory - d'oh, i thought that was the file type :eek:

    I can wait another month or two while google stops listing my swfs in its results if there is an easy way to block swf files. I dont want to move the file, or use "client scripting" (as i dont know what that is)

    Could someone tell me the write robots.txt file to stop google listing swf files, but let all other search engines and google run around the rest of the site fine.

    Cheers again

    (rep added a.t.g)
     
    itsall3, Oct 16, 2007 IP
  7. sirrus

    sirrus Peon

    Messages:
    74
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you don't have too many SWFs, you can just use Google Webmaster Tools and ask them to remove the specific URLs.

    Using robots.txt do something like this:

    Disallow: /*.swf$

    $ = end of filename
     
    sirrus, Oct 16, 2007 IP
    itsall3 likes this.
  8. Alexander the Great

    Alexander the Great Peon

    Messages:
    253
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Client script = java. Stuff that runs on the client, in the browser, instead of on the server.

    You can use your .htaccess file to kill requests to swf files when the referrer is Google?
     
    Alexander the Great, Oct 16, 2007 IP
  9. trichnosis

    trichnosis Prominent Member

    Messages:
    13,780
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #9
    trichnosis, Oct 16, 2007 IP
  10. itsall3

    itsall3 Active Member

    Messages:
    505
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #10
    Thanks for the help guys :)

    I'll give these robots.txt a go.

    Cheers.
     
    itsall3, Oct 16, 2007 IP
  11. annavs2002

    annavs2002 Peon

    Messages:
    313
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    also intrested
     
    annavs2002, Oct 16, 2007 IP
  12. Alexander the Great

    Alexander the Great Peon

    Messages:
    253
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Did it work for you?
     
    Alexander the Great, Oct 24, 2007 IP