How to Hide a Web Page from Search Engines

Posted by Lasantha Bandara File Under : meta tags, seo

How to Hide a Web Page from Search Engines

If you want to prevent a specific web page from appearing in search engine results, add the following meta tag inside the <head> section of that webpage, ideally just after the opening <head> tag:

<meta name='robots' content='noindex,nofollow'/>

How to Use it in Blogger?

If you're using Blogger, go to ThemeEdit HTML of your blog and insert the above code inside the <head> section.

Note: If you add this meta tag directly into your Blogger template, it will hide your entire blog from search engines.

How to Hide Only a Specific Blogger Page or Post?

If you only want to hide a specific Blogger page or post from search engine results(for example, the "Advertise" page), use the conditional tag below to apply the meta tag only to that page:

<b:if cond='data:blog.url == "https://YOURBLOG.blogspot.com/p/advertise.html"'> 
<meta name='robots' content='noindex,nofollow'/>
</b:if>

Remember to replace "https://YOURBLOG.blogspot.com/p/advertise.html" with your actual post or page URL.

Important:

If you're using a full URL like https://YOURBLOG.blogspot.com/p/advertise.html, make sure HTTPS Redirect is enabled. Otherwise, the meta tag won't load for visitors using the non-HTTPS (http://) version of the page.

To enable HTTPS Redirect in Blogger:

  1. Go to your Blogger Dashboard
  2. Click Settings
  3. Scroll down to the HTTPS section
  4. Set "HTTPS Redirect" to ON

This ensures all visitors are automatically redirected to the secure HTTPS version of your blog, so your conditional tags work correctly.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.