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
Order of precedence for google user agents #46
Comments
may be do you have example which works incorrectly? it will be very good to check it. |
Well I have not tested, but looking at the code I see the function expect a string, so The idea is that (using Google's example), when What I suggest is to open the to replicate Google*s behavior. |
I understood what you mean. Yes, you are right. seems it is better to implement only for Google user-agents, not all. |
I can do it later if you are open to the posibility. I think it wouldn't add more than 5 or 6 lines to the code and looks like a really good Google's level feature to me. What do you think? Would you merge it? |
Yes, will be great. |
Lol... Ok... |
feel free to create PR without test.
or: |
Some crawlers (like GoogleBot) may have multiple useragents and one of the names is like a common name that should match for the other specific names (this can be better understood by reading Google's Robots.txt Specifications - Order of precedence for user agents).
It will be nice if one can input an ordered array in the useragent param of the validator in order to replicate that behavior.
I can work on this in another moment if nobody takes the job. I don't have the time right now.
The text was updated successfully, but these errors were encountered: