I have a website with many pages. There are few lines of text on one of these pages which should NOT be visible to search engines - it means no one should be able to find my website after searching for the information provided in these few lines. How can I achieve that?

I was thinking to exclude this particular page using robots.txt but in this case, I'm telling everyone that this page is interesting. Also, I was thinking to paste this text as an image but then it may look strange on mobile.

Is there a solution for what I want to achieve?

  • You appear to have conflicting goals. Robots.txt will tell search engines not to index it. Who then would find the entry "interesting" that you also want to hide from?
    – schroeder
    Feb 19, 2020 at 14:59
  • What hoops are you not willing for visitors to have to go through? Authentication and CAPTCHA can do this.
    – schroeder
    Feb 19, 2020 at 15:01
  • 1
    "Text might look strange on mobile" - memes do this all the time
    – schroeder
    Feb 19, 2020 at 15:02
  • @schroeder FOR EXAMPLE - let's say I want to have my phone number on site because regulations asked that from me but I don't want that you can find my phone number using search engines and I don't want that by searching this phone number my page is found as a result. Feb 19, 2020 at 16:08
  • And that's my confusion: who is this new party who you don't want to expose the info to?
    – schroeder
    Feb 19, 2020 at 16:09

1 Answer 1


If you want arbitrary people, who you cannot predict or define ahead of time, to access the page, then it needs to be unrestricted. If you don't want search engines from indexing the data, then you need to block automated processes from accessing it. CAPTCHA is a standard method for doing that.

But that still means that any human visitor to your site could find the information, and you appear to not want that either.

So, you need something that blocks automated processes, and is not easily discovered by human visitors, either. A random URL can work for this, and when you need to expose the information, you provide a link to the random URL. Change the URL periodically.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .