Skip to content

Support for multiple sections #5

@Jeavon

Description

@Jeavon

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... 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions