Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I do if I don't want my website to be indexed by search engines?

Tags:

html

What's the tag that you have to put in HTML to prevent your pages from being indexed by search engines?

like image 602
xiaodai Avatar asked Nov 29 '22 18:11

xiaodai


1 Answers

Add this to the HTML <head> element of the pages you'd like not to index:

<meta name="robots" content="noindex, nofollow">

To cover the entire site, create a robots.txt on the root folder which contains the following lines:

User-agent: *
Disallow: /

See also:

  • Google webmaster tools help
  • The robots exclusion standard
like image 173
BalusC Avatar answered May 22 '23 05:05

BalusC