robots.txt: user-agent: Googlebot disallow: / Google still indexing
Asked Answered
I

3

6

Look at the robots.txt of this site:

fr2.dk/robots.txt

The content is:

User-Agent: Googlebot
Disallow: /

That ought to tell google not to index the site, no?

If true, why does the site appear in google searches?

Inlaw answered 22/1, 2011 at 16:50 Comment(2)
Did you use the Google Webmaster Tools to check your robots.txt file?Kleinstein
because this is a thing now github.com/google/robotstxtFortna
D
7

Besides having to wait, because Google's index updates take some time, also note that if you have other sites linking to your site, robots.txt alone won't be sufficient to remove your site.

Quoting Google's support page "Remove a page or site from Google's search results":

If the page still exists but you don't want it to appear in search results, use robots.txt to prevent Google from crawling it. Note that in general, even if a URL is disallowed by robots.txt we may still index the page if we find its URL on another site. However, Google won't index the page if it's blocked in robots.txt and there's an active removal request for the page.

One possible alternative solution is also mentioned in above document:

Alternatively, you can use a noindex meta tag. When we see this tag on a page, Google will completely drop the page from our search results, even if other pages link to it. This is a good solution if you don't have direct access to the site server. (You will need to be able to edit the HTML source of the page).

Doodlesack answered 22/1, 2011 at 16:58 Comment(2)
You might want to emphasize the last part of the first quote: "...and there's an active removal request for the page."Pythagoras
Isn't this in reference to sites already indexed? Forcing one into Google's walled garden of tools is scantly a way for Google to respect the Exclusion Standard.Fortna
R
1

If you just added this, then you'll have to wait - it's not instantaenous - until Googlebot comes back to respider the site and sees the robots.txt, the site'll still be in their database.

I doubt it's relevant, but you might want to change your "Agent" to "agent" - Google's most likely not case sensitive for this, but can't hurt to follow the standard exactly.

Rayborn answered 22/1, 2011 at 16:53 Comment(2)
Thanks. But the file has been there since 2008 so it should have taken effect by now ;) Could the capitalized "Agent" be the reason why google doesnt respect it?Inlaw
Won't hurt to change it. And then just wait for googlebot to show up again. If the only hit it makes on your site is robots txt, you'll know the change worked.Rayborn
F
1

I can confirm Google doesn't respect the Robots Exclusion File. Here's my file, which I created before putting this origin online:

https://git.habd.as/robots.txt

And the full contents of the file:

User-agent: *
Disallow:

User-agent: Google
Disallow: /

And Google still indexed it.

I don't use Google after cancelling my account last March and never had this site added to a webmaster console outside Yandex which leaves me with two assumptions:

  1. Google is scraping Yandex
  2. Google doesn't respect the Robots Exclusion Standard

I haven't grepped my logs yet but I will and my assumption is I'll find Google spiders in there misbehaving.

Fortna answered 10/10, 2018 at 4:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.