Skip to content

core(is-crawlable): only warn if some bots are blocked #14550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 12, 2023

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Nov 19, 2022

ref #5329 (can't close until we update docs)

This audit will no longer fail if some known crawler is explicitly allowed while others are blocked. Instead, it will emit a warning say which user agents have been blocked. Details items are only present when the audit is failing, and only show blocking directives wrt a generic UA.

here's a really big list of crawler UAs ... https://github.com/monperrus/crawler-user-agents/blob/master/crawler-user-agents.json . What all should we explicitly look for?

@connorjclark connorjclark requested a review from a team as a code owner November 19, 2022 01:14
@connorjclark connorjclark requested review from adamraine and removed request for a team November 19, 2022 01:14
@@ -48,7 +56,7 @@ function isUnavailable(directive) {

/**
* Returns true if any of provided directives blocks page from being indexed
* @param {string} directives
* @param {string} directives assumes no user-agent prefix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param {string} directives assumes no user-agent prefix
* @param {string} directives (assumes no user-agent prefix)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is proper jsdoc syntax. IDE makes it look like this on hover:
image

and not hovered color should be different

image

@connorjclark connorjclark mentioned this pull request Jan 12, 2023
13 tasks
@connorjclark connorjclark changed the title core(is-crawlable): only warn if some bots are blocked from crawling core(is-crawlable): only warn if some bots are blocked Jan 12, 2023
@connorjclark connorjclark merged commit e9fd78a into main Jan 12, 2023
@connorjclark connorjclark deleted the crawl-specific branch January 12, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants