I am building a webpage that gives statistics about websites of the user.
You enter your URL and get a bunch of results.
My main focus are websites that are build on the Sitecore cms.
At the moment I can detect if the site uses Sitecore only when the
var webclient = new WebClient();
var source = webclient.DownloadString(url);
Common one would be to check if
.ashx is used for a media extension, or they are prefixed with
/-/media/ but all of these are obviously subject to change depending on config settings. This would require you to check the source code too.
You could check for other Sitecore files, but again depending on the deployment these may or may not be there or accessible to the public at least. I would look for files outside of the
/sitecore folder, e.g.:
You need to check the contents of the files to make sure they are default Sitecore files. You are relying on the fact that these files would be left over from a default installation, but there is no guarantee so there may be no possible way of being able to tell.