0

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
luator
  • 4,769
  • 3
  • 30
  • 51

2 Answers2

0

Just have a look here

User-agent: *
Disallow: /
4lxndr
  • 357
  • 2
  • 12
0

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:

  • Googlebot should never visit your URLs, but it might index your URLs (learning about them from different sources): use robots.txt.
  • Googlebot should never index your URLs, but it might visit them: use meta-robots.
Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360