WordPress.org

Ready to get started?Download WordPress

Forums

Hiding files uploaded to Media Library from appearing in site searches (2 posts)

  1. WebDev22
    Member
    Posted 1 year ago #

    Is it possible to hide images, PDF files, etc. that have been uploaded to the uploads folder (Media Library), from appearing in site searches? I'm referring to searches from within the site.

  2. WebDev22
    Member
    Posted 1 year ago #

    I'm wondering if adding the following entry to the robots.txt file will do it:

    ' Disallow: /wp-content/uploads/'

Topic Closed

This topic has been closed to new replies.

About this Topic