leekelleher / umbraco-robotstxt-editor

An Umbraco package to edit your robots.txt file
https://our.umbraco.org/projects/developer-tools/robotstxt-editor/
MIT License
8 stars 5 forks source link

Feature Request - Templates #19

Open NikRimington opened 4 years ago

NikRimington commented 4 years ago

Provide a default template option which could auto populate the robots.txt file with some pre-defined rules, such as deny bin, deny umbraco, etc.

leekelleher commented 4 years ago

Hi @NikRimington, it should already offer default contents, if the robots.txt file doesn't already exist.

https://github.com/leekelleher/umbraco-robotstxt-editor/blob/8.0.0/src/Our.Umbraco.RobotsTxtEditor/Web/UI/App_Plugins/RobotsTxtEditor/js/robotstxteditorController.js#L21-L31

or are you meaning something else?

NikRimington commented 4 years ago

I was thinking more along the lines of giving people the choice, so you might have a drop down of "Umbraco default denys", ".Net Default Denys" etc and people can choose to add them to their robots.txt file. It's possible people don't know what they need to add and so a few choices might be helpful :-)