Hide my page from search engines

by 3 replies
4
Is there any way to put code into the page to prevent search engines from indexing a page? I am working in WordPress if it makes any difference.

I know I can set that page to no index with robots txt, but I thought I read somewhere that you can put come code in the page itself to stop the robots from indexing it.

Please advise. Thanks in advance.
#programming #engines #hide #page #robots.txt #search
  • Can someone tell me, is there no such code, or has no one read this thread?
    • [1] reply
  • create robots.txt under your domain root. (http://domain.com/robots.txt)

    Code:
    User-agent: *
    Disallow: /
    
    # or
    
    User-agent: *
    Disallow: /your-page.html
    It will disallow search engine to indexing your website. If you want to use a meta technique, please add these codes into your page

    Code:
    <meta name="robots" content="noindex" />
    <meta name="googlebot" content="index" />

Next Topics on Trending Feed

  • 4

    Is there any way to put code into the page to prevent search engines from indexing a page? I am working in WordPress if it makes any difference. I know I can set that page to no index with robots txt, but I thought I read somewhere that you can put come code in the page itself to stop the robots from indexing it.