I'm working with Symfony 1.4 and i want deactivate Google's index in my web site, what's the best code i will have to use?
- robots: no-index,nofollow
- robots: disallow
I'm working with Symfony 1.4 and i want deactivate Google's index in my web site, what's the best code i will have to use?
They do different things:
By using a robots.txt, you can disallow crawling of your site.
By using a meta
-robots
element, you can disallow indexing of your site.
If you want one, you can’t have the other.
So you have to decide:
meta
-robots
.