Determine if a site is built on sitecore

I am creating a web page that gives statistics about user websites.
You enter your URL and get a bunch of results.

My main focus is on sites that are based on Sitecore cms.
At the moment, I can determine if Sitecore uses the site only when the page is available '/sitecore/login'.

For this, I use:

var webclient = new WebClient();
var source = webclient.DownloadString(url);

But when administrators decide to test security, they can make it 'sitecore/login'inaccessible to casual users. When this is the case, my code obviously does not work.

Does anyone know a better solution how to determine if a Sitecore CMS is being used?
Remember that this is an external website, so there is no access to the sitecore backend.

(ps I do not want to use 3-way tools)

Thanks in advance!

+4
source share
4 answers

It would be normal to check if the .ashxmedia is used for expansion, or they have a prefix with /~/media/or /-/media/, but all of them can be changed depending on the configuration settings. This will require you to also check the source code.

You can check out other Sitecore files, but again, depending on the deployment, they may or may not be available to the public at least. I would look for files outside the folder /sitecore, for example:

  • default.aspx
  • default.css
  • default.js
  • webedit.css

, , Sitecore. , , , .

+5

Sitecore. , ; , - , , , Sitecore.

Cookies

SC_ANALYTICS_GLOBAL_COOKIE
SC_ANALYTICS_SESSION_COOKIE

- cookie, Wager, , Sitecore.

Sitecore. Sitecore 7 .

/~/media/System/Template%20Thumbnails/audio.ashx

/~/media/System/Simulator%20Backgrounds/blackberry.ashx

( Sitecore 6.6)

/layouts/System/VisitorIdentification.aspx

. , "" , , Sitecore .

+9

, Sitecore ( ) . /sitecore/shell/sitecore.version.xml

/, , /sitecore .

, Sitecore, .

+5

, Sitecore , . , /sitecore/content, URL-:

https://www.somedomain.com/sitecore/content

This sometimes redirects to a page not found in the layout. This does not always work, because protection is by URL / sitecore. Therefore, an alternative is to use sc_itemId and the identifier / sitecore / content:

https://www.somedomain.com?sc_itemid= {0DE95AE4-41AB-4D01-9EB0-67441B7C2450}

This will either return to the page of the page not found, or to page 404. Both indicate that this is a Sitecore site.

+1
source

Source: https://habr.com/ru/post/1528135/


All Articles