Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

How to Prevent Search Engine Bots to Index Any Page Using Meta Tag in HTML?

For general web development questions using HTML and CSS.
Post Reply
admin
Site Admin
Posts: 45

How to Prevent Search Engine Bots to Index Any Page Using Meta Tag in HTML?

Post by admin » Thu Aug 22, 2019 2:34 pm

To prevent all search bots from indexing a page:

Code: Select all

<meta name="robots" content="noindex">
To prevent just Google:

Code: Select all

<meta name="googlebot" content="noindex">
If you have control over it, you probably want to add nofollow to links that point to that page as well:

Code: Select all

<a href="privatepage.html" rel="nofollow">Link to private page</a>
Theoretically that's not needed for Google, which claims to drop all pages with noindex from their directory. But there are more search engines out there and it doesn't hurt.

Post Reply