Open JanPetterMG opened 2 years ago
$t1gor = new t1gor\RobotsTxtParser\RobotsTxtParser(<<<TXT user-agent:* disallow:/ TXT ); var_dump($t1gor->isAllowed('/'));
Output: bool(true) Expected: bool(false)
bool(true)
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
Output:
bool(true)
Expected:bool(false)
Quote
Source: https://developers.google.com/search/docs/advanced/robots/robots_txt#syntax