Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rik Hodiamont 56 posts 156 karma points
    Nov 30, 2015 @ 13:36
    Rik Hodiamont
    0

    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

  • [email protected] 408 posts 2137 karma points MVP 8x c-trib
    Dec 01, 2015 @ 08:03
    jeffrey@umarketingsuite.com
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft