I have been thinking about how to extend this useful package to support multiple sections, for example:
User-agent: PowerMapper
Allow: /
User-agent: SemrushBot
Allow: /
User-Agent: *
Disallow: /
I appreciate it's a relatively niche requirement so was thinking about adding app setting Umbraco.Robots.Advanced which could contain JSON such as [{ua:'PowerMapper',allow:'/'},{ua:'SemrushBot',allow:'/'},{ua:'*',disallow:'/'}]
When Umbraco.Robots.Advanced has a value, Umbraco.Robots.UserAgent, Umbraco.Robots.Disallow & Umbraco.Robots.Allow would be ignored. Umbraco.Robots.Sitemaps would continue to be used.
Just an idea, maybe there is a better approach... 🤔
I have been thinking about how to extend this useful package to support multiple sections, for example:
I appreciate it's a relatively niche requirement so was thinking about adding app setting
Umbraco.Robots.Advancedwhich could contain JSON such as[{ua:'PowerMapper',allow:'/'},{ua:'SemrushBot',allow:'/'},{ua:'*',disallow:'/'}]When
Umbraco.Robots.Advancedhas a value,Umbraco.Robots.UserAgent,Umbraco.Robots.Disallow&Umbraco.Robots.Allowwould be ignored.Umbraco.Robots.Sitemapswould continue to be used.Just an idea, maybe there is a better approach... 🤔