DisableFindContentByIdPath - Should this be false by default? #19211
AndyBoot
started this conversation in
Features and ideas
Replies: 1 comment 1 reply
-
AFAIK it's just backwards compatibility as this was the default behavior in v4/6/7 and probably 8. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Something we discovered today that pages were accessible upon entering in their ID at the root of the URL path (i.e. website.com/123). This was originally highlighted as we were expecting the 404 page when instead it was another page in the tree (with an ID of 123).
We found that this was switched on by default within Umbraco via the
Umbraco:CMS:WebRouting:DisableFindContentByIdPath
setting which is set tofalse
by default. Setting this totrue
via appsettings.json of course prevents URL's such as /123 from working.Documentation: https://docs.umbraco.com/umbraco-cms/13.latest/reference/configuration/webroutingsettings
My question is, should this be something which all sites are exposed to out of the box, or should this be switched off and the site owner decides if they need it enabled?
Technically speaking, if somebody knew your site was Umbraco, they could write a not so sophisticated crawler to attempt each potential URL starting from /1 and stumble upon pages which you didn't want others to find (such as ones with noindex or hidden from the xml sitemap).
Just thought I'd get a conversation started and see if it leads to anything. If there's reason behind it being enabled then I'll happily learn and move on.
Cheers,
Andy 🙂
Beta Was this translation helpful? Give feedback.
All reactions