I want to know if it's possible to hide some media for Google.
I have several options in mind.
A setting on the 'Media' document type which you can select disable SEO or something like that. A proces will be executed when a user selected this option and put this media type in de robots.txt.
Another option is a custom media section which is available in the backend. Then I can exclude the whole custom media section in the robots.txt. But is this possible?
Maybe someone has another idea or made something like this in the past.
that's a hard question that isn't provided out of the box by Umbraco. The approach I would take is:
Write your own MediaUrlProvider. In this provider you create an url that contains for example /media/private/1334/secret-logo.png if the property "Disable indexing" is checked.
In that case you could exclude /media/private/* in your robots.txt, and you're done.
Hide Media from Google
Hi,
I want to know if it's possible to hide some media for Google. I have several options in mind.
A setting on the 'Media' document type which you can select disable SEO or something like that. A proces will be executed when a user selected this option and put this media type in de robots.txt.
Another option is a custom media section which is available in the backend. Then I can exclude the whole custom media section in the robots.txt. But is this possible?
Maybe someone has another idea or made something like this in the past.
Tnx in advance for your suggestions.
Kind regards,
Rik
Hi Rik,
that's a hard question that isn't provided out of the box by Umbraco. The approach I would take is:
Write your own MediaUrlProvider. In this provider you create an url that contains for example /media/private/1334/secret-logo.png if the property "Disable indexing" is checked.
In that case you could exclude /media/private/* in your robots.txt, and you're done.
Hope this helps you,
Jeffrey
is working on a reply...