Avoid some images view page to be indexed by search engines

Question: how do you avoid some images (view page) to be indexed by search engines (like google)? Maybe with an empty view or a view that redirect to the image? Can a content be without any default view (but still have an edit view)?

I mean the image.png/view url, with title and description. It is common that these are not really content by itself, thus the view should not appear in search engines. For example, if you have a technical guide with some image, you don't want people to find the image instead of the guide ( can happen because the image have a shorter title, the title match the search keywords, etc).

I would guess it is better to add a meta-tag with 'no-index' ( <meta name="robots" content="noindex"> if I remember right) than to make a new (empty) view.

1 Like

via robots.txt and a regex:

User-agent: *
Disallow: /*\.png/view$

You can test and play this in the google search console.

Just a note: An image can have an URL that does not contain the image type (even if it is not default)

1 Like