Disallow Flash Files

Discussion in 'robots.txt' started by lowprofilejoe, Jan 4, 2008.

  1. #1
    Is this the correct way to disallow all .swf files from inclusion?

     
    lowprofilejoe, Jan 4, 2008 IP
  2. Kuldeep1952

    Kuldeep1952 Active Member

    Messages:
    290
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I am not sure if you can disallow files by extension.
    You can achieve this by putting all the flash files in a
    folder and disallow that folder.
     
    Kuldeep1952, Jan 5, 2008 IP
  3. lowprofilejoe

    lowprofilejoe Active Member

    Messages:
    253
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    anyone else? Is putting all flash in their own folder and disallowing the folder, the only answer? God, that'll be a nightmare
     
    lowprofilejoe, Jan 5, 2008 IP
  4. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #4
    It makes sense to have different types of files in different folders from the start so that these kind of issues can easily be dealt with. I keep my CSS files under a "styles" folder, javascript can go under scripts or js, and so on.
     
    boltok, Jan 6, 2008 IP
  5. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The robots.txt "standard" is very limited. The only place it allows a wildcard is after the UserAgent: keyword.

    You can list every flash file on your site individually, wherever they are.

    I'm not aware of any bot that downloads flash files anyway. Have you found one ?
     
    Ladadadada, Jan 6, 2008 IP
  6. lowprofilejoe

    lowprofilejoe Active Member

    Messages:
    253
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Yes, Google will and does index swf files. Which sucks, because no ad units are being displayed, so people are viewing the swf without the html around it.
     
    lowprofilejoe, Jan 6, 2008 IP
  7. lowprofilejoe

    lowprofilejoe Active Member

    Messages:
    253
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    Just wanted to check and see if anyone else knew of another way. Moving all my flash files will be a nightmare.
     
    lowprofilejoe, Jan 8, 2008 IP
  8. SwapsRulez

    SwapsRulez Peon

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes mate, all the newer & updated bots understands non stable standard extensions such as *... but you'll have problems with other bots that doesnt understands that concept...
    so you have two choices...
    1) Find out all the flash files & list them in the robots.txt with the each line giving one file name in the disallow tag.
    2) Move out your all flash files to one folder & disallow that perticular folder.

    Cheers mate... Peace!

    EDIT :
    Searched for google syntax... you have to write there

     
    SwapsRulez, Jan 12, 2008 IP