Exclude photo from Google search result

#194166
  • Resolved TnD Blog
    Rank Math free

    Hello,

    May I know how to Exclude an image from search engine result (google search engine result)

    There is an image inserted in my site’s page (please see sensitive data for more information)

    Thank you.

Viewing 15 replies - 1 through 15 (of 26 total)
  • Cris
    Rank Math business

    Hello,

    Thank you for contacting us and I am very happy to assist you.

    There is an option for you to exclude an image from showing up on Google search results.
    For example, if you want Google to exclude the dogs.jpg image that appears on your site at http://www.yoursite.com/images/dogs.jpg, add the following to your robots.txt file:

    User-agent: Googlebot-Image
    Disallow: /images/dogs.jpg

    The next time Google crawls your site, they will see this directive and drop your image from the search results.

    For more information, you may check out the link below:
    https://developers.google.com/search/docs/advanced/crawling/prevent-images-on-your-page

    I hope that helps and please do not hesitate to contact us back anytime if you require further assistance.

    Happy to help!

    Cheers,

    Hi Crish,

    Happy to receive your advise. I how 2 questions.

    1. Is this method apply for all image from a website or it is just for 1 particular image?

    2. How can I add this code this my robots.txt file? Or where can I find my site robots.txt file? I am not so good at website develop.

    Thank you for your help

    Cris
    Rank Math business

    Hello,

    Thanks for getting in touch with us.

    1. Is this method applies to all images from a website or it is just for 1 particular image?
    – The below code is for a particular image only:

    User-agent: Googlebot-Image
    Disallow: /images/dogs.jpg

    If you wish to remove all the images on your site from Google’s index, place the following robots.txt file in your server root:

    User-agent: Googlebot-Image
    Disallow: /

    Additionally, disallow patterns may include “*” to match any sequence of characters, and patterns may end in “$” to indicate the end of a name. To remove all files of a specific file type (for example, to include .jpg but not .gif images), you’d use the following robots.txt entry:

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

    2. How can I add this code this my robots.txt file? Or where can I find my site robots.txt file? I am not so good at website development.
    – To edit your robots.txt file, please follow the steps below:
    Kindly go to Rank Math > General Settings > Edit Robots.txt
    From there, you can paste the code I have given you and save it.

    Should you have further questions, please let us know.

    Cheers,

    Hello,

    Thank a lot for your help.

    So in exactly, which code should I use the block only 1 image as I mentioned earlier in the sensitive data.

    Thank you.

    Hello,

    Thank you for the follow-up.

    You can use the first code mentioned in my colleague’s reply above.

    I’ve also attached the structure in the sensitive data based on the image results. Please let us know if that is the exact image.

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Hello,

    With that structure I understand it now.

    I think I can apply this now.

    Thank a lot

    Cris
    Rank Math business

    Hello,

    Thank you for letting us know.

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Cheers,

    Hello,

    Thank you and your team for great supporting. Of course 5 stars for rank math. I will log in wp.org i give the review. :))

    Thank you.

    Cris
    Rank Math business

    Hello,

    We appreciate your awesome feedback!

    Please do remember that we are always here to help and to put a smile on your face.

    Again, thank you for contacting Rank Math. Have a good day and stay safe always!

    Cheers,

    Oh. sorry, i still not yet copy the code structure in the sensitive data 🙁 . Have you closed the ticket?

    Hello,

    Thank you for the update, and apologies for the delay.

    I’ve reopened this ticket to assist you further. Unfortunately, the information in the sensitive data section will be removed once you have marked this ticket as already resolved.

    However, here’s the structure you can follow (replace the image path with your actual image)

    User-agent: Googlebot-Image
    Disallow: /images/dogs.jpg

    If you’re unsure, please add again the image link to provide you the structure.

    I hope that helps. Thank you, and looking forward to your update.

    Hello,

    Thank you for your reply. I will share the structure and image information for you to check. Please let me know if the code added is correct.

    See sensitive data.

    Thank you.

    Cris
    Rank Math business

    Hello,

    Thanks for getting back to us.

    I tried searching for the URL you provided in the sensitive data section and apparently, the image you wish to remain hidden is still visible on the Google Search result.

    Would you mind sharing your WordPress login credentials on the sensitive data section again so we can confirm if the codes added on your robots.txt file are properly formatted?

    Looking forward to assisting you.

    Cheers,

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I have share the login data in sensitive section, kindly help me to have a look at it and let me know the outcome.

Viewing 15 replies - 1 through 15 (of 26 total)

The ticket ‘Exclude photo from Google search result’ is closed to new replies.