Restrict cross site access from single domain

thumbnail
Raja Seth, modified 7 Years ago. Regular Member Posts: 233 Join Date: 8/18/11 Recent Posts

Hi Team,

 

I am using liferay DXP 7.0 sp4. I have to handle multiple sites in a single portal instance. For e.g. I have multiple sites name as :

Name : Site1, Friendly URL : /site1

Name : Site2, Friendly URL : /site2

Name : Site3, Friendly URL : /site3

 

And I have 3 domains of each :

https://www.site1.com

https://www.site2.com

https://www.site3.com

 

Is there any such feature or property in Liferay to restrict cross site access for e.g. :

https://www.site1.com/web/site2or https://www.site1.com/web/site3

 

Or the only approach available is through Web Server.

 

Thanks & Regards,

Raja Seth

thumbnail
Minhchau Dang, modified 7 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
Raja Seth:

Is there any such feature or property in Liferay to restrict cross site access

Not to my knowledge. If you want /web/siteFriendlyURL URLs to not work once virtual hosting was enabled, you'd need to either put the sites on different portal instances (different companyId values, so that the lookup would fail), or you'd need to write a servlet filter to deny access.

thumbnail
Raja Seth, modified 6 Years ago. Regular Member Posts: 233 Join Date: 8/18/11 Recent Posts
Minhchau Dang:
Raja Seth:

Is there any such feature or property in Liferay to restrict cross site access

Not to my knowledge. If you want /web/siteFriendlyURL URLs to not work once virtual hosting was enabled, you'd need to either put the sites on different portal instances (different companyId values, so that the lookup would fail), or you'd need to write a servlet filter to deny access.

Hi Minhchau,

 

Thanks for your reply. But in this scenario, users are at postal instance level and each portal instance will be having different set of users. I want users to be common.

 

Thanks & Regards,

Raja Seth