Block multiple sites in Sitecore

I have two sites running under the same installation of Sitecore 6. The home sites are as follows:

/sitecore/content/Home
/sitecore/content/Careers

Assuming the main site is located at domain.com, a career site can be obtained at careers.domain.com.

My problem is that, using uri prefix /sitecore/content/, any sitecore element can be accessed either by (sub) domain. For example, I can get to:

http://domain.com/sitecore/content/careers.aspx(must be under careers.domain.com) http://careers.domain.com/sitecore/content/home/destinations.aspx(must be under domain.com).

I know that I can redirect these URLs (using IIS7 or ISAPIRewrite redirects), but is there a way to block Sitecore to only serve objects in the configured node house for this domain?

+3
source share
1 answer

I can’t say for sure without testing it, but you can try to place your own security domain on your site and deny access to each other. There <sites/>is an attribute in node domain="extranet", create a new security domain and set the Careers site for it.

You can create new security domains using the domain manager on the Sitecore desktop.

+3
source

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


All Articles