hide media file from search engines

Community Forums Forums General Discussion hide media file from search engines

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  blogjunkie 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #50743


    I don’t want some of my files to be able to be found through a search. How can I hade the files?



    Hi! You can create a robots.txt file which tells search engines what they can and cannot index. Create a plain text document (extension must be .txt) with Notepad or Textedit with the following:

    User-agent: *
    Disallow: /wp-content/uploads/private

    This tells search engines not to index anything that is in the /wp-content/uploads/private directory. Learn more about the robots.txt file here: http://www.robotstxt.org

    And check out Google’s own robots.txt file for a live example: http://www.google.com/robots.txt

    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.