Skip to content
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

[BUG] Allowed in, while the only rule specifies Disallow: / #93

Open
JanPetterMG opened this issue Jan 7, 2022 · 0 comments
Open

[BUG] Allowed in, while the only rule specifies Disallow: / #93

JanPetterMG opened this issue Jan 7, 2022 · 0 comments
Assignees
Labels

Comments

@JanPetterMG
Copy link
Collaborator

$t1gor = new t1gor\RobotsTxtParser\RobotsTxtParser(<<<TXT
user-agent:*
disallow:/
TXT
);
var_dump($t1gor->isAllowed('/'));

Output: bool(true)
Expected: bool(false)

Quote

Valid robots.txt lines consists of a field, a colon, and a value. Spaces are optional, but recommended to improve readability.

Source: https://developers.google.com/search/docs/advanced/robots/robots_txt#syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants