Robots command to prevent pictures being indexed

Community Forums Forums General Discussion Robots command to prevent pictures being indexed

This topic is: not resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Marc 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1466

    john gronley
    Participant
    Post count: 124

    Hello;

    Can someone tell me the command to add to the robots.txt file to prevent photos from being indexed? Here is what is being indexed: http://moving-toarizona.com/6-bedroom-homes-for-sale-in-ocotillo/1670-w-grand-canyon-dr

    And here is the robots.txt file that I have been using:
    Sitemap: http://moving-toarizona.com/sitemap.xml
    User-agent: *
    Disallow: /wp-content/
    Disallow: /wp-content/plugins/
    Disallow: /wp-admin/
    Disallow: /wp-includes/
    Disallow: /wp-
    Disallow: /trackback/
    Disallow: /cgi-bin/
    Allow: /wp-content/uploads/
    User-agent: Googlebot
    Disallow: /*.pdf$
    Disallow: /*.php$
    Disallow: /*.js$
    Disallow: /*.cgi$
    Disallow: /*.xhtml$
    Disallow: /*.php*
    Disallow: /*.inc$
    Disallow: /*.css$
    Disallow: /*.txt$
    Disallow: /*?*
    Disallow: /wp-*
    Disallow: */trackback/
    Disallow: /cgi-bin/
    Disallow: /go/
    Allow: /wp-content/uploads/
    User-agent: Googlebot-Image
    Allow: /*
    Thanks,

    John

    • This topic was modified 1 year, 9 months ago by  john gronley.
    • This topic was modified 1 year, 9 months ago by  john gronley.
    #1469

    Marc
    Moderator
    Post count: 197

    These should work -

    Disallow: /*.gif$
    Disallow: /*.jpg$
    Disallow: /*.png$


    • This reply was modified 1 year, 9 months ago by  Marc.
    • This reply was modified 1 year, 9 months ago by  Marc.
    #1485

    john gronley
    Participant
    Post count: 124

    Thanks Marc

    #1542

    Marc
    Moderator
    Post count: 197
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.