rails-contributors icon indicating copy to clipboard operation
rails-contributors copied to clipboard

Update robots.txt to improve crawler access

Open fgo opened this issue 1 year ago • 2 comments

Allow search engine visibility and ensures proper crawling behavior for Google.

Revise the robots.txt file to disallow all crawlers by default while allowing specific access for Googlebot, DuckDuckBot, and Bingbot.

Currently, searching for "Rails contributors" on Google results in:

No information is available for this page.

image

The reason is the page is blocked by Robots.txt image

Robots.txt validator shows the site is disallowed if the User Agent is Googlebot. image

Changing the User-Agent order allows Google to crawl the site.

image

fgo avatar Dec 29 '24 16:12 fgo

I guess the problem is that the rule says "Google" instead of "Googlebot".

The patch does unnecessary additional edits, I think, would you mind doing that small edit only?

fxn avatar Dec 29 '24 23:12 fxn

I guess the problem is that the rule says "Google" instead of "Googlebot".

The patch does unnecessary additional edits, I think, would you mind doing that small edit only?

Updated, great catch ❤️

fgo avatar Jan 05 '25 13:01 fgo