I have a SharePoint server 2019. running with multiple Web app and site collection underneath.

Now there is an requirement to make only one site collection available over internet and that too in read only mode.

I was wondering to user AAM to publish it over internet but not finding any solution to make it read only.

Any luck !

1 Answer 1


You can use PowerShell to set your site collection in read-only mode.

Set-SPSite -Identity "SiteURL" -LockState "ReadOnly"

enter image description here Reference:



  • Thank you for suggestion. But If I apply either of these solutions then the site will read only in intranet as well as internet. Whereas I need a solution in which the same site will remain editable in intranet and read only in internet.
    – cjs
    Jul 8, 2023 at 4:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.