Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

NoIndex Images URL

  • #910
    Avatar photo[anonymous]

    What’s the easiest way to disable indexing of Media and Assets folders in Publii?

    All images and assets URLs are indexed by Google which is not ideal.

    #916
    Avatar photoBob

    Hi,

    I think you can try to use robots.txt with the following rules:

    Block one folder
    `User-agent: *
    Disallow: /folder/
    `
    Block one file
    `User-agent: *
    Disallow: /file.html
    `
    More detailed information you can find here: https://moz.com/learn/seo/robotstxt

    #917
    Avatar photo[anonymous]

    Robots.txt only works after you’ve NoIndexed existing image URLs. Otherwise Googlebot will never be able to reach those URLs in the first place.

    If there’s no direct/simple way to achieve this, another way of addressing my concern would be – how to ensure Publii doesn’t generate dedicated pages/URLs for Images? This has been a major issue with Yoast SEO on WordPress sites in the past.

    #918
    Avatar photoBob

    What do you mean by dedicated pages/URLs for Images?

    #919
    Avatar photo[anonymous]

    So I see links like `https://example.com/media/posts/2/abc.jpg` generated from my posts where I’ve uploaded pics.

    #920
    Avatar photoBob

    Yes, this is normal behavior; images must be located somewhere, and if you want to display them on a web page linked from that location.
    To remove the full src path, you can try to use Relative URLs in server settings, but I’m not sure if it helps.

    #921
    Avatar photo[anonymous]

    Is there no way to add NoIndex tag on images URL?

    #922
    Avatar photoBob

    There is no Noindex tag for an image element, instead, try to use X-Robots-Tag https://developers.google.com/search/reference/robots_meta_tag

    #6509
    Avatar photo[anonymous]

    In order to begin to study the topic to rank for SEO, you need to find the most basic knowledge in order to understand the structure of the creation and the internal market of the industry. I’m sure that with such a problematic direction, you can be helped by an additional tool article, which has everything that a beginner needs. When I first started getting interested in this business, I studied every point in this article. Now I’m doing it so fast that I don’t even have time to realize how fast my hands are typing and doing different kinds of tasks.