Block Search Engines From Indexing Image/Photos in WordPress Posts

You can quickly stop any WordPress website from indexing in Google from setting, but you can block the whole site from Dashboard > Settings > Reading but not single post and single post image or any WordPress page.

Search Engines From Indexing Specific Image in WordPress

You can also disable the entire website from indexing in Google by following robots.txt means Search Engines can not search the whole site.

User-agent: *
Disallow: /

To disable single page, category or tags or anything in WordPress, you need to use the robots.txt file, which is a very common method to disable anything from indexing in Google.To use this, you must know simple steps

How to Block/Disable Single Post using Robots.txt

To block single post from search engine simple copy post URL of the post and add the following URL to robots.txt and that should include the URL slug “my-post-URL.” To disallow other posts or pages, you just need to copy and paste relevant URL slugs accurately ( Make sure to use your permalink structure ).

User-agent: *
Disallow: /my-post-url

If you want to disable image directory to index in google then block image directory folder and search engine will not index your images

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

Now to Block Single image in WordPress Post Simply add image URL in robots file as explained in below code

User-agent: *
Disallow: /wp-content/uploads/123.jpg

How to Disable/Block Pages and Post using WordPress Plugin

Another easy way to do this automatically is the use WordPress Yoast Plugin , You can do all indexing and unindexing using plugin setting.Check below video for details.

Using googleon and googleoff tags

use google on off text to tell google not to index any part of post like if you dont want google to index image or any part of post then use that text or image in between google off and google on

<!–googleoff: all–>


<img src=”” alt=”Search Engines From Indexing Specific Image in WordPress” width=”591″ height=”242″ class=”aligncenter size-full wp-image-6763″ />

<!–googleon: all–>