disallow indexing thumbnail image

by elsoar
5 replies
  • WEB DESIGN
  • |
I want disallow indexing thumbnail image in google image, In my wordpress blog.

Yeah! I have best way do do that, but it's on old,
see:
Disallow: /wp-content/uploads/*140x84.jpg$
In robots.txt

But now i have many sub-folders in wp-content/uploads

So! what i do now?
#disallow #image #indexing #thumbnail
  • Profile picture of the author yasar
    make all images in one folder For example (Folder Name : blog image) and create a one htaccess file to that folder and write below comment

    Deny from all
    {{ DiscussionBoard.errors[10191231].message }}
  • Profile picture of the author elsoar
    @yasar

    i KNOW THAT,

    But now, I can't do this.

    Any other Solution؟
    {{ DiscussionBoard.errors[10191361].message }}
  • modify robots.txt to disallow

    # disallow the images directories

    User-agent: *
    Disallow: /wp-content/uploads/

    #disallow specific file types

    User-agent: *
    Disallow: /*.gif$

    User-agent: *
    Disallow: /*.jpg$

    User-agent: *
    Disallow: /*.png$
    Signature
    Premium WooCommerce & WordPress Plugins $10/ea. or FREE With Membership. PluginForage.com
    {{ DiscussionBoard.errors[10191513].message }}
  • Profile picture of the author elsoar
    @totalprocessing.net

    Do you understand my purpose?

    I have many sub-folders in wp-content/uploads
    Also, I want disallow indexing one size (thumbnails) not all jpeg's or gif's ..etc.
    {{ DiscussionBoard.errors[10191729].message }}
    • Originally Posted by elsoar View Post

      @totalprocessing.net

      Do you understand my purpose?

      I have many sub-folders in wp-content/uploads
      Also, I want disallow indexing one size (thumbnails) not all jpeg's or gif's ..etc.
      Don't think that will be possible. You can disallow a directory and all sub directories in it, or disallow a sub directory, or disallow an image type. To do what you want, you would need to move all of your thumbnails to a directory of their own and disallow it. That is the only way I know of to do it.
      Signature
      Premium WooCommerce & WordPress Plugins $10/ea. or FREE With Membership. PluginForage.com
      {{ DiscussionBoard.errors[10192302].message }}

Trending Topics