Groups & user-agents
A robots.txt file is a set of groups. Each group starts with one or more User-agent lines, followed by Allow and Disallow rules. A crawler obeys the single group whose user-agent is the most specific match for its name. A bot with its own group ignores the global * group entirely, the two are never merged.