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

Robotex does not support comments #4

Open
MothOnMars opened this issue Jan 15, 2018 · 0 comments
Open

Robotex does not support comments #4

MothOnMars opened this issue Jan 15, 2018 · 0 comments

Comments

@MothOnMars
Copy link

Rules with trailing comments are not being applied correctly.

Example:
https://ask.fmcsa.dot.gov/robots.txt

User-agent: *                    # ADDED BY HMS
Disallow: /                      # ADDED BY HMS

The above rule should disallow everything on the site. Instead:

> robotex = Robotex.new('testing')
> robotex.allowed?('https://ask.fmcsa.dot.gov/anything')
true

PR: #3

Reference: https://developers.google.com/search/reference/robots_txt#file-format

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

No branches or pull requests

1 participant